This repository has been archived by the owner on Aug 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcommon.gypi
80 lines (80 loc) · 1.78 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
79
80
{
'variables': {
'deployment_target': '8.0',
'warning_flags': [
'-Wall',
'-Wextra',
'-Wno-extern-c-compat',
'-Wno-missing-field-initializers',
'-Wno-shorten-64-to-32',
],
},
'target_defaults': {
'default_configuration': 'Debug',
'android_unmangled_name': 1,
'cflags': [
'-Werror',
'-gdwarf-2',
'<(warning_flags)',
],
'cflags_cc': [
'-Werror',
'-std=c++14',
'-frtti',
'-fexceptions',
'<(warning_flags)',
],
'xcode_settings': {
'OTHER_CFLAGS' : ['<@(_cflags)'],
'OTHER_CPLUSPLUSFLAGS' : ['<@(_cflags_cc)'],
'CLANG_CXX_LANGUAGE_STANDARD': 'c++14',
'CLANG_CXX_LIBRARY': 'libc++',
'SKIP_INSTALL': 'YES',
'CLANG_ENABLE_OBJC_ARC': 'YES',
'COMBINE_HIDPI_IMAGES' : 'YES',
},
'conditions': [
['OS=="ios"', {
'xcode_settings' : {
'SDKROOT': 'iphoneos',
'SUPPORTED_PLATFORMS': 'iphonesimulator iphoneos',
'IPHONEOS_DEPLOYMENT_TARGET' : '<(deployment_target)',
}
}]
],
'configurations': {
'Debug': {
'defines': [
'DEBUG=1',
'NDEBUG=0',
],
'cflags': [
'-DDEBUG',
'-g',
'-O0',
],
'xcode_settings': {
'GCC_OPTIMIZATION_LEVEL': '0',
'ONLY_ACTIVE_ARCH': 'YES',
'ENABLE_TESTABILITY': 'YES',
},
},
'Release': {
'defines': [
'NDEBUG=1',
'DEBUG=0',
],
'cflags': [
'-DNDEBUG',
'-Os',
'-fomit-frame-pointer',
'-fdata-sections',
'-ffunction-sections',
],
'xcode_settings': {
'DEAD_CODE_STRIPPING': 'YES',
},
},
},
},
}