tools

various tools
git clone git://deadbeef.fr/tools.git
Log | Files | Refs | README | LICENSE

commit a78e1df4c573b8ccab6d90edb5319ed285a8ed70
parent 99c2c0b0861dddce875e35d6ed626a6e2d648231
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Fri, 14 Aug 2020 05:04:52 +0200

add ninja build files

Diffstat:
Abtl.ninja | 13+++++++++++++
Aconf.ninja | 29+++++++++++++++++++++++++++++
Almerge.ninja | 12++++++++++++
3 files changed, 54 insertions(+), 0 deletions(-)

diff --git a/btl.ninja b/btl.ninja @@ -0,0 +1,13 @@ +PROJECT = btl +BUILD = build +ROOT = ./ + +CXXFLAGS = $$CXXFLAGS -fcolor-diagnostics -DFILE_PTR=FILE* + +include conf.ninja + +build $DST/optparser.cpp.o: cxx $SRC/optparser.cpp +build $DST/string.cpp.o: cxx $SRC/string.cpp +build $DST/utils.cpp.o: cxx $SRC/utils.cpp + +build $DST/../btl.a: ar $DST/optparser.cpp.o $DST/string.cpp.o $DST/utils.cpp.o diff --git a/conf.ninja b/conf.ninja @@ -0,0 +1,29 @@ +ninja_required_version = 1.8 + +CXX = $$CXX +CC = $$CC +LD = $$LD +AR = $$AR + +SRC = ./$ROOT/$PROJECT/src +DST = ./$ROOT/$BUILD/$PROJECT/src + +rule cc + description = compiling $in toward $out + depfile = $DST/$out.d + deps = gcc + command = $CC $CCFLAGS -MD -MF $out.d -c $in -o $out + +rule cxx + description = compiling $in toward $out + depfile = $DST/$out.d + deps = gcc + command = $CXX $CXXFLAGS -MD -MF $out.d -c $in -o $out + +rule ld + description = building $in to $out + command = $LD $LDFLAGS $in -o $out + +rule ar + description = building $in to $out + command = $AR rc $ARFLAGS $out $in diff --git a/lmerge.ninja b/lmerge.ninja @@ -0,0 +1,12 @@ +PROJECT = lmerge +BUILD = build +ROOT = ./ + +CXXFLAGS = $$CXXFLAGS -fcolor-diagnostics -I./$ROOT/btl/src/ -DFILE_PTR=FILE* + +include conf.ninja + +subninja btl.ninja + +build $DST/lmerge.cpp.o: cxx $SRC/lmerge.cpp +build $DST/../lmerge: ld $DST/lmerge.cpp.o ./$ROOT/$BUILD/btl/btl.a