Home | History | Annotate | Download | only in libjingle
      1 # Copyright 2014 The Chromium Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 {
      6   'variables': {
      7     'libjingle_source': "source",
      8   },
      9   'includes': [
     10     '../../native_client/build/untrusted.gypi',
     11   ],
     12   'targets': [
     13     {
     14       'target_name': 'libjingle_nacl',
     15       'type': 'none',
     16       'variables': {
     17         'nlib_target': 'libjingle_nacl.a',
     18         'nacl_untrusted_build': 1,
     19         'build_glibc': 0,
     20         'build_newlib': 0,
     21         'build_pnacl_newlib': 1,
     22         'use_openssl': 1,
     23       },
     24       'dependencies': [
     25         '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
     26         '<(DEPTH)/native_client_sdk/native_client_sdk_untrusted.gyp:nacl_io_untrusted',
     27         '<(DEPTH)/third_party/expat/expat_nacl.gyp:expat_nacl',
     28         '<(DEPTH)/third_party/openssl/openssl_nacl.gyp:openssl_nacl',
     29         'libjingle_p2p_constants_nacl',
     30       ],
     31       'defines': [
     32         'EXPAT_RELATIVE_PATH',
     33         'FEATURE_ENABLE_SSL',
     34         'GTEST_RELATIVE_PATH',
     35         'HAVE_OPENSSL_SSL_H',
     36         'NO_MAIN_THREAD_WRAPPING',
     37         'NO_SOUND_SYSTEM',
     38         'POSIX',
     39         'SRTP_RELATIVE_PATH',
     40         'SSL_USE_OPENSSL',
     41         'USE_WEBRTC_DEV_BRANCH',
     42         'timezone=_timezone',
     43       ],
     44       'configurations': {
     45         'Debug': {
     46           'defines': [
     47             # TODO(sergeyu): Fix libjingle to use NDEBUG instead of
     48             # _DEBUG and remove this define. See below as well.
     49             '_DEBUG',
     50           ],
     51         }
     52       },
     53       'include_dirs': [
     54         '../testing/gtest/include',
     55         './<(libjingle_source)',
     56       ],
     57       'includes': ['libjingle_common.gypi', ],
     58       'sources!': [
     59         # Compiled as part of libjingle_p2p_constants_nacl.
     60         '<(libjingle_source)/talk/p2p/base/constants.cc',
     61         '<(libjingle_source)/talk/p2p/base/constants.h',
     62       ],
     63       'direct_dependent_settings': {
     64         'include_dirs': [
     65           './overrides',
     66           './<(libjingle_source)',
     67           '../../third_party/webrtc/overrides',
     68           '../../testing/gtest/include',
     69           '../../third_party',
     70           '../../third_party/webrtc',
     71         ],
     72         'defines': [
     73           'EXPAT_RELATIVE_PATH',
     74           'FEATURE_ENABLE_SSL',
     75           'GTEST_RELATIVE_PATH',
     76           'NO_MAIN_THREAD_WRAPPING',
     77           'NO_SOUND_SYSTEM',
     78           'POSIX',
     79           'SRTP_RELATIVE_PATH',
     80           'SSL_USE_OPENSSL',
     81           'USE_WEBRTC_DEV_BRANCH',
     82         ],
     83       },
     84       'export_dependent_settings': [
     85         '<(DEPTH)/native_client_sdk/native_client_sdk_untrusted.gyp:nacl_io_untrusted',
     86       ],
     87     },  # end of target 'libjingle_nacl'
     88 
     89     {
     90       'target_name': 'libjingle_p2p_constants_nacl',
     91       'type': 'none',
     92       'variables': {
     93         'nlib_target': 'libjingle_p2p_constants_nacl.a',
     94         'build_glibc': 0,
     95         'build_newlib': 1,
     96         'build_pnacl_newlib': 1,
     97       },
     98       'configurations': {
     99         'Debug': {
    100           'defines': [
    101             # TODO(sergeyu): Fix libjingle to use NDEBUG instead of
    102             # _DEBUG and remove this define. See below as well.
    103             '_DEBUG',
    104           ],
    105         }
    106       },
    107       'include_dirs': [
    108         './<(libjingle_source)',
    109       ],
    110       'sources': [
    111         '<(libjingle_source)/talk/p2p/base/constants.cc',
    112         '<(libjingle_source)/talk/p2p/base/constants.h',
    113       ],
    114     },  # end of target 'libjingle_p2p_constants_nacl'
    115   ],
    116 }
    117