| OLD | NEW |
| (Empty) |
| 1 # | |
| 2 # libjingle | |
| 3 # Copyright 2012 Google Inc. | |
| 4 # | |
| 5 # Redistribution and use in source and binary forms, with or without | |
| 6 # modification, are permitted provided that the following conditions are met: | |
| 7 # | |
| 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. | |
| 15 # | |
| 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. | |
| 26 # | |
| 27 | |
| 28 # This file contains common settings for building libjingle components. | |
| 29 | |
| 30 { | |
| 31 'variables': { | |
| 32 'webrtc_root%': '<(DEPTH)/webrtc', | |
| 33 # TODO(ronghuawu): For now, disable the Chrome plugins, which causes a | |
| 34 # flood of chromium-style warnings. | |
| 35 'clang_use_chrome_plugins%': 0, | |
| 36 # Disable these to not build components which can be externally provided. | |
| 37 'build_json%': 1, | |
| 38 }, | |
| 39 'target_defaults': { | |
| 40 'include_dirs': [ | |
| 41 '<(DEPTH)', | |
| 42 '../..', | |
| 43 '../../third_party', | |
| 44 '../../third_party/webrtc', | |
| 45 '../../webrtc', | |
| 46 ], | |
| 47 'conditions': [ | |
| 48 ['OS=="linux"', { | |
| 49 'defines': [ | |
| 50 'WEBRTC_LINUX', | |
| 51 ], | |
| 52 # Remove Chromium's disabling of the -Wformat warning. | |
| 53 'cflags!': [ | |
| 54 '-Wno-format', | |
| 55 ], | |
| 56 'conditions': [ | |
| 57 ['clang==1', { | |
| 58 'cflags': [ | |
| 59 '-Wall', | |
| 60 '-Wextra', | |
| 61 '-Wformat', | |
| 62 '-Wformat-security', | |
| 63 '-Wimplicit-fallthrough', | |
| 64 '-Wmissing-braces', | |
| 65 '-Wreorder', | |
| 66 '-Wunused-variable', | |
| 67 # TODO(ronghuawu): Fix the warning caused by | |
| 68 # LateBindingSymbolTable::TableInfo from | |
| 69 # latebindingsymboltable.cc.def and remove below flag. | |
| 70 '-Wno-address-of-array-temporary', | |
| 71 '-Wthread-safety', | |
| 72 ], | |
| 73 'cflags_cc': [ | |
| 74 '-Wunused-private-field', | |
| 75 ], | |
| 76 }], | |
| 77 ], | |
| 78 }], | |
| 79 ['OS=="mac"', { | |
| 80 'defines': [ | |
| 81 'WEBRTC_MAC', | |
| 82 ], | |
| 83 }], | |
| 84 ['OS=="win"', { | |
| 85 'defines': [ | |
| 86 'WEBRTC_WIN', | |
| 87 ], | |
| 88 'msvs_disabled_warnings': [ | |
| 89 # https://code.google.com/p/chromium/issues/detail?id=372451#c20 | |
| 90 # Warning 4702 ("Unreachable code") should be re-enabled once | |
| 91 # users are updated to VS2013 Update 2. | |
| 92 4702, | |
| 93 ], | |
| 94 }], | |
| 95 ['OS=="ios"', { | |
| 96 'defines': [ | |
| 97 'WEBRTC_MAC', | |
| 98 'WEBRTC_IOS', | |
| 99 ], | |
| 100 }], | |
| 101 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { | |
| 102 'defines': [ | |
| 103 'CARBON_DEPRECATED=YES', | |
| 104 ], | |
| 105 }], | |
| 106 ['os_posix==1', { | |
| 107 'configurations': { | |
| 108 'Debug_Base': { | |
| 109 'defines': [ | |
| 110 # Chromium's build/common.gypi defines this for all posix _except_ | |
| 111 # for ios & mac. We want it there as well, e.g. because ASSERT | |
| 112 # and friends trigger off of it. | |
| 113 '_DEBUG', | |
| 114 ], | |
| 115 }, | |
| 116 }, | |
| 117 'defines': [ | |
| 118 'HASH_NAMESPACE=__gnu_cxx', | |
| 119 'WEBRTC_POSIX', | |
| 120 'DISABLE_DYNAMIC_CAST', | |
| 121 # The POSIX standard says we have to define this. | |
| 122 '_REENTRANT', | |
| 123 ], | |
| 124 }], | |
| 125 ], | |
| 126 }, # target_defaults | |
| 127 } | |
| OLD | NEW |