-
Notifications
You must be signed in to change notification settings - Fork 28
/
common.gypi
70 lines (70 loc) · 1.83 KB
/
common.gypi
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
{
'variables': {
'default_cflags' : [
'-Wall',
'-Werror',
'-ftls-model=initial-exec',
'-m64',
'-mcx16',
'-mtune=native',
'-ffast-math',
'-fno-builtin-malloc',
'-fno-builtin-calloc',
'-fno-builtin-realloc',
'-fno-builtin-free',
'-fno-omit-frame-pointer',
'-fno-exceptions',
'-fPIC',
],
'default_cflags_cc' : [
'-std=c++11',
'-fno-rtti',
],
'default_ldflags': [
'-Wl,--as-needed',
],
'default_libraries': [
'-lpthread',
'-lgflags',
],
},
'xcode_settings': {},
'target_defaults': {
'configurations': {
'Debug': {
'cflags': [ '<@(default_cflags)', '-O0', '-gdwarf-2' ],
'cflags_cc': [ '<@(default_cflags_cc)' ],
'ldflags': [ '<@(default_ldflags)' ],
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': "c++11",
'OTHER_CFLAGS': [ '<@(default_cflags)' , '-g', '-O0' ],
'OTHER_LDFLAGS': [ '<@(default_ldflags)' ],
},
'defines': [ '__STDC_FORMAT_MACROS=1' ],
'include_dirs': [
'.',
'src',
'/usr/include',
'/usr/local/include',
]
},
'Release': {
'cflags': [ '<@(default_cflags)', '-O3' ],
'cflags_cc': [ '<@(default_cflags_cc)' ],
'ldflags': [ '<@(default_ldflags)' ],
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': "c++11",
'OTHER_CFLAGS': [ '<@(default_cflags)' , '-g', '-O3'],
'OTHER_LDFLAGS': [ '<@(default_ldflags)' ],
},
'defines': [ '__STDC_FORMAT_MACROS=1' ],
'include_dirs': [
'.',
'src',
'/usr/include',
'/usr/local/include',
]
},
},
},
}