-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathcommon.gypi
78 lines (77 loc) · 2.31 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
71
72
73
74
75
76
77
78
{
'variables': {
'visibility%': 'hidden', # V8's visibility setting
'target_arch%': 'ia32', # set v8's target architecture
'host_arch%': 'ia32', # set v8's host architecture
'library%': 'static_library', # allow override to 'shared_library' for DLL/.so builds
'component%': 'static_library', # NB. these names match with what V8 expects
'msvs_multi_core_compile': '0', # we do enable multicore compiles, but not using the V8 way
'gcc_version%': 'unknown',
'clang%': 1,
},
'target_defaults': {
'default_configuration': 'Debug',
'defines': [
'SENTEST_IGNORE_DEPRECATION_WARNING',
],
'configurations': {
'Debug': {
'defines': [ 'DEBUG', '_DEBUG' ],
'cflags': [ '-g', '-O0', '-fwrapv' ],
'xcode_settings': {
'GCC_OPTIMIZATION_LEVEL': '0'
},
},
'Release': {
'defines': [ 'NDEBUG' ],
'cflags': [ '-O3', '-flto' ],
'xcode_settings': {
'GCC_OPTIMIZATION_LEVEL': '3',
'OTHER_CFLAGS': [
'-flto',
],
},
}
},
'xcode_settings': {
'SDKROOT': '<(sdk)',
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
'PREBINDING': 'NO', # No -Wl,-prebind
'OTHER_CFLAGS': [
'-fstrict-aliasing',
'-F<(sdk_path)/Developer/Library/Frameworks',
'-F<(sdk_dev_path)/Library/Frameworks',
],
'WARNING_CFLAGS': [
'-Wall',
'-Wendif-labels',
'-W',
'-Wno-unused-parameter',
'-Wundeclared-selector',
],
},
'library_paths': [
'<(sdk_path)/Developer/Library/Frameworks',
'<(sdk_dev_path)/Library/Frameworks',
],
'conditions': [
['sdk == "macosx"', {
'conditions': [
['target_arch=="ia32"', {
'xcode_settings': {'ARCHS': ['i386']},
}],
['target_arch=="x64"', {
'xcode_settings': {'ARCHS': ['x86_64']},
}],
],
}],
['sdk.startswith("iphoneos")', {
'xcode_settings': {'ARCHS': ['armv7', 'armv7s', 'arm64']},
}],
['sdk.startswith("iphonesimulator")', {
'xcode_settings': {'ARCHS': ['x86_64', 'i386']},
}],
],
},
}