forked from libmx3/mx3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.gypi
56 lines (55 loc) · 1.63 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
{
'configurations': {
'Debug': {
'xcode_settings': {
'GCC_OPTIMIZATION_LEVEL': '0',
'ONLY_ACTIVE_ARCH': 'YES',
},
},
},
'target_defaults': {
'default_configuration': 'Debug',
'cflags_cc': [ '-std=c++1y', '-fvisibility=hidden', '-fexceptions' ],
'cflags': ['-Wall'],
'xcode_settings': {
'OTHER_CFLAGS' : ['-Wall', '-fvisibility=hidden'],
'OTHER_CPLUSPLUSFLAGS' : ['-Wall', '-fvisibility=hidden'],
'CLANG_CXX_LANGUAGE_STANDARD': 'c++1y',
'CLANG_CXX_LIBRARY': 'libc++',
'CLANG_ENABLE_OBJC_ARC': 'YES',
},
'conditions': [
['OS=="ios"', {
'xcode_settings' : {
'SDKROOT': 'iphoneos',
'SUPPORTED_PLATFORMS': 'iphonesimulator iphoneos',
},
}],
['OS=="mac"', {
'xcode_settings' : {
'SDKROOT': 'macosx',
},
}],
],
'configurations': {
'Debug': {
'defines': [ 'DEBUG' ],
'cflags' : [ '-g', '-O0' ],
'xcode_settings' : {
},
},
'Release': {
'defines': [ 'NDEBUG' ],
'cflags': [
'-Os',
'-fomit-frame-pointer',
'-fdata-sections',
'-ffunction-sections',
],
'xcode_settings': {
'DEAD_CODE_STRIPPING': 'YES',
},
},
},
},
}