-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathBUILDMAKE
47 lines (34 loc) · 1.05 KB
/
BUILDMAKE
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
#edit-mode: -*- python -*-
#encoding: UTF-8
# 工作路径
WORKROOT('../../')
# 使用硬链接copy.
COPY_USING_HARD_LINK(True)
# 支持32位/64位平台编译
#ENABLE_MULTI_LIBS(True)
# C预处理器参数.
CPPFLAGS('-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -DVERSION=\\\"1.9.8.7\\\"')
# 为32位目标编译指定额外的预处理参数
#CPPFLAGS_32('-D_XOPEN_SOURE=500')
# C编译参数.
CFLAGS('-g -pipe -W -Wall -fPIC')
# C++编译参数.
CXXFLAGS('-g -pipe -W -Wall -fPIC -std=gnu++11')
# 头文件路径.
INCPATHS('. ./include ./output ./output/include ./deps/libev/include')
# 使用库
LIBS('./deps/libev/lib/libev.a')
# 链接参数.
LDFLAGS('-lpthread -lcrypto -lrt')
# 静态库include目录前缀
DEFAULT_LIB_INCLUDE_DIR('rtcbase')
user_sources=GLOB('src/*.cpp')
user_headers=GLOB('src/*.h')
# 可执行文件
#Application('rtcbase',Sources(user_sources))
# 静态库
StaticLibrary('rtcbase',Sources(user_sources),HeaderFiles(user_headers))
# 共享库
#SharedLibrary('rtcbase',Sources(user_sources),HeaderFiles(user_headers))
# 子目录
#Directory('demo')