3 # Copyright 2012, Google Inc.
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are met:
8 # 1. Redistributions of source code must retain the above copyright notice,
9 # this list of conditions and the following disclaimer.
10 # 2. Redistributions in binary form must reproduce the above copyright notice,
11 # this list of conditions and the following disclaimer in the documentation
12 # and/or other materials provided with the distribution.
13 # 3. The name of the author may not be used to endorse or promote products
14 # derived from this software without specific prior written permission.
16 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17 # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
19 # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 # This file contains common settings for building libjingle components.
32 'webrtc_root%': '<(DEPTH)/webrtc',
33 # TODO(ronghuawu): Chromium build will need a different libjingle_root.
34 'libjingle_root%': '<(DEPTH)',
35 # TODO(ronghuawu): For now, disable the Chrome plugins, which causes a
36 # flood of chromium-style warnings.
37 'clang_use_chrome_plugins%': 0,
38 'libpeer_target_type%': 'static_library',
40 ['OS=="android" or OS=="linux"', {
41 # TODO(henrike): make sure waterfall bots have $JAVA_HOME configured
42 # properly and remove the default value below. See issue 2113.
43 'java_home%': '<!(python -c "import os; dir=os.getenv(\'JAVA_HOME\', \'/usr/lib/jvm/java-6-sun\'); assert os.path.exists(os.path.join(dir, \'include/jni.h\')), \'Point \\$JAVA_HOME or the java_home gyp variable to a directory containing include/jni.h!\'; print dir")',
51 '../../third_party/webrtc',
55 'EXPAT_RELATIVE_PATH',
56 'FEATURE_ENABLE_VOICEMAIL',
57 'GTEST_RELATIVE_PATH',
58 'JSONCPP_RELATIVE_PATH',
64 'FEATURE_ENABLE_VOICEMAIL',
65 'FEATURE_ENABLE_PSTN',
66 # TODO(eric): enable HAVE_NSS_SSL_H and SSL_USE_NSS once they are ready.
72 # TODO(ronghuawu): Remove this once libjingle is updated to use the new
74 'USE_WEBRTC_DEV_BRANCH',
77 # TODO(ronghuawu): Support dynamic library build.
78 ['"<(libpeer_target_type)"=="static_library"', {
79 'defines': [ 'LIBPEERCONNECTION_LIB=1' ],
88 # TODO(ronghuawu): Fix the warning caused by
89 # LateBindingSymbolTable::TableInfo from
90 # latebindingsymboltable.cc.def and remove below flag.
91 '-Wno-address-of-array-temporary',
110 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
112 'CARBON_DEPRECATED=YES',
117 'HASH_NAMESPACE=__gnu_cxx',
119 'DISABLE_DYNAMIC_CAST',
120 # The POSIX standard says we have to define this.
124 # TODO(jiayl): collapse the following 5 defines into 2, one for NSS and
125 # one for OPENSSL, and update the relevant code.
129 'HAVE_OPENSSL_SSL_H',
132 '<(DEPTH)/third_party/openssl/openssl.gyp:openssl',
141 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
143 '<(DEPTH)/build/linux/system.gyp:ssl',
146 ['OS == "mac" or OS == "ios" or OS == "win"', {
148 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
149 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
150 '<(DEPTH)/third_party/nss/nss.gyp:nss',