forked from LedgerHQ/lib-ledger-core-react-native-bindings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.gypi
62 lines (61 loc) · 1.44 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
{
'configurations': {
'Debug': {
'xcode_settings': {
'GCC_OPTIMIZATION_LEVEL': '0',
'ONLY_ACTIVE_ARCH': 'YES',
},
},
},
'target_defaults': {
'default_configuration': 'Debug',
'cflags': ['-Wall', '-Wextra', '-fvisibility=hidden'],
'cflags_cc': [ '<@(_cflags)', '-std=c++1y', '-fexceptions', '-frtti' ],
'xcode_settings': {
'OTHER_CFLAGS' : ['<@(_cflags)'],
'OTHER_CPLUSPLUSFLAGS' : ['<@(_cflags_cc)'],
'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' : {
'GCC_OPTIMIZATION_LEVEL': '0',
'ONLY_ACTIVE_ARCH': 'YES',
},
},
'Release': {
'defines': [ 'NDEBUG' ],
'cflags': [
'-Os',
'-fomit-frame-pointer',
'-fdata-sections',
'-ffunction-sections',
],
'xcode_settings': {
'DEAD_CODE_STRIPPING': 'YES',
},
},
},
},
}