mediasoup-sys 0.1.4

FFI bindings to C++ libmediasoup-worker
Documentation
{
  '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',
    # usrsctp variables.
    'sctp_debug%': 'false',
    # Others.
    'clang%': 0,
    'mediasoup_asan%': 'false'
  },

  'target_defaults':
  {
    'default_configuration': 'Release',

    'configurations':
    {
      'Release':
      {
        'cflags': [ '-g', '-Wno-unknown-warning-option', '-fPIC' ]
      },
      'Debug':
      {
        'defines': [ 'DEBUG', 'MS_LOG_TRACE', 'MS_LOG_FILE_LINE' ],
        'cflags': [ '-g', '-O0', '-Wno-parentheses-equality', '-Wno-unknown-warning-option', '-fPIC' ],
        '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',
        '-fPIC'
      ],
      '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' ] }
      }],
      [ 'target_arch == "arm64"', {
        'xcode_settings': { 'ARCHS': [ 'arm64' ] }
      }],
      [ 'OS in "linux freebsd openbsd solaris"', {
        'target_conditions':
        [
          [ '_type == "static_library"', {
            # Disable thin archive which needs binutils >= 2.19.
            'standalone_static_library': 1
          }]
        ],
        'conditions':
        [
          [ 'target_arch == "ia32"', {
            'cflags': [ '-m32' ],
            'ldflags': [ '-m32' ]
          }],
          [ 'target_arch == "x64"', {
            'cflags': [ '-m64' ],
            'ldflags': [ '-m64' ]
          }]
        ]
      }]
    ]
  }
}