OLD | NEW |
(Empty) | |
| 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_untr
usted', |
| 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 '../../testing/gtest/include', |
| 68 '../../third_party', |
| 69 '../../third_party/webrtc', |
| 70 ], |
| 71 'defines': [ |
| 72 'EXPAT_RELATIVE_PATH', |
| 73 'FEATURE_ENABLE_SSL', |
| 74 'GTEST_RELATIVE_PATH', |
| 75 'NO_MAIN_THREAD_WRAPPING', |
| 76 'NO_SOUND_SYSTEM', |
| 77 'POSIX', |
| 78 'SRTP_RELATIVE_PATH', |
| 79 'SSL_USE_OPENSSL', |
| 80 'USE_WEBRTC_DEV_BRANCH', |
| 81 ], |
| 82 }, |
| 83 'export_dependent_settings': [ |
| 84 '<(DEPTH)/native_client_sdk/native_client_sdk_untrusted.gyp:nacl_io_untr
usted', |
| 85 ], |
| 86 }, # end of target 'libjingle_nacl' |
| 87 |
| 88 { |
| 89 'target_name': 'libjingle_p2p_constants_nacl', |
| 90 'type': 'none', |
| 91 'variables': { |
| 92 'nlib_target': 'libjingle_p2p_constants_nacl.a', |
| 93 'build_glibc': 0, |
| 94 'build_newlib': 1, |
| 95 'build_pnacl_newlib': 1, |
| 96 }, |
| 97 'configurations': { |
| 98 'Debug': { |
| 99 'defines': [ |
| 100 # TODO(sergeyu): Fix libjingle to use NDEBUG instead of |
| 101 # _DEBUG and remove this define. See below as well. |
| 102 '_DEBUG', |
| 103 ], |
| 104 } |
| 105 }, |
| 106 'include_dirs': [ |
| 107 './<(libjingle_source)', |
| 108 ], |
| 109 'sources': [ |
| 110 '<(libjingle_source)/talk/p2p/base/constants.cc', |
| 111 '<(libjingle_source)/talk/p2p/base/constants.h', |
| 112 ], |
| 113 }, # end of target 'libjingle_p2p_constants_nacl' |
| 114 ], |
| 115 } |
OLD | NEW |