-
Notifications
You must be signed in to change notification settings - Fork 6
/
common.gypi
69 lines (69 loc) · 1.88 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
{
'variables': {
'default_cflags' : [
'-Wall',
'-Werror',
'-fPIC',
'-m64',
'-std=c++11',
'-fno-omit-frame-pointer',
'-ffast-math',
'-fno-exceptions',
'-fno-rtti',
'-mtune=native',
'-ftls-model=initial-exec',
],
'default_ldflags': [
],
},
'xcode_settings': {
'SYMROOT': '<(DEPTH)/out',
},
'target_defaults': {
'configurations': {
'Base': {
'abstract': 1,
'xcode_settings': {
'USE_HEADERMAP': 'NO',
'CLANG_CXX_LANGUAGE_STANDARD': "c++0x",
'CLANG_CXX_LIBRARY': "libc++",
'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror
'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions
'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
'ONLY_ACTIVE_ARCH': 'YES',
}
},
'Debug': {
'inherit_from': ['Base'],
'cflags': [ '<@(default_cflags)' , '-g -gdwarf-2', '-O0' ],
'ldflags': [ '<@(default_ldflags)' ],
'xcode_settings': {
'OTHER_CFLAGS': [ '<@(default_cflags)' , '-g', '-O0'],
'OTHER_LDFLAGS': [ '<@(default_ldflags)' ],
},
'defines': [
'DEBUG',
]
},
'Release': {
'inherit_from': ['Base'],
'cflags': [ '<@(default_cflags)', '-O3' ],
'ldflags': [ '<@(default_ldflags)' ],
'xcode_settings': {
'OTHER_CFLAGS': [ '<@(default_cflags)', '-O3' ],
'OTHER_LDFLAGS': [ '<@(default_ldflags)' ],
},
},
'Release-check': {
'inherit_from': ['Base'],
'cflags': [ '<@(default_cflags)', '-O3', '-g -gdwarf-2' ],
'defines': ['PROFILE' ],
'ldflags': [ '<@(default_ldflags)' ],
'xcode_settings': {
'OTHER_CFLAGS': [ '<@(default_cflags)', '-O3' ],
'OTHER_LDFLAGS': [ '<@(default_ldflags)' ],
},
}
},
},
}