-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.ninja
25 lines (20 loc) · 901 Bytes
/
build.ninja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
builddir = build
cxx = clang++
ar = ar
cxxflags = -std=c++11 -stdlib=libc++ -Isrc -Os -Wall -Wextra -Wno-unused-parameter -fcolor-diagnostics
rule cxx
command = $cxx -MMD -MT $out -MF $out.d $cxxflags -c $in -o $out
description = CXX $out
depfile = $out.d
rule link
command = $cxx $ldflags -o $out $in $libs
description = LINK $out
build $builddir/config.o: cxx src/config.mm
build $builddir/event_tap.o: cxx src/event_tap.mm
build $builddir/main.o: cxx src/cli/main.mm
build $builddir/metamove.o: cxx src/metamove.mm
build $builddir/window.o: cxx src/window.mm
build $builddir/window_event_tap.o: cxx src/window_event_tap.mm
build metamove: link $builddir/config.o $builddir/event_tap.o $builddir/main.o $builddir/metamove.o $builddir/window.o $builddir/window_event_tap.o
libs = -lc++ -framework ApplicationServices -framework CoreFoundation -framework Foundation
default metamove