forked from heapwolf/cxx-http
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon.gypi
50 lines (50 loc) · 1.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
{
'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'],
'defines': [ 'NDEBUG' ],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS' : [ '-O3', '-std=c++1y'],
'OTHER_CFLAGS': [ '-O3' ]
}
}
}
}
}