diff options
author | Nao Pross <naopross@thearcway.org> | 2019-01-22 15:44:00 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2019-01-22 15:44:35 +0100 |
commit | 0af63017da578e5838f9b9dde6fdcc58f71fb235 (patch) | |
tree | 0d19309b8a38adcc141c9671e978ff274119aef7 /ninja | |
parent | Rename library from libwrapsdl2 to libwsdl2 (diff) | |
download | libwsdl2-0af63017da578e5838f9b9dde6fdcc58f71fb235.tar.gz libwsdl2-0af63017da578e5838f9b9dde6fdcc58f71fb235.zip |
Add ninja build files and configure script, remove makefile
Diffstat (limited to '')
-rw-r--r-- | ninja/rules.ninja | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ninja/rules.ninja b/ninja/rules.ninja new file mode 100644 index 0000000..9bdcf64 --- /dev/null +++ b/ninja/rules.ninja @@ -0,0 +1,27 @@ +includes = -I include +cflags = -Wall -Werror -pedantic -fPIC -std=c++17 -DDEBUG $includes + +libs = -lSDL2 -lpthread +lflags = $libs + +flags = -fdiagnostics-color + +rule mkdir + command = mkdir -p $out + description = creating directory $out + +rule cpp + command = g++ $flags $cflags -c $in -o $out $lflags + description = compiling $in + +rule link + command = g++ $flags $cflags -o $out $in $lflags + description = linking $out + +rule link-shared + command = g++ $flags $cflags -shared -o $out $in $lflags + description = linking shared object $out + +rule link-static + command = ar rvs $out $in + description = creating archive $out |