-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathcommon.gypi
85 lines (84 loc) · 2.14 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
81
82
83
84
{
'variables': {
'conditions': [
['OS == "mac"', {
'target_arch%': 'x64'
}, {
'target_arch%': 'ia32'
}]
]
},
'target_defaults': {
'default_configuration': 'Release',
'defines': [ 'HTTP_PARSER_STRICT=0' ],
'conditions': [
['OS == "mac"', {
'defines': [ 'DARWIN' ]
}],
['OS == "linux"', {
'defines': [ 'LINUX' ]
}],
['OS == "win"', {
'defines': [ 'WIN32' ]
}],
['OS == "mac" and target_arch == "x64"', {
'xcode_settings': {
'ARCHS': [ 'x86_64' ]
},
}]
],
'configurations': {
'Debug': {
'cflags': [ '-g', '-O0', '-std=c++1y' ],
'defines': [ 'DEBUG' ],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS' : [ '-std=c++1y' ],
'OTHER_LDFLAGS': ['-std=c++1y'],
'OTHER_CFLAGS': [ '-g', '-O0' '-Wall' ]
}
},
'Release': {
'cflags': [
'-O3',
'-std=c++1y',
'-fstrict-aliasing',
'-fomit-frame-pointer',
'-fdata-sections',
'-ffunction-sections',
'-fPIC',
],
'defines': [ 'NDEBUG' ],
'xcode_settings': {
'ALWAYS_SEARCH_USER_PATHS': 'NO',
'GCC_CW_ASM_SYNTAX': 'NO',
'GCC_DYNAMIC_NO_PIC': 'NO',
'GCC_ENABLE_CPP_RTTI': 'NO',
'GCC_ENABLE_PASCAL_STRINGS': 'NO',
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',
'GCC_THREADSAFE_STATICS': 'NO',
'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES',
'PREBINDING': 'NO',
'USE_HEADERMAP': 'NO',
'OTHER_CPLUSPLUSFLAGS' : [
'-O3',
'-std=c++1y',
'-fstrict-aliasing',
'-fomit-frame-pointer',
'-fdata-sections',
'-ffunction-sections',
'-fPIC',
],
'OTHER_CFLAGS': [
'-O3',
'-fstrict-aliasing',
'-fomit-frame-pointer',
'-fdata-sections',
'-ffunction-sections',
'-fPIC',
]
}
}
}
}
}