forked from KhalilBellakrid/ledger-test-library-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.gypi
54 lines (54 loc) · 1.36 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
{
'target_defaults': {
'default_configuration': 'Debug',
'cflags': ['-Wall', '-fvisibility=hidden'],
'cflags_cc': [ '<@(_cflags)', '-std=c++14', '-fexceptions', '-frtti' ],
'xcode_settings': {
'OTHER_CFLAGS' : ['<@(_cflags)'],
'OTHER_CPLUSPLUSFLAGS' : ['<@(_cflags_cc)'],
'CLANG_CXX_LANGUAGE_STANDARD': 'c++14',
'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' : {
'GCC_OPTIMIZATION_LEVEL': '0',
'ONLY_ACTIVE_ARCH': 'YES',
},
},
'Release': {
'defines': [ 'NDEBUG' ],
'cflags': [
'-Os',
'-fomit-frame-pointer',
'-fdata-sections',
'-ffunction-sections',
],
'cflags_cc': [ '<@(_cflags)', '-std=c++14', '-fexceptions', '-frtti' ],
'xcode_settings': {
'DEAD_CODE_STRIPPING': 'YES',
},
},
},
},
}