Chromium Code Reviews| Index: webrtc/base/base.gyp |
| diff --git a/webrtc/base/base.gyp b/webrtc/base/base.gyp |
| index 334c1bdfb3936def758f2d69b0ef87a6cfe71aad..47312783823320fe7d79424f965c4674eb2caba0 100644 |
| --- a/webrtc/base/base.gyp |
| +++ b/webrtc/base/base.gyp |
| @@ -9,7 +9,7 @@ |
| { |
| 'includes': [ '../build/common.gypi', ], |
| 'conditions': [ |
| - ['os_posix == 1 and OS != "mac" and OS != "ios"', { |
| + ['os_posix==1 and OS!="mac" and OS!="ios"', { |
| 'conditions': [ |
| ['sysroot!=""', { |
| 'variables': { |
| @@ -100,8 +100,6 @@ |
| 'event_tracer.h', |
| 'exp_filter.cc', |
| 'exp_filter.h', |
| - 'logging.cc', |
| - 'logging.h', |
| 'md5.cc', |
| 'md5.h', |
| 'md5digest.cc', |
| @@ -152,7 +150,8 @@ |
| '../../webrtc_overrides/webrtc/base/logging.cc', |
| '../../webrtc_overrides/webrtc/base/logging.h', |
| ], |
| - 'sources!': [ |
| + }, { |
| + 'sources': [ |
| 'logging.cc', |
| 'logging.h', |
| ], |
| @@ -194,29 +193,20 @@ |
| 'asyncudpsocket.h', |
| 'autodetectproxy.cc', |
| 'autodetectproxy.h', |
| - 'bandwidthsmoother.cc', |
| - 'bandwidthsmoother.h', |
| 'base64.cc', |
| 'base64.h', |
| - 'bind.h', |
| - 'callback.h', |
| 'common.cc', |
| 'common.h', |
| 'crc32.cc', |
| 'crc32.h', |
| 'cryptstring.cc', |
| 'cryptstring.h', |
| - 'dbus.cc', |
| - 'dbus.h', |
| 'diskcache.cc', |
| 'diskcache.h', |
| - 'diskcache_win32.cc', |
| - 'diskcache_win32.h', |
| 'filerotatingstream.cc', |
| 'filerotatingstream.h', |
| 'fileutils.cc', |
| 'fileutils.h', |
| - 'fileutils_mock.h', |
| 'firewallsocketserver.cc', |
| 'firewallsocketserver.h', |
| 'flags.cc', |
| @@ -234,58 +224,16 @@ |
| 'httpcommon.h', |
| 'httprequest.cc', |
| 'httprequest.h', |
| - 'httpserver.cc', |
| - 'httpserver.h', |
| - 'ifaddrs-android.cc', |
| - 'ifaddrs-android.h', |
| - 'ifaddrs_converter.cc', |
| - 'ifaddrs_converter.h', |
| - 'macifaddrs_converter.cc', |
| 'iosfilesystem.mm', |
| 'ipaddress.cc', |
| 'ipaddress.h', |
| - 'json.cc', |
| - 'json.h', |
| - 'latebindingsymboltable.cc', |
| - 'latebindingsymboltable.h', |
| - 'libdbusglibsymboltable.cc', |
| - 'libdbusglibsymboltable.h', |
| - 'linux.cc', |
| - 'linux.h', |
| - 'linuxfdwalk.c', |
| - 'linuxfdwalk.h', |
| 'linked_ptr.h', |
| - 'logsinks.cc', |
| - 'logsinks.h', |
| - 'macasyncsocket.cc', |
| - 'macasyncsocket.h', |
| - 'maccocoasocketserver.h', |
| - 'maccocoasocketserver.mm', |
| - 'maccocoathreadhelper.h', |
| - 'maccocoathreadhelper.mm', |
| - 'macconversion.cc', |
| - 'macconversion.h', |
| - 'macsocketserver.cc', |
| - 'macsocketserver.h', |
| - 'macutils.cc', |
| - 'macutils.h', |
| - 'macwindowpicker.cc', |
| - 'macwindowpicker.h', |
| - 'mathutils.h', |
| 'messagedigest.cc', |
| 'messagedigest.h', |
| 'messagehandler.cc', |
| 'messagehandler.h', |
| 'messagequeue.cc', |
| 'messagequeue.h', |
| - 'multipart.cc', |
| - 'multipart.h', |
| - 'natserver.cc', |
| - 'natserver.h', |
| - 'natsocketfactory.cc', |
| - 'natsocketfactory.h', |
| - 'nattypes.cc', |
| - 'nattypes.h', |
| 'nethelpers.cc', |
| 'nethelpers.h', |
| 'network.cc', |
| @@ -293,41 +241,18 @@ |
| 'networkmonitor.cc', |
| 'networkmonitor.h', |
| 'nullsocketserver.h', |
| - 'openssl.h', |
| - 'openssladapter.cc', |
| - 'openssladapter.h', |
| - 'openssldigest.cc', |
| - 'openssldigest.h', |
| - 'opensslidentity.cc', |
| - 'opensslidentity.h', |
| - 'opensslstreamadapter.cc', |
| - 'opensslstreamadapter.h', |
| - 'optionsfile.cc', |
| - 'optionsfile.h', |
| 'pathutils.cc', |
| 'pathutils.h', |
| 'physicalsocketserver.cc', |
| 'physicalsocketserver.h', |
| - 'posix.cc', |
| - 'posix.h', |
| - 'profiler.cc', |
| - 'profiler.h', |
| 'proxydetect.cc', |
| 'proxydetect.h', |
| 'proxyinfo.cc', |
| 'proxyinfo.h', |
| - 'proxyserver.cc', |
| - 'proxyserver.h', |
| 'ratelimiter.cc', |
| 'ratelimiter.h', |
| - 'referencecountedsingletonfactory.h', |
| - 'rollingaccumulator.h', |
| 'rtccertificate.cc', |
| 'rtccertificate.h', |
| - 'scoped_autorelease_pool.h', |
| - 'scoped_autorelease_pool.mm', |
| - 'scopedptrcollection.h', |
| - 'sec_buffer.h', |
| 'sha1.cc', |
| 'sha1.h', |
| 'sha1digest.cc', |
| @@ -354,12 +279,10 @@ |
| 'socketstream.h', |
| 'ssladapter.cc', |
| 'ssladapter.h', |
| - 'sslconfig.h', |
| 'sslfingerprint.cc', |
| 'sslfingerprint.h', |
| 'sslidentity.cc', |
| 'sslidentity.h', |
| - 'sslroots.h', |
| 'sslsocketfactory.cc', |
| 'sslsocketfactory.h', |
| 'sslstreamadapter.cc', |
| @@ -372,48 +295,14 @@ |
| 'taskparent.h', |
| 'taskrunner.cc', |
| 'taskrunner.h', |
| - 'testclient.cc', |
| - 'testclient.h', |
| 'thread.cc', |
| 'thread.h', |
| 'timing.cc', |
| 'timing.h', |
| - 'transformadapter.cc', |
| - 'transformadapter.h', |
| - 'unixfilesystem.cc', |
| - 'unixfilesystem.h', |
| 'urlencode.cc', |
| 'urlencode.h', |
| - 'versionparsing.cc', |
| - 'versionparsing.h', |
| - 'virtualsocketserver.cc', |
| - 'virtualsocketserver.h', |
| - 'win32.cc', |
| - 'win32.h', |
| - 'win32filesystem.cc', |
| - 'win32filesystem.h', |
| - 'win32regkey.cc', |
| - 'win32regkey.h', |
| - 'win32securityerrors.cc', |
| - 'win32socketinit.cc', |
| - 'win32socketinit.h', |
| - 'win32socketserver.cc', |
| - 'win32socketserver.h', |
| - 'win32window.cc', |
| - 'win32window.h', |
| - 'win32windowpicker.cc', |
| - 'win32windowpicker.h', |
| - 'window.h', |
| - 'windowpicker.h', |
| - 'windowpickerfactory.h', |
| - 'winfirewall.cc', |
| - 'winfirewall.h', |
| - 'winping.cc', |
| - 'winping.h', |
| 'worker.cc', |
| 'worker.h', |
| - 'x11windowpicker.cc', |
| - 'x11windowpicker.h', |
| ], |
| # TODO(henrike): issue 3307, make rtc_base build without disabling |
| # these flags. |
| @@ -447,41 +336,29 @@ |
| 'sources': [ |
| '../../webrtc_overrides/webrtc/base/win32socketinit.cc', |
| ], |
| - 'sources!': [ |
| + 'defines': [ |
| + 'NO_MAIN_THREAD_WRAPPING', |
| + ], |
| + 'direct_dependent_settings': { |
| + 'defines': [ |
| + 'NO_MAIN_THREAD_WRAPPING', |
| + ], |
| + }, |
| + }, { |
| + 'sources': [ |
| 'bandwidthsmoother.cc', |
| 'bandwidthsmoother.h', |
| 'bind.h', |
| + 'bind.h.pump', |
| 'callback.h', |
| - 'dbus.cc', |
| - 'dbus.h', |
| - 'diskcache_win32.cc', |
| - 'diskcache_win32.h', |
| + 'callback.h.pump', |
| 'fileutils_mock.h', |
| - 'genericslot.h', |
| 'httpserver.cc', |
| 'httpserver.h', |
| 'json.cc', |
| 'json.h', |
| - 'latebindingsymboltable.cc', |
| - 'latebindingsymboltable.h', |
| - 'libdbusglibsymboltable.cc', |
| - 'libdbusglibsymboltable.h', |
| - 'linuxfdwalk.c', |
| - 'linuxfdwalk.h', |
| - 'x11windowpicker.cc', |
| - 'x11windowpicker.h', |
| - 'logging.cc', |
| - 'logging.h', |
| 'logsinks.cc', |
| 'logsinks.h', |
| - 'macasyncsocket.cc', |
| - 'macasyncsocket.h', |
| - 'maccocoasocketserver.h', |
| - 'maccocoasocketserver.mm', |
| - 'macsocketserver.cc', |
| - 'macsocketserver.h', |
| - 'macwindowpicker.cc', |
| - 'macwindowpicker.h', |
| 'mathutils.h', |
| 'multipart.cc', |
| 'multipart.h', |
| @@ -493,16 +370,12 @@ |
| 'nattypes.h', |
| 'optionsfile.cc', |
| 'optionsfile.h', |
| - 'posix.cc', |
| - 'posix.h', |
| 'profiler.cc', |
| 'profiler.h', |
| 'proxyserver.cc', |
| 'proxyserver.h', |
| 'referencecountedsingletonfactory.h', |
| 'rollingaccumulator.h', |
| - 'safe_conversions.h', |
| - 'safe_conversions_impl.h', |
| 'scopedptrcollection.h', |
| 'sec_buffer.h', |
| 'sslconfig.h', |
| @@ -516,25 +389,10 @@ |
| 'versionparsing.h', |
| 'virtualsocketserver.cc', |
| 'virtualsocketserver.h', |
| - 'win32regkey.cc', |
| - 'win32regkey.h', |
| - 'win32socketinit.cc', |
| - 'win32socketinit.h', |
| - 'win32socketserver.cc', |
| - 'win32socketserver.h', |
| 'window.h', |
| - 'windowpickerfactory.h', |
| 'windowpicker.h', |
| + 'windowpickerfactory.h', |
| ], |
| - 'defines': [ |
| - 'NO_MAIN_THREAD_WRAPPING', |
| - ], |
| - 'direct_dependent_settings': { |
| - 'defines': [ |
| - 'NO_MAIN_THREAD_WRAPPING', |
| - ], |
| - }, |
| - }, { |
| 'conditions': [ |
| ['build_json==1', { |
| 'dependencies': [ |
| @@ -551,6 +409,50 @@ |
| 'WEBRTC_EXTERNAL_JSON', |
| ], |
| }], |
| + ['OS=="linux"', { |
| + 'sources': [ |
| + 'dbus.cc', |
| + 'dbus.h', |
| + 'libdbusglibsymboltable.cc', |
| + 'libdbusglibsymboltable.h', |
| + 'linuxfdwalk.c', |
| + 'linuxfdwalk.h', |
| + ], |
| + }], |
| + ['os_posix==1', { |
| + 'sources': [ |
| + 'latebindingsymboltable.cc', |
| + 'latebindingsymboltable.cc.def', |
| + 'latebindingsymboltable.h', |
| + 'latebindingsymboltable.h.def', |
| + 'posix.cc', |
| + 'posix.h', |
| + ], |
| + }], |
| + ['OS=="mac"', { |
| + 'sources': [ |
| + 'macasyncsocket.cc', |
| + 'macasyncsocket.h', |
| + 'maccocoasocketserver.h', |
| + 'maccocoasocketserver.mm', |
| + 'macsocketserver.cc', |
| + 'macsocketserver.h', |
| + 'macwindowpicker.cc', |
| + 'macwindowpicker.h', |
| + ], |
| + }], |
| + ['OS=="win"', { |
| + 'sources': [ |
| + 'diskcache_win32.cc', |
| + 'diskcache_win32.h', |
| + 'win32regkey.cc', |
| + 'win32regkey.h', |
| + 'win32socketinit.cc', |
| + 'win32socketinit.h', |
| + 'win32socketserver.cc', |
| + 'win32socketserver.h', |
| + ], |
| + }], |
| ['OS=="win" and clang==1', { |
| 'msvs_settings': { |
| 'VCCLCompilerTool': { |
| @@ -563,25 +465,56 @@ |
| }, |
| }, |
| }], |
| + ], # conditions |
| + }], # build_with_chromium==0 |
| + ['use_openssl==1', { |
|
kjellander_webrtc
2016/04/05 07:21:38
TBH I don't recall the motivation behind this, but
|
| + 'sources': [ |
| + 'openssl.h', |
| + 'openssladapter.cc', |
| + 'openssladapter.h', |
| + 'openssldigest.cc', |
| + 'openssldigest.h', |
| + 'opensslidentity.cc', |
| + 'opensslidentity.h', |
| + 'opensslstreamadapter.cc', |
| + 'opensslstreamadapter.h', |
| + ], |
| + 'conditions': [ |
| + ['build_ssl==1', { |
| + 'dependencies': [ |
| + '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl', |
|
perkj_webrtc
2016/04/05 07:08:12
? Isn't boringssl and use_openssl separat things?
kjellander_webrtc
2016/04/05 07:21:38
Yes, boringssl is a forked subset of openssl.
But
|
| + ], |
| + }, { |
| + 'include_dirs': [ |
| + '<(ssl_root)', |
| + ], |
| + }], |
| ], |
| }], |
| - ['OS == "android"', { |
| + ['OS=="android"', { |
| + 'sources': [ |
| + 'ifaddrs-android.cc', |
| + 'ifaddrs-android.h', |
| + ], |
| 'link_settings': { |
| 'libraries': [ |
| '-llog', |
| '-lGLESv2', |
| ], |
| }, |
| - }, { |
| - 'sources!': [ |
| - 'ifaddrs-android.cc', |
| - 'ifaddrs-android.h', |
| + }], |
| + ['OS=="mac" or OS=="ios"', { |
| + 'sources': [ |
| + 'maccocoathreadhelper.h', |
| + 'maccocoathreadhelper.mm', |
| + 'macconversion.cc', |
| + 'macconversion.h', |
| + 'macifaddrs_converter.cc', |
| + 'scoped_autorelease_pool.h', |
| + 'scoped_autorelease_pool.mm', |
| ], |
| }], |
| ['OS=="ios"', { |
| - 'sources/': [ |
| - ['include', 'macconversion.*'], |
| - ], |
| 'all_dependent_settings': { |
| 'xcode_settings': { |
| 'OTHER_LDFLAGS': [ |
| @@ -594,7 +527,11 @@ |
| }, |
| }, |
| }], |
| - ['use_x11 == 1', { |
| + ['use_x11==1', { |
| + 'sources': [ |
| + 'x11windowpicker.cc', |
| + 'x11windowpicker.h', |
| + ], |
| 'link_settings': { |
| 'libraries': [ |
| '-ldl', |
| @@ -605,11 +542,6 @@ |
| '-lXrender', |
| ], |
| }, |
| - }, { |
| - 'sources!': [ |
| - 'x11windowpicker.cc', |
| - 'x11windowpicker.h', |
| - ], |
| }], |
| ['OS=="linux"', { |
| 'link_settings': { |
| @@ -618,16 +550,12 @@ |
| '-lrt', |
| ], |
| }, |
| - }, { |
| - 'sources!': [ |
| - 'dbus.cc', |
| - 'dbus.h', |
| - 'libdbusglibsymboltable.cc', |
| - 'libdbusglibsymboltable.h', |
| - 'linuxfdwalk.c', |
| - ], |
| }], |
| ['OS=="mac"', { |
| + 'sources': [ |
| + 'macutils.cc', |
| + 'macutils.h', |
| + ], |
| 'all_dependent_settings': { |
| 'link_settings': { |
| 'xcode_settings': { |
| @@ -654,25 +582,22 @@ |
| }, |
| }], |
| ], |
| - }, { |
| - 'sources!': [ |
| - 'macasyncsocket.cc', |
| - 'macasyncsocket.h', |
| - 'maccocoasocketserver.h', |
| - 'maccocoasocketserver.mm', |
| - 'macconversion.cc', |
| - 'macconversion.h', |
| - 'macsocketserver.cc', |
| - 'macsocketserver.h', |
| - 'macutils.cc', |
| - 'macutils.h', |
| - 'macwindowpicker.cc', |
| - 'macwindowpicker.h', |
| - ], |
| }], |
| ['OS=="win"', { |
| - 'sources!': [ |
| - 'ifaddrs_converter.cc', |
| + 'sources': [ |
| + 'win32.cc', |
| + 'win32.h', |
| + 'win32filesystem.cc', |
| + 'win32filesystem.h', |
| + 'win32securityerrors.cc', |
| + 'win32window.cc', |
| + 'win32window.h', |
| + 'win32windowpicker.cc', |
| + 'win32windowpicker.h', |
| + 'winfirewall.cc', |
| + 'winfirewall.h', |
| + 'winping.cc', |
| + 'winping.h', |
| ], |
| 'link_settings': { |
| 'libraries': [ |
| @@ -686,27 +611,14 @@ |
| 'defines': [ |
| '_CRT_NONSTDC_NO_DEPRECATE', |
| ], |
| - }, { |
| - 'sources/': [ |
| - ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'], |
| - ], |
| - 'sources!': [ |
| - 'winping.cc', |
| - 'winping.h', |
| - 'winfirewall.cc', |
| - 'winfirewall.h', |
| - ], |
| }], |
| - ['os_posix==0', { |
| - 'sources!': [ |
| - 'latebindingsymboltable.cc', |
| - 'latebindingsymboltable.h', |
| - 'posix.cc', |
| - 'posix.h', |
| + ['os_posix==1', { |
| + 'sources': [ |
| + 'ifaddrs_converter.cc', |
| + 'ifaddrs_converter.h', |
| 'unixfilesystem.cc', |
| 'unixfilesystem.h', |
| ], |
| - }, { |
| 'configurations': { |
| 'Debug_Base': { |
| 'defines': [ |
| @@ -723,27 +635,12 @@ |
| 'CARBON_DEPRECATED=YES', |
| ], |
| }], |
| - ['OS!="ios" and OS!="mac"', { |
| - 'sources!': [ |
| - 'macifaddrs_converter.cc', |
| - 'scoped_autorelease_pool.mm', |
| - ], |
| - }], |
| - ['OS!="linux" and OS!="android"', { |
| - 'sources!': [ |
| + ['OS=="linux" or OS=="android"', { |
| + 'sources': [ |
| 'linux.cc', |
| 'linux.h', |
| ], |
| }], |
| - ['build_ssl==1', { |
| - 'dependencies': [ |
| - '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl', |
| - ], |
| - }, { |
| - 'include_dirs': [ |
| - '<(ssl_root)', |
| - ], |
| - }], |
| ], |
| }, |
| { |