Chromium Code Reviews| 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', | |
|
Ronghua Wu (Left Chromium)
2014/02/20 19:13:30
can nacl just be treated as another platform aside
Sergey Ulanov
2014/02/21 00:48:00
No, unfortunately it doesn't work this way. I thin
| |
| 15 'type': 'none', | |
| 16 'variables': { | |
| 17 'nlib_target': 'libjingle_nacl.a', | |
| 18 'build_glibc': 0, | |
| 19 'build_newlib': 1, | |
| 20 'build_pnacl_newlib': 1, | |
| 21 }, | |
| 22 'dependencies': [ | |
| 23 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | |
| 24 '<(DEPTH)/native_client_sdk/native_client_sdk_untrusted.gyp:nacl_io_untr usted', | |
| 25 '<(DEPTH)/third_party/expat/expat_nacl.gyp:expat_nacl', | |
| 26 '<(DEPTH)/third_party/openssl/openssl_nacl.gyp:openssl_nacl', | |
| 27 'libjingle_p2p_constants_nacl', | |
| 28 ], | |
| 29 'defines': [ | |
| 30 'EXPAT_RELATIVE_PATH', | |
| 31 'FEATURE_ENABLE_SSL', | |
| 32 'GTEST_RELATIVE_PATH', | |
| 33 'HAVE_OPENSSL_SSL_H', | |
| 34 'NATIVE_CLIENT', | |
| 35 'NO_MAIN_THREAD_WRAPPING', | |
| 36 'NO_SOUND_SYSTEM', | |
| 37 'POSIX', | |
| 38 'SRTP_RELATIVE_PATH', | |
| 39 'SSL_USE_OPENSSL', | |
| 40 'USE_WEBRTC_DEV_BRANCH', | |
| 41 'timezone=_timezone', | |
| 42 ], | |
| 43 'configurations': { | |
| 44 'Debug': { | |
| 45 'defines': [ | |
| 46 # TODO(sergeyu): Fix libjingle to use NDEBUG instead of | |
| 47 # _DEBUG and remove this define. See below as well. | |
| 48 '_DEBUG', | |
| 49 ], | |
| 50 } | |
| 51 }, | |
| 52 'include_dirs': [ | |
| 53 '../testing/gtest/include', | |
| 54 './<(libjingle_source)', | |
| 55 ], | |
| 56 'includes': ['libjingle_srcs.gypi', ], | |
| 57 'sources/': [ | |
| 58 ['exclude', '/win[a-z0-9]+\\.(h|cc)$'], | |
| 59 ['exclude', '/schanneladapter\\.(h|cc)$'], | |
| 60 ['exclude', '/mac[a-z0-9]+\\.(h|cc)$'], | |
| 61 ['exclude', '/scoped_autorelease_pool\\.(h|mm)$'], | |
| 62 ], | |
| 63 'sources!': [ | |
| 64 '<(libjingle_source)/talk/base/cpumonitor.cc', | |
| 65 '<(libjingle_source)/talk/base/cpumonitor.h', | |
| 66 '<(libjingle_source)/talk/base/ifaddrs-android.cc', | |
| 67 '<(libjingle_source)/talk/base/ifaddrs-android.h', | |
| 68 '<(libjingle_source)/talk/base/json.cc', | |
| 69 '<(libjingle_source)/talk/base/json.h', | |
| 70 '<(libjingle_source)/talk/base/latebindingsymboltable.cc', | |
| 71 '<(libjingle_source)/talk/base/latebindingsymboltable.h', | |
| 72 '<(libjingle_source)/talk/base/linux.cc', | |
| 73 '<(libjingle_source)/talk/base/linux.h', | |
| 74 '<(libjingle_source)/talk/base/systeminfo.cc', | |
| 75 '<(libjingle_source)/talk/base/systeminfo.h', | |
| 76 | |
| 77 # Compiled as part of libjingle_p2p_constants_nacl. | |
| 78 '<(libjingle_source)/talk/p2p/base/constants.cc', | |
| 79 '<(libjingle_source)/talk/p2p/base/constants.h', | |
| 80 ], | |
| 81 'direct_dependent_settings': { | |
| 82 'include_dirs': [ | |
| 83 './overrides', | |
| 84 './<(libjingle_source)', | |
| 85 '../../testing/gtest/include', | |
| 86 '../../third_party', | |
| 87 '../../third_party/webrtc', | |
| 88 ], | |
| 89 'defines': [ | |
| 90 'EXPAT_RELATIVE_PATH', | |
| 91 'FEATURE_ENABLE_SSL', | |
| 92 'GTEST_RELATIVE_PATH', | |
| 93 'NATIVE_CLIENT=1', | |
| 94 'NO_MAIN_THREAD_WRAPPING', | |
| 95 'NO_SOUND_SYSTEM', | |
| 96 'POSIX', | |
| 97 'SRTP_RELATIVE_PATH', | |
| 98 'SSL_USE_OPENSSL', | |
| 99 'USE_WEBRTC_DEV_BRANCH', | |
| 100 ], | |
| 101 }, | |
| 102 'export_dependent_settings': [ | |
| 103 '<(DEPTH)/native_client_sdk/native_client_sdk_untrusted.gyp:nacl_io_untr usted', | |
| 104 ], | |
| 105 }, # end of target 'libjingle_nacl' | |
| 106 | |
| 107 { | |
| 108 'target_name': 'libjingle_p2p_constants_nacl', | |
| 109 'type': 'none', | |
| 110 'variables': { | |
| 111 'nlib_target': 'libjingle_p2p_constants_nacl.a', | |
| 112 'build_glibc': 0, | |
| 113 'build_newlib': 1, | |
| 114 'build_pnacl_newlib': 1, | |
| 115 }, | |
| 116 'configurations': { | |
| 117 'Debug': { | |
| 118 'defines': [ | |
| 119 # TODO(sergeyu): Fix libjingle to use NDEBUG instead of | |
| 120 # _DEBUG and remove this define. See below as well. | |
| 121 '_DEBUG', | |
| 122 ], | |
| 123 } | |
| 124 }, | |
| 125 'include_dirs': [ | |
| 126 './<(libjingle_source)', | |
| 127 ], | |
| 128 'sources': [ | |
| 129 '<(libjingle_source)/talk/p2p/base/constants.cc', | |
| 130 '<(libjingle_source)/talk/p2p/base/constants.h', | |
| 131 ], | |
| 132 }, # end of target 'libjingle_p2p_constants_nacl' | |
| 133 ], | |
| 134 } | |
| OLD | NEW |