-
Notifications
You must be signed in to change notification settings - Fork 87
/
Makefile.config.example
70 lines (55 loc) · 2.19 KB
/
Makefile.config.example
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
68
69
70
# Copy this file to "Makefile.config" to set default build flags
uname_S := $(shell uname -s)
# Example Linux config
ifeq ($(uname_S),Linux)
ifdef RP_gtest
EXTRA_CMAKE_ARGS += -DGTEST_DIR=$(RP_gtest)
else
EXTRA_CMAKE_ARGS += -DGTEST_DIR=/usr
endif
# only build animlib if soure directory exists and env var set
CE_dir = $(wildcard "src/ui/CE")
ifneq ("$(CE_dir)", "")
ifdef RP_animlib
EXTRA_CMAKE_ARGS += -DANIMLIB_DIR=$(RP_animlib)
endif
endif
ifdef RP_boost_disney
EXTRA_CMAKE_ARGS += -DBOOST_DIR=$(RP_boost_disney)
EXTRA_CMAKE_ARGS += -DBOOST_INCLUDE_DIR=$(RP_boost_disney)/include/boost-disney
endif
ifdef RP_derr
EXTRA_CMAKE_ARGS += -DDERR_DIR=$(RP_derr)
endif
ifdef RP_dmsg
EXTRA_CMAKE_ARGS += -DDMSG_DIR=$(RP_dmsg)
endif
ifdef RP_libpng
EXTRA_CMAKE_ARGS += -DPNG_DIR=$(RP_libpng)
endif
ifdef RP_llvm_disney
EXTRA_CMAKE_ARGS += -DLLVM_DIR=$(RP_llvm_disney)
EXTRA_CMAKE_ARGS += -DLLVM_INCLUDE_DIR=$(RP_llvm_disney)/include
endif
ifdef RP_qdgui
EXTRA_CMAKE_ARGS += -DQDGUI_DIR=$(RP_qdgui)
endif
ifdef RP_qt5
EXTRA_CMAKE_ARGS += -DENABLE_QT5=true
endif
ifdef RP_pyqt5
EXTRA_CMAKE_ARGS += -DPYQT_SIP_DIR=$(RP_pyqt5)/share/sip/PyQt5
endif
ifdef RP_pyqt4
EXTRA_CMAKE_ARGS += -DPYQT_SIP_DIR=$(RP_pyqt4)/share/sip
endif
endif
# Example Darwin config
ifeq ($(uname_S),Darwin)
EXTRA_CMAKE_ARGS += -DBOOST_DIR=/usr/local
EXTRA_CMAKE_ARGS += -DENABLE_LLVM_BACKEND=ON
EXTRA_CMAKE_ARGS += -DLLVM_DIR=$(HOME)/code/llvm-inst/share/llvm/cmake
EXTRA_CMAKE_ARGS += -DGTEST_DIR=$(HOME)/code/gtest-inst/
EXTRA_CMAKE_ARGS += -DCUSTOM_PYTHON_FRAMEWORK="-m64 -I/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/include/python2.7 -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -L/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -ldl"
EXTRA_CMAKE_ARGS += -DUSE_PYTHON=OFF
endif