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