blob: b47e84c8dbe43387f2d2e2683a5a8cb111938149 (
plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
-include config.mk
BUILDTYPE ?= Release
PYTHON ?= python
V ?= 1
all: llmr
# Builds the regular library
llmr: config.gypi llmr.gyp
deps/run_gyp llmr.gyp --depth=. -Goutput_dir=.. --generator-output=./build/llmr -f make
make -C build/llmr V=$(V) llmr-x86
##### Test cases ###############################################################
# Runs the test cases
test: config.gypi test/test.gyp
deps/run_gyp test/test.gyp --depth=. -Goutput_dir=.. --generator-output=./build/test -f make
make -C build/test V=$(V) test
run-tests: test
@for FILE in build/Release/test_*; do \
$${FILE}; \
done
##### Makefile builds ##########################################################
# Builds the linux app with make. This is also used by Travis CI
linux: config.gypi linux/llmr-app.gyp
deps/run_gyp linux/llmr-app.gyp --depth=. -Goutput_dir=.. --generator-output=./build/linux -f make
make -C build/linux V=$(V) linuxapp
# Executes the Linux binary
run-linux: linux
build/Release/llmr
##### Xcode projects ###########################################################
# build Mac OS X project for Xcode
xproj: config.gypi macosx/llmr-app.gyp
deps/run_gyp macosx/llmr-app.gyp --depth=. --generator-output=./build -f xcode
open ./build/macosx/llmr-app.xcodeproj
# build iOS project for Xcode
iproj: config.gypi ios/llmr-app.gyp
deps/run_gyp ios/llmr-app.gyp --depth=. --generator-output=./build -f xcode
open ./build/ios/llmr-app.xcodeproj
# build Linux project for Xcode (Runs on Mac OS X too, but without platform-specific code)
lproj: config.gypi linux/llmr-app.gyp
deps/run_gyp linux/llmr-app.gyp --depth=. --generator-output=./build -f xcode
open ./build/linux/llmr-app.xcodeproj
##### Maintenace operations ####################################################
clean:
-rm -rf ./build/Release
distclean: clean
-rm -rf ./build
.PHONY: llmr test linux
|