-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcommon.gypi
64 lines (64 loc) · 1.66 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
{
'variables': {
'variables': {
'host_arch%':
'<!(uname -m | sed -e "s/i.86/ia32/;\
s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/mips.*/mips/")',
'osx_arch%': ''
},
'conditions': [
['OS == "mac" and osx_arch == "ia32"', {
'target_arch%': 'ia32'
}, {
'target_arch%': '<(host_arch)'
}]
]
},
'target_defaults': {
'default_configuration': 'Debug',
'cflags': [ '-Wall', '-pthread', '-fno-strict-aliasing' ],
'defines': [ 'CANDOR_ARCH_<(target_arch)' ],
'conditions': [
['OS == "mac"', {
'xcode_settings': {
'GCC_VERSION': '4.1',
'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
'PREBINDING': 'NO', # No -Wl,-prebind
'MACOSX_DEPLOYMENT_TARGET': '10.6', # -mmacosx-version-min=10.5
'USE_HEADERMAP': 'NO',
'WARNING_CFLAGS': [
'-Wall',
'-Wendif-labels',
'-W',
'-Wno-unused-parameter',
],
}
}],
['OS == "mac" and target_arch == "x64"', {
'xcode_settings': {
'ARCHS': [ 'x86_64' ]
},
}],
['OS == "mac"', {
'defines': [ 'CANDOR_PLATFORM_DARWIN' ],
}, {
'defines': [ 'CANDOR_PLATFORM_LINUX' ]
}]
],
'configurations': {
'Debug': {
'cflags': [ '-g', '-O0' ],
'xcode_settings': {
'OTHER_CFLAGS': [ '-g', '-O0' ]
}
},
'Release': {
'cflags': [ '-g', '-O3' ],
'defines': [ 'NDEBUG' ],
'xcode_settings': {
'OTHER_CFLAGS': [ '-g', '-O3' ]
}
}
}
}
}