henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 1 | # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license |
| 4 | # that can be found in the LICENSE file in the root of the source |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
| 9 | { |
| 10 | 'includes': [ '../build/common.gypi', ], |
| 11 | 'conditions': [ |
| 12 | ['os_posix == 1 and OS != "mac" and OS != "ios"', { |
| 13 | 'conditions': [ |
| 14 | ['sysroot!=""', { |
| 15 | 'variables': { |
| 16 | 'pkg-config': '../../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"', |
| 17 | }, |
| 18 | }, { |
| 19 | 'variables': { |
| 20 | 'pkg-config': 'pkg-config' |
| 21 | }, |
| 22 | }], |
| 23 | ], |
| 24 | }], |
| 25 | ], |
| 26 | 'targets': [ |
| 27 | { |
andrew@webrtc.org | 6ae5a6d | 2014-09-16 01:03:29 | [diff] [blame] | 28 | # The subset of rtc_base approved for use outside of libjingle. |
| 29 | 'target_name': 'rtc_base_approved', |
| 30 | 'type': 'static_library', |
| 31 | 'sources': [ |
Karl Wiberg | 9478437 | 2015-04-20 12:03:07 | [diff] [blame] | 32 | 'buffer.cc', |
| 33 | 'buffer.h', |
andrew@webrtc.org | 6ae5a6d | 2014-09-16 01:03:29 | [diff] [blame] | 34 | 'checks.cc', |
| 35 | 'checks.h', |
tommi@webrtc.org | 4c0fd96 | 2015-02-09 10:23:27 | [diff] [blame] | 36 | 'event.cc', |
| 37 | 'event.h', |
tommi@webrtc.org | 7c64ed2 | 2015-03-17 14:25:37 | [diff] [blame] | 38 | 'event_tracer.cc', |
| 39 | 'event_tracer.h', |
andrew@webrtc.org | 6ae5a6d | 2014-09-16 01:03:29 | [diff] [blame] | 40 | 'exp_filter.cc', |
| 41 | 'exp_filter.h', |
| 42 | 'md5.cc', |
| 43 | 'md5.h', |
kwiberg@webrtc.org | 67186fe | 2015-03-09 22:21:53 | [diff] [blame] | 44 | 'md5digest.cc', |
andrew@webrtc.org | 6ae5a6d | 2014-09-16 01:03:29 | [diff] [blame] | 45 | 'md5digest.h', |
xians@webrtc.org | e46bc77 | 2014-10-10 08:36:56 | [diff] [blame] | 46 | 'platform_file.cc', |
| 47 | 'platform_file.h', |
andrew@webrtc.org | 0ab42bc | 2014-12-17 22:56:09 | [diff] [blame] | 48 | 'safe_conversions.h', |
| 49 | 'safe_conversions_impl.h', |
andrew@webrtc.org | 6ae5a6d | 2014-09-16 01:03:29 | [diff] [blame] | 50 | 'stringencode.cc', |
| 51 | 'stringencode.h', |
| 52 | 'stringutils.cc', |
| 53 | 'stringutils.h', |
kwiberg@webrtc.org | af9d56f | 2015-01-13 20:32:04 | [diff] [blame] | 54 | 'template_util.h', |
pbos@webrtc.org | 38344ed | 2014-09-24 06:05:00 | [diff] [blame] | 55 | 'thread_annotations.h', |
tommi@webrtc.org | 04cd466 | 2015-01-26 15:27:29 | [diff] [blame] | 56 | 'thread_checker.h', |
| 57 | 'thread_checker_impl.cc', |
| 58 | 'thread_checker_impl.h', |
andrew@webrtc.org | 6ae5a6d | 2014-09-16 01:03:29 | [diff] [blame] | 59 | 'timeutils.cc', |
| 60 | 'timeutils.h', |
tommi@webrtc.org | 7c64ed2 | 2015-03-17 14:25:37 | [diff] [blame] | 61 | 'trace_event.h', |
andrew@webrtc.org | 6ae5a6d | 2014-09-16 01:03:29 | [diff] [blame] | 62 | ], |
| 63 | }, |
| 64 | { |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 | [diff] [blame] | 65 | 'target_name': 'rtc_base', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 66 | 'type': 'static_library', |
andrew@webrtc.org | 6ae5a6d | 2014-09-16 01:03:29 | [diff] [blame] | 67 | 'dependencies': [ |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 | [diff] [blame] | 68 | '<(webrtc_root)/common.gyp:webrtc_common', |
andrew@webrtc.org | 6ae5a6d | 2014-09-16 01:03:29 | [diff] [blame] | 69 | 'rtc_base_approved', |
| 70 | ], |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 71 | 'defines': [ |
| 72 | 'FEATURE_ENABLE_SSL', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 73 | 'LOGGING=1', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 74 | ], |
| 75 | 'sources': [ |
pkasting@chromium.org | e7a4a12 | 2015-01-28 21:36:55 | [diff] [blame] | 76 | 'arraysize.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 77 | 'asyncfile.cc', |
| 78 | 'asyncfile.h', |
| 79 | 'asynchttprequest.cc', |
| 80 | 'asynchttprequest.h', |
| 81 | 'asyncinvoker.cc', |
| 82 | 'asyncinvoker.h', |
kjellander@webrtc.org | 2bae321 | 2014-06-16 07:11:19 | [diff] [blame] | 83 | 'asyncinvoker-inl.h', |
kwiberg@webrtc.org | 67186fe | 2015-03-09 22:21:53 | [diff] [blame] | 84 | 'asyncpacketsocket.cc', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 85 | 'asyncpacketsocket.h', |
kwiberg@webrtc.org | 67186fe | 2015-03-09 22:21:53 | [diff] [blame] | 86 | 'asyncresolverinterface.cc', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 87 | 'asyncresolverinterface.h', |
| 88 | 'asyncsocket.cc', |
| 89 | 'asyncsocket.h', |
| 90 | 'asynctcpsocket.cc', |
| 91 | 'asynctcpsocket.h', |
| 92 | 'asyncudpsocket.cc', |
| 93 | 'asyncudpsocket.h', |
| 94 | 'atomicops.h', |
| 95 | 'autodetectproxy.cc', |
| 96 | 'autodetectproxy.h', |
| 97 | 'bandwidthsmoother.cc', |
| 98 | 'bandwidthsmoother.h', |
| 99 | 'base64.cc', |
| 100 | 'base64.h', |
| 101 | 'basicdefs.h', |
| 102 | 'basictypes.h', |
| 103 | 'bind.h', |
kjellander@webrtc.org | 2bae321 | 2014-06-16 07:11:19 | [diff] [blame] | 104 | 'bind.h.pump', |
Noah Richards | bbf7c86 | 2015-04-21 23:30:13 | [diff] [blame^] | 105 | 'bitbuffer.cc', |
| 106 | 'bitbuffer.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 107 | 'bytebuffer.cc', |
| 108 | 'bytebuffer.h', |
| 109 | 'byteorder.h', |
| 110 | 'callback.h', |
kjellander@webrtc.org | 2bae321 | 2014-06-16 07:11:19 | [diff] [blame] | 111 | 'callback.h.pump', |
andrew@webrtc.org | 6ae5a6d | 2014-09-16 01:03:29 | [diff] [blame] | 112 | 'constructormagic.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 113 | 'common.cc', |
| 114 | 'common.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 115 | 'cpumonitor.cc', |
| 116 | 'cpumonitor.h', |
| 117 | 'crc32.cc', |
| 118 | 'crc32.h', |
Jiayang Liu | bef8d2d | 2015-03-26 21:38:46 | [diff] [blame] | 119 | 'criticalsection.cc', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 120 | 'criticalsection.h', |
kwiberg@webrtc.org | 67186fe | 2015-03-09 22:21:53 | [diff] [blame] | 121 | 'cryptstring.cc', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 122 | 'cryptstring.h', |
| 123 | 'dbus.cc', |
| 124 | 'dbus.h', |
| 125 | 'diskcache.cc', |
| 126 | 'diskcache.h', |
| 127 | 'diskcache_win32.cc', |
| 128 | 'diskcache_win32.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 129 | 'filelock.cc', |
| 130 | 'filelock.h', |
| 131 | 'fileutils.cc', |
| 132 | 'fileutils.h', |
| 133 | 'fileutils_mock.h', |
| 134 | 'firewallsocketserver.cc', |
| 135 | 'firewallsocketserver.h', |
| 136 | 'flags.cc', |
| 137 | 'flags.h', |
pkasting@chromium.org | 4591fbd | 2014-11-20 22:28:14 | [diff] [blame] | 138 | 'format_macros.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 139 | 'gunit_prod.h', |
| 140 | 'helpers.cc', |
| 141 | 'helpers.h', |
| 142 | 'httpbase.cc', |
| 143 | 'httpbase.h', |
| 144 | 'httpclient.cc', |
| 145 | 'httpclient.h', |
| 146 | 'httpcommon-inl.h', |
| 147 | 'httpcommon.cc', |
| 148 | 'httpcommon.h', |
| 149 | 'httprequest.cc', |
| 150 | 'httprequest.h', |
| 151 | 'httpserver.cc', |
| 152 | 'httpserver.h', |
| 153 | 'ifaddrs-android.cc', |
| 154 | 'ifaddrs-android.h', |
| 155 | 'iosfilesystem.mm', |
| 156 | 'ipaddress.cc', |
| 157 | 'ipaddress.h', |
| 158 | 'json.cc', |
| 159 | 'json.h', |
| 160 | 'latebindingsymboltable.cc', |
kjellander@webrtc.org | 2bae321 | 2014-06-16 07:11:19 | [diff] [blame] | 161 | 'latebindingsymboltable.cc.def', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 162 | 'latebindingsymboltable.h', |
kjellander@webrtc.org | 2bae321 | 2014-06-16 07:11:19 | [diff] [blame] | 163 | 'latebindingsymboltable.h.def', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 164 | 'libdbusglibsymboltable.cc', |
| 165 | 'libdbusglibsymboltable.h', |
| 166 | 'linux.cc', |
| 167 | 'linux.h', |
| 168 | 'linuxfdwalk.c', |
kjellander@webrtc.org | 2bae321 | 2014-06-16 07:11:19 | [diff] [blame] | 169 | 'linuxfdwalk.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 170 | 'linked_ptr.h', |
| 171 | 'logging.cc', |
| 172 | 'logging.h', |
| 173 | 'macasyncsocket.cc', |
| 174 | 'macasyncsocket.h', |
| 175 | 'maccocoasocketserver.h', |
| 176 | 'maccocoasocketserver.mm', |
| 177 | 'maccocoathreadhelper.h', |
| 178 | 'maccocoathreadhelper.mm', |
| 179 | 'macconversion.cc', |
| 180 | 'macconversion.h', |
| 181 | 'macsocketserver.cc', |
| 182 | 'macsocketserver.h', |
| 183 | 'macutils.cc', |
| 184 | 'macutils.h', |
| 185 | 'macwindowpicker.cc', |
| 186 | 'macwindowpicker.h', |
| 187 | 'mathutils.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 188 | 'messagedigest.cc', |
| 189 | 'messagedigest.h', |
| 190 | 'messagehandler.cc', |
| 191 | 'messagehandler.h', |
| 192 | 'messagequeue.cc', |
| 193 | 'messagequeue.h', |
| 194 | 'multipart.cc', |
| 195 | 'multipart.h', |
| 196 | 'natserver.cc', |
| 197 | 'natserver.h', |
| 198 | 'natsocketfactory.cc', |
| 199 | 'natsocketfactory.h', |
| 200 | 'nattypes.cc', |
| 201 | 'nattypes.h', |
| 202 | 'nethelpers.cc', |
| 203 | 'nethelpers.h', |
| 204 | 'network.cc', |
| 205 | 'network.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 206 | 'nullsocketserver.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 207 | 'optionsfile.cc', |
| 208 | 'optionsfile.h', |
| 209 | 'pathutils.cc', |
| 210 | 'pathutils.h', |
| 211 | 'physicalsocketserver.cc', |
| 212 | 'physicalsocketserver.h', |
| 213 | 'posix.cc', |
| 214 | 'posix.h', |
| 215 | 'profiler.cc', |
| 216 | 'profiler.h', |
| 217 | 'proxydetect.cc', |
| 218 | 'proxydetect.h', |
| 219 | 'proxyinfo.cc', |
| 220 | 'proxyinfo.h', |
| 221 | 'proxyserver.cc', |
| 222 | 'proxyserver.h', |
| 223 | 'ratelimiter.cc', |
| 224 | 'ratelimiter.h', |
| 225 | 'ratetracker.cc', |
| 226 | 'ratetracker.h', |
| 227 | 'refcount.h', |
| 228 | 'referencecountedsingletonfactory.h', |
| 229 | 'rollingaccumulator.h', |
| 230 | 'schanneladapter.cc', |
| 231 | 'schanneladapter.h', |
| 232 | 'scoped_autorelease_pool.h', |
| 233 | 'scoped_autorelease_pool.mm', |
| 234 | 'scoped_ptr.h', |
| 235 | 'scoped_ref_ptr.h', |
| 236 | 'scopedptrcollection.h', |
| 237 | 'sec_buffer.h', |
| 238 | 'sha1.cc', |
| 239 | 'sha1.h', |
kwiberg@webrtc.org | 67186fe | 2015-03-09 22:21:53 | [diff] [blame] | 240 | 'sha1digest.cc', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 241 | 'sha1digest.h', |
tommi@webrtc.org | fe19699 | 2015-02-07 22:35:54 | [diff] [blame] | 242 | 'sharedexclusivelock.cc', |
| 243 | 'sharedexclusivelock.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 244 | 'signalthread.cc', |
| 245 | 'signalthread.h', |
kwiberg@webrtc.org | 67186fe | 2015-03-09 22:21:53 | [diff] [blame] | 246 | 'sigslot.cc', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 247 | 'sigslot.h', |
| 248 | 'sigslotrepeater.h', |
| 249 | 'socket.h', |
| 250 | 'socketadapters.cc', |
| 251 | 'socketadapters.h', |
| 252 | 'socketaddress.cc', |
| 253 | 'socketaddress.h', |
| 254 | 'socketaddresspair.cc', |
| 255 | 'socketaddresspair.h', |
| 256 | 'socketfactory.h', |
| 257 | 'socketpool.cc', |
| 258 | 'socketpool.h', |
| 259 | 'socketserver.h', |
| 260 | 'socketstream.cc', |
| 261 | 'socketstream.h', |
| 262 | 'ssladapter.cc', |
| 263 | 'ssladapter.h', |
| 264 | 'sslconfig.h', |
| 265 | 'sslfingerprint.cc', |
| 266 | 'sslfingerprint.h', |
| 267 | 'sslidentity.cc', |
| 268 | 'sslidentity.h', |
| 269 | 'sslroots.h', |
| 270 | 'sslsocketfactory.cc', |
| 271 | 'sslsocketfactory.h', |
| 272 | 'sslstreamadapter.cc', |
| 273 | 'sslstreamadapter.h', |
| 274 | 'sslstreamadapterhelper.cc', |
| 275 | 'sslstreamadapterhelper.h', |
| 276 | 'stream.cc', |
| 277 | 'stream.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 278 | 'systeminfo.cc', |
| 279 | 'systeminfo.h', |
| 280 | 'task.cc', |
| 281 | 'task.h', |
| 282 | 'taskparent.cc', |
| 283 | 'taskparent.h', |
| 284 | 'taskrunner.cc', |
| 285 | 'taskrunner.h', |
| 286 | 'testclient.cc', |
| 287 | 'testclient.h', |
| 288 | 'thread.cc', |
| 289 | 'thread.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 290 | 'timing.cc', |
| 291 | 'timing.h', |
| 292 | 'transformadapter.cc', |
| 293 | 'transformadapter.h', |
| 294 | 'unixfilesystem.cc', |
| 295 | 'unixfilesystem.h', |
| 296 | 'urlencode.cc', |
| 297 | 'urlencode.h', |
| 298 | 'versionparsing.cc', |
| 299 | 'versionparsing.h', |
| 300 | 'virtualsocketserver.cc', |
| 301 | 'virtualsocketserver.h', |
| 302 | 'win32.cc', |
| 303 | 'win32.h', |
| 304 | 'win32filesystem.cc', |
| 305 | 'win32filesystem.h', |
| 306 | 'win32regkey.cc', |
| 307 | 'win32regkey.h', |
| 308 | 'win32securityerrors.cc', |
| 309 | 'win32socketinit.cc', |
| 310 | 'win32socketinit.h', |
| 311 | 'win32socketserver.cc', |
| 312 | 'win32socketserver.h', |
| 313 | 'win32window.cc', |
| 314 | 'win32window.h', |
| 315 | 'win32windowpicker.cc', |
| 316 | 'win32windowpicker.h', |
| 317 | 'window.h', |
| 318 | 'windowpicker.h', |
| 319 | 'windowpickerfactory.h', |
| 320 | 'winfirewall.cc', |
| 321 | 'winfirewall.h', |
| 322 | 'winping.cc', |
| 323 | 'winping.h', |
| 324 | 'worker.cc', |
| 325 | 'worker.h', |
henrike@webrtc.org | fb1eb43 | 2014-08-15 14:44:13 | [diff] [blame] | 326 | 'x11windowpicker.cc', |
| 327 | 'x11windowpicker.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 328 | '../overrides/webrtc/base/basictypes.h', |
| 329 | '../overrides/webrtc/base/constructormagic.h', |
| 330 | '../overrides/webrtc/base/logging.cc', |
| 331 | '../overrides/webrtc/base/logging.h', |
| 332 | '../overrides/webrtc/base/win32socketinit.cc', |
| 333 | ], |
henrike@webrtc.org | b2efb67 | 2014-09-10 17:28:19 | [diff] [blame] | 334 | # TODO(henrike): issue 3307, make rtc_base build without disabling |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 335 | # these flags. |
| 336 | 'cflags!': [ |
| 337 | '-Wextra', |
| 338 | '-Wall', |
| 339 | ], |
| 340 | 'cflags_cc!': [ |
| 341 | '-Wnon-virtual-dtor', |
| 342 | ], |
| 343 | 'direct_dependent_settings': { |
| 344 | 'cflags_cc!': [ |
| 345 | '-Wnon-virtual-dtor', |
| 346 | ], |
| 347 | 'defines': [ |
| 348 | 'FEATURE_ENABLE_SSL', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 349 | ], |
| 350 | }, |
| 351 | 'include_dirs': [ |
| 352 | '../../third_party/jsoncpp/overrides/include', |
| 353 | '../../third_party/jsoncpp/source/include', |
| 354 | ], |
| 355 | 'conditions': [ |
| 356 | ['build_with_chromium==1', { |
| 357 | 'include_dirs': [ |
| 358 | '../overrides', |
henrike@webrtc.org | 6ac22e6 | 2014-08-11 21:06:30 | [diff] [blame] | 359 | '../../boringssl/src/include', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 360 | ], |
| 361 | 'sources!': [ |
| 362 | 'asyncinvoker.cc', |
| 363 | 'asyncinvoker.h', |
| 364 | 'asyncinvoker-inl.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 365 | 'atomicops.h', |
| 366 | 'bandwidthsmoother.cc', |
| 367 | 'bandwidthsmoother.h', |
| 368 | 'basictypes.h', |
| 369 | 'bind.h', |
| 370 | 'bind.h.pump', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 371 | 'callback.h', |
| 372 | 'callback.h.pump', |
| 373 | 'constructormagic.h', |
| 374 | 'dbus.cc', |
| 375 | 'dbus.h', |
| 376 | 'diskcache_win32.cc', |
| 377 | 'diskcache_win32.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 378 | 'filelock.cc', |
| 379 | 'filelock.h', |
| 380 | 'fileutils_mock.h', |
| 381 | 'genericslot.h', |
| 382 | 'genericslot.h.pump', |
| 383 | 'httpserver.cc', |
| 384 | 'httpserver.h', |
| 385 | 'json.cc', |
| 386 | 'json.h', |
| 387 | 'latebindingsymboltable.cc', |
| 388 | 'latebindingsymboltable.cc.def', |
| 389 | 'latebindingsymboltable.h', |
| 390 | 'latebindingsymboltable.h.def', |
| 391 | 'libdbusglibsymboltable.cc', |
| 392 | 'libdbusglibsymboltable.h', |
| 393 | 'linuxfdwalk.c', |
| 394 | 'linuxfdwalk.h', |
henrike@webrtc.org | fb1eb43 | 2014-08-15 14:44:13 | [diff] [blame] | 395 | 'x11windowpicker.cc', |
| 396 | 'x11windowpicker.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 397 | 'logging.cc', |
| 398 | 'logging.h', |
| 399 | 'macasyncsocket.cc', |
| 400 | 'macasyncsocket.h', |
| 401 | 'maccocoasocketserver.h', |
| 402 | 'maccocoasocketserver.mm', |
| 403 | 'macsocketserver.cc', |
| 404 | 'macsocketserver.h', |
| 405 | 'macwindowpicker.cc', |
| 406 | 'macwindowpicker.h', |
| 407 | 'mathutils.h', |
| 408 | 'multipart.cc', |
| 409 | 'multipart.h', |
| 410 | 'natserver.cc', |
| 411 | 'natserver.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 412 | 'natsocketfactory.cc', |
| 413 | 'natsocketfactory.h', |
| 414 | 'nattypes.cc', |
| 415 | 'nattypes.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 416 | 'optionsfile.cc', |
| 417 | 'optionsfile.h', |
| 418 | 'posix.cc', |
| 419 | 'posix.h', |
| 420 | 'profiler.cc', |
| 421 | 'profiler.h', |
| 422 | 'proxyserver.cc', |
| 423 | 'proxyserver.h', |
| 424 | 'refcount.h', |
| 425 | 'referencecountedsingletonfactory.h', |
| 426 | 'rollingaccumulator.h', |
| 427 | 'safe_conversions.h', |
| 428 | 'safe_conversions_impl.h', |
| 429 | 'scopedptrcollection.h', |
| 430 | 'scoped_ref_ptr.h', |
| 431 | 'sec_buffer.h', |
| 432 | 'sharedexclusivelock.cc', |
| 433 | 'sharedexclusivelock.h', |
| 434 | 'sslconfig.h', |
| 435 | 'sslroots.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 436 | 'testbase64.h', |
| 437 | 'testclient.cc', |
| 438 | 'testclient.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 439 | 'transformadapter.cc', |
| 440 | 'transformadapter.h', |
| 441 | 'versionparsing.cc', |
| 442 | 'versionparsing.h', |
| 443 | 'virtualsocketserver.cc', |
| 444 | 'virtualsocketserver.h', |
| 445 | 'win32regkey.cc', |
| 446 | 'win32regkey.h', |
| 447 | 'win32socketinit.cc', |
| 448 | 'win32socketinit.h', |
| 449 | 'win32socketserver.cc', |
| 450 | 'win32socketserver.h', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 451 | 'window.h', |
| 452 | 'windowpickerfactory.h', |
| 453 | 'windowpicker.h', |
| 454 | ], |
| 455 | 'defines': [ |
| 456 | 'NO_MAIN_THREAD_WRAPPING', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 457 | ], |
| 458 | 'direct_dependent_settings': { |
| 459 | 'defines': [ |
| 460 | 'NO_MAIN_THREAD_WRAPPING', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 461 | ], |
| 462 | }, |
| 463 | }, { |
henrike@webrtc.org | 9f36c08 | 2014-06-16 21:35:20 | [diff] [blame] | 464 | 'conditions': [ |
henrike@webrtc.org | a685c9d | 2014-06-17 14:48:44 | [diff] [blame] | 465 | ['build_json==1', { |
henrike@webrtc.org | 9f36c08 | 2014-06-16 21:35:20 | [diff] [blame] | 466 | 'dependencies': [ |
| 467 | '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', |
| 468 | ], |
| 469 | }, { |
| 470 | 'include_dirs': [ |
| 471 | '<(json_root)', |
| 472 | ], |
| 473 | 'defines': [ |
| 474 | # When defined changes the include path for json.h to where it |
| 475 | # is expected to be when building json outside of the standalone |
| 476 | # build. |
henrike@webrtc.org | a685c9d | 2014-06-17 14:48:44 | [diff] [blame] | 477 | 'WEBRTC_EXTERNAL_JSON', |
henrike@webrtc.org | 9f36c08 | 2014-06-16 21:35:20 | [diff] [blame] | 478 | ], |
| 479 | }], |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 480 | ], |
| 481 | 'sources!': [ |
| 482 | '../overrides/webrtc/base/basictypes.h', |
| 483 | '../overrides/webrtc/base/constructormagic.h', |
| 484 | '../overrides/webrtc/base/win32socketinit.cc', |
| 485 | '../overrides/webrtc/base/logging.cc', |
| 486 | '../overrides/webrtc/base/logging.h', |
| 487 | ], |
| 488 | }], |
pbos@webrtc.org | 77d5a57 | 2014-10-07 11:43:03 | [diff] [blame] | 489 | ['use_openssl==1', { |
| 490 | 'defines': [ |
| 491 | 'SSL_USE_OPENSSL', |
| 492 | 'HAVE_OPENSSL_SSL_H', |
| 493 | ], |
| 494 | 'direct_dependent_settings': { |
| 495 | 'defines': [ |
| 496 | 'SSL_USE_OPENSSL', |
| 497 | 'HAVE_OPENSSL_SSL_H', |
| 498 | ], |
| 499 | }, |
pthatcher@webrtc.org | 5d0071f | 2014-09-26 18:53:40 | [diff] [blame] | 500 | 'sources': [ |
pbos@webrtc.org | 77d5a57 | 2014-10-07 11:43:03 | [diff] [blame] | 501 | 'openssl.h', |
| 502 | 'openssladapter.cc', |
| 503 | 'openssladapter.h', |
| 504 | 'openssldigest.cc', |
| 505 | 'openssldigest.h', |
| 506 | 'opensslidentity.cc', |
| 507 | 'opensslidentity.h', |
| 508 | 'opensslstreamadapter.cc', |
| 509 | 'opensslstreamadapter.h', |
pthatcher@webrtc.org | 5d0071f | 2014-09-26 18:53:40 | [diff] [blame] | 510 | ], |
henrike@webrtc.org | 9f36c08 | 2014-06-16 21:35:20 | [diff] [blame] | 511 | 'conditions': [ |
pbos@webrtc.org | 77d5a57 | 2014-10-07 11:43:03 | [diff] [blame] | 512 | ['build_ssl==1', { |
| 513 | 'dependencies': [ |
| 514 | '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl', |
| 515 | ], |
| 516 | }, { |
henrike@webrtc.org | 9f36c08 | 2014-06-16 21:35:20 | [diff] [blame] | 517 | 'include_dirs': [ |
| 518 | '<(ssl_root)', |
| 519 | ], |
| 520 | }], |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 521 | ], |
| 522 | }, { |
pbos@webrtc.org | 77d5a57 | 2014-10-07 11:43:03 | [diff] [blame] | 523 | 'sources': [ |
| 524 | 'nssidentity.cc', |
| 525 | 'nssidentity.h', |
| 526 | 'nssstreamadapter.cc', |
| 527 | 'nssstreamadapter.h', |
| 528 | ], |
tpsiaki@google.com | 67eabc0 | 2014-09-10 18:06:47 | [diff] [blame] | 529 | 'conditions': [ |
pbos@webrtc.org | 77d5a57 | 2014-10-07 11:43:03 | [diff] [blame] | 530 | ['use_legacy_ssl_defaults!=1', { |
tpsiaki@google.com | 67eabc0 | 2014-09-10 18:06:47 | [diff] [blame] | 531 | 'defines': [ |
| 532 | 'SSL_USE_NSS', |
| 533 | 'HAVE_NSS_SSL_H', |
| 534 | 'SSL_USE_NSS_RNG', |
| 535 | ], |
| 536 | 'direct_dependent_settings': { |
| 537 | 'defines': [ |
| 538 | 'SSL_USE_NSS', |
| 539 | 'HAVE_NSS_SSL_H', |
| 540 | 'SSL_USE_NSS_RNG', |
| 541 | ], |
| 542 | }, |
pbos@webrtc.org | 77d5a57 | 2014-10-07 11:43:03 | [diff] [blame] | 543 | }], |
henrike@webrtc.org | 33a0e2d | 2014-10-27 18:13:40 | [diff] [blame] | 544 | ['build_ssl==1', { |
pthatcher@webrtc.org | 5d0071f | 2014-09-26 18:53:40 | [diff] [blame] | 545 | 'conditions': [ |
henrike@webrtc.org | 33a0e2d | 2014-10-27 18:13:40 | [diff] [blame] | 546 | # On some platforms, the rest of NSS is bundled. On others, |
| 547 | # it's pulled from the system. |
Henrik Kjellander | ca047f7 | 2015-04-08 06:54:02 | [diff] [blame] | 548 | ['OS == "mac" or OS == "ios"', { |
pthatcher@webrtc.org | 5d0071f | 2014-09-26 18:53:40 | [diff] [blame] | 549 | 'dependencies': [ |
| 550 | '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl', |
pbos@webrtc.org | 77d5a57 | 2014-10-07 11:43:03 | [diff] [blame] | 551 | '<(DEPTH)/third_party/nss/nss.gyp:nspr', |
| 552 | '<(DEPTH)/third_party/nss/nss.gyp:nss', |
pthatcher@webrtc.org | 5d0071f | 2014-09-26 18:53:40 | [diff] [blame] | 553 | ], |
henrike@webrtc.org | 33a0e2d | 2014-10-27 18:13:40 | [diff] [blame] | 554 | }], |
| 555 | ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { |
| 556 | 'dependencies': [ |
| 557 | '<(DEPTH)/build/linux/system.gyp:ssl', |
pthatcher@webrtc.org | 5d0071f | 2014-09-26 18:53:40 | [diff] [blame] | 558 | ], |
| 559 | }], |
| 560 | ], |
henrike@webrtc.org | 33a0e2d | 2014-10-27 18:13:40 | [diff] [blame] | 561 | }, { |
| 562 | 'include_dirs': [ |
| 563 | '<(ssl_root)', |
| 564 | ], |
pthatcher@webrtc.org | 5d0071f | 2014-09-26 18:53:40 | [diff] [blame] | 565 | }], |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 566 | ], |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 567 | }], |
| 568 | ['OS == "android"', { |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 569 | 'link_settings': { |
| 570 | 'libraries': [ |
| 571 | '-llog', |
| 572 | '-lGLESv2', |
| 573 | ], |
| 574 | }, |
| 575 | }, { |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 576 | 'sources!': [ |
| 577 | 'ifaddrs-android.cc', |
| 578 | 'ifaddrs-android.h', |
| 579 | ], |
| 580 | }], |
| 581 | ['OS=="ios"', { |
| 582 | 'all_dependent_settings': { |
| 583 | 'xcode_settings': { |
| 584 | 'OTHER_LDFLAGS': [ |
| 585 | '-framework Foundation', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 586 | '-framework Security', |
| 587 | '-framework SystemConfiguration', |
| 588 | '-framework UIKit', |
| 589 | ], |
| 590 | }, |
| 591 | }, |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 592 | }], |
henrike@webrtc.org | fb1eb43 | 2014-08-15 14:44:13 | [diff] [blame] | 593 | ['use_x11 == 1', { |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 594 | 'link_settings': { |
| 595 | 'libraries': [ |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 596 | '-ldl', |
| 597 | '-lrt', |
| 598 | '-lXext', |
| 599 | '-lX11', |
| 600 | '-lXcomposite', |
| 601 | '-lXrender', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 602 | ], |
| 603 | }, |
henrike@webrtc.org | fb1eb43 | 2014-08-15 14:44:13 | [diff] [blame] | 604 | }, { |
| 605 | 'sources!': [ |
| 606 | 'x11windowpicker.cc', |
| 607 | 'x11windowpicker.h', |
| 608 | ], |
| 609 | }], |
| 610 | ['OS=="linux"', { |
| 611 | 'link_settings': { |
| 612 | 'libraries': [ |
henrike@webrtc.org | fb1eb43 | 2014-08-15 14:44:13 | [diff] [blame] | 613 | '-ldl', |
| 614 | '-lrt', |
| 615 | ], |
| 616 | }, |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 617 | }, { |
| 618 | 'sources!': [ |
| 619 | 'dbus.cc', |
| 620 | 'dbus.h', |
| 621 | 'libdbusglibsymboltable.cc', |
| 622 | 'libdbusglibsymboltable.h', |
| 623 | 'linuxfdwalk.c', |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 624 | ], |
| 625 | }], |
| 626 | ['OS=="mac"', { |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 627 | 'all_dependent_settings': { |
| 628 | 'link_settings': { |
| 629 | 'xcode_settings': { |
| 630 | 'OTHER_LDFLAGS': [ |
| 631 | '-framework Cocoa', |
| 632 | '-framework Foundation', |
| 633 | '-framework IOKit', |
| 634 | '-framework Security', |
| 635 | '-framework SystemConfiguration', |
| 636 | ], |
| 637 | }, |
| 638 | }, |
| 639 | }, |
| 640 | 'conditions': [ |
| 641 | ['target_arch=="ia32"', { |
| 642 | 'all_dependent_settings': { |
| 643 | 'link_settings': { |
| 644 | 'xcode_settings': { |
| 645 | 'OTHER_LDFLAGS': [ |
| 646 | '-framework Carbon', |
| 647 | ], |
| 648 | }, |
| 649 | }, |
| 650 | }, |
| 651 | }], |
| 652 | ], |
| 653 | }, { |
| 654 | 'sources!': [ |
| 655 | 'macasyncsocket.cc', |
| 656 | 'macasyncsocket.h', |
| 657 | 'maccocoasocketserver.h', |
| 658 | 'maccocoasocketserver.mm', |
| 659 | 'macconversion.cc', |
| 660 | 'macconversion.h', |
| 661 | 'macsocketserver.cc', |
| 662 | 'macsocketserver.h', |
| 663 | 'macutils.cc', |
| 664 | 'macutils.h', |
| 665 | 'macwindowpicker.cc', |
| 666 | 'macwindowpicker.h', |
| 667 | ], |
| 668 | }], |
| 669 | ['OS=="win"', { |
| 670 | 'link_settings': { |
| 671 | 'libraries': [ |
| 672 | '-lcrypt32.lib', |
| 673 | '-liphlpapi.lib', |
| 674 | '-lsecur32.lib', |
| 675 | ], |
| 676 | }, |
| 677 | # Suppress warnings about WIN32_LEAN_AND_MEAN. |
| 678 | 'msvs_disabled_warnings': [4005, 4703], |
| 679 | 'defines': [ |
| 680 | '_CRT_NONSTDC_NO_DEPRECATE', |
| 681 | ], |
| 682 | }, { |
| 683 | 'sources/': [ |
| 684 | ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'], |
| 685 | ], |
| 686 | 'sources!': [ |
| 687 | 'schanneladapter.cc', |
| 688 | 'schanneladapter.h', |
| 689 | 'winping.cc', |
| 690 | 'winping.h', |
| 691 | 'winfirewall.cc', |
| 692 | 'winfirewall.h', |
| 693 | ], |
| 694 | }], |
| 695 | ['os_posix==0', { |
| 696 | 'sources!': [ |
| 697 | 'latebindingsymboltable.cc', |
| 698 | 'latebindingsymboltable.h', |
| 699 | 'posix.cc', |
| 700 | 'posix.h', |
| 701 | 'unixfilesystem.cc', |
| 702 | 'unixfilesystem.h', |
| 703 | ], |
| 704 | }, { |
| 705 | 'configurations': { |
| 706 | 'Debug_Base': { |
| 707 | 'defines': [ |
| 708 | # Chromium's build/common.gypi defines this for all posix |
| 709 | # _except_ for ios & mac. We want it there as well, e.g. |
| 710 | # because ASSERT and friends trigger off of it. |
| 711 | '_DEBUG', |
| 712 | ], |
| 713 | }, |
| 714 | } |
| 715 | }], |
| 716 | ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { |
| 717 | 'defines': [ |
| 718 | 'CARBON_DEPRECATED=YES', |
| 719 | ], |
| 720 | }], |
| 721 | ['OS!="ios" and OS!="mac"', { |
| 722 | 'sources!': [ |
| 723 | 'scoped_autorelease_pool.mm', |
| 724 | ], |
| 725 | }], |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 726 | ['OS!="linux" and OS!="android"', { |
| 727 | 'sources!': [ |
| 728 | 'linux.cc', |
| 729 | 'linux.h', |
| 730 | ], |
| 731 | }], |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 | [diff] [blame] | 732 | ], |
| 733 | }, |
| 734 | ], |
| 735 | } |