/
common.gypi
50 lines (47 loc) · 1.27 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': {
'base_dir': '.',
'thirdparty_lib_dir': '<(base_dir)/thirdparty/lib/',
'thirdparty_include_dir': '<(base_dir)/thirdparty/include/',
},
'target_defaults' :
{
'include_dirs':
[
'<(thirdparty_include_dir)',
],
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
],
},
'xcode_settings' :
{
'GCC_SYMBOLS_PRIVATE_EXTERN' : 'YES',
'SYMROOT' : './bin',
'GCC_WARN_ABOUT_RETURN_TYPE' : 'YES',
'GCC_WARN_NON_VIRTUAL_DESTRUCTOR' : 'YES',
'GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS' : 'YES',
'GCC_WARN_PEDANTIC' : 'YES',
'GCC_WARN_UNUSED_VARIABLE' : 'YES',
'GCC_WARN_UNUSED_FUNCTION' : 'YES',
'OTHER_CPLUSPLUSFLAGS' :
[
"-std=c++14",
# Flags below required for python.
'-fno-strict-aliasing',
'-fno-common',
'-dynamic',
'-g',
'-Os',
'-pipe',
'-fwrapv',
'-Wall',
'-Wstrict-prototypes',
'-Wshorten-64-to-32',
],
'CLANG_CXX_LANGUAGE_STANDARD' : 'c++14',
'CLANG_CXX_LIBRARY' : 'libc++',
}
}
}