88 lines
2.0 KiB
Python
88 lines
2.0 KiB
Python
{
|
|
'variables':
|
|
{
|
|
# libuv variables:
|
|
'uv_library%': 'static_library',
|
|
# openssl variables:
|
|
'library%': 'static_library',
|
|
'openssl_fips%': '',
|
|
'openssl_no_asm%': 1, # Must be defined in OpenSSL >= 1.1.0g.
|
|
'libopenssl': '<(PRODUCT_DIR)/libopenssl.a',
|
|
# Others:
|
|
'clang%': 0,
|
|
'mediasoup_asan%': 'false'
|
|
},
|
|
|
|
'target_defaults':
|
|
{
|
|
'default_configuration': 'Release',
|
|
|
|
'configurations':
|
|
{
|
|
'Release':
|
|
{
|
|
'cflags': [ '-g' ]
|
|
},
|
|
'Debug':
|
|
{
|
|
'defines': [ 'DEBUG', 'MS_LOG_TRACE', 'MS_LOG_FILE_LINE' ],
|
|
'cflags': [ '-g', '-O0', '-fwrapv', '-Wno-parentheses-equality' ],
|
|
'xcode_settings':
|
|
{
|
|
'GCC_OPTIMIZATION_LEVEL': '0'
|
|
}
|
|
}
|
|
},
|
|
|
|
'xcode_settings':
|
|
{
|
|
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
|
|
'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
|
|
'PREBINDING': 'NO', # No -Wl,-prebind
|
|
'OTHER_CFLAGS':
|
|
[
|
|
'-fstrict-aliasing',
|
|
'-g'
|
|
],
|
|
'WARNING_CFLAGS':
|
|
[
|
|
'-Wall',
|
|
'-Wendif-labels',
|
|
'-W',
|
|
'-Wno-unused-parameter',
|
|
'-Wundeclared-selector',
|
|
'-Wno-parentheses-equality'
|
|
]
|
|
},
|
|
|
|
'conditions':
|
|
[
|
|
[ 'target_arch == "ia32"', {
|
|
'xcode_settings': { 'ARCHS': [ 'i386' ] }
|
|
}],
|
|
[ 'target_arch == "x64"', {
|
|
'xcode_settings': { 'ARCHS': [ 'x86_64' ] }
|
|
}],
|
|
[ 'OS in "linux freebsd openbsd solaris"', {
|
|
'target_conditions':
|
|
[
|
|
[ '_type == "static_library"', {
|
|
'standalone_static_library': 1, # Disable thin archive which needs binutils >= 2.19
|
|
}]
|
|
],
|
|
'conditions':
|
|
[
|
|
[ 'target_arch == "ia32"', {
|
|
'cflags': [ '-m32' ],
|
|
'ldflags': [ '-m32' ]
|
|
}],
|
|
[ 'target_arch == "x64"', {
|
|
'cflags': [ '-m64' ],
|
|
'ldflags': [ '-m64' ]
|
|
}]
|
|
]
|
|
}]
|
|
]
|
|
}
|
|
}
|