40 lines
1.3 KiB
Python
40 lines
1.3 KiB
Python
{
|
|
'target_defaults': {
|
|
'default_configuration': 'Release',
|
|
'xcode_settings': {
|
|
'CLANG_CXX_LIBRARY': 'libc++',
|
|
'CLANG_CXX_LANGUAGE_STANDARD':'c++11',
|
|
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
|
|
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
|
|
'GCC_ENABLE_CPP_RTTI':'YES',
|
|
'OTHER_CPLUSPLUSFLAGS': [ '-Wall', '-Wextra' ],
|
|
'GCC_WARN_PEDANTIC': 'YES',
|
|
'GCC_WARN_UNINITIALIZED_AUTOS': 'YES_AGGRESSIVE'
|
|
},
|
|
'cflags_cc': ['-std=c++11', '-Wall', '-Wextra'],
|
|
'configurations': {
|
|
'Debug': {
|
|
'cflags_cc': [ '-g', '-O0', '-fno-omit-frame-pointer','-fwrapv', '-fstack-protector-all', '-fno-common' ],
|
|
'defines': [ 'DEBUG' ],
|
|
'xcode_settings': {
|
|
'GCC_OPTIMIZATION_LEVEL': '0',
|
|
'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES',
|
|
'DEAD_CODE_STRIPPING': 'NO',
|
|
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'NO',
|
|
'OTHER_CPLUSPLUSFLAGS': [ '-fno-omit-frame-pointer','-fwrapv', '-fstack-protector-all', '-fno-common']
|
|
}
|
|
},
|
|
'Release': {
|
|
'cflags_cc': [ '-O3' ],
|
|
'defines': [ 'NDEBUG' ],
|
|
'xcode_settings': {
|
|
'GCC_OPTIMIZATION_LEVEL': '3',
|
|
'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO',
|
|
'DEAD_CODE_STRIPPING': 'YES',
|
|
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|