summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-23 08:35:55 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-23 08:35:55 +0000
commit49dee4b305bf7c0211985ba1e75863c34443629b (patch)
treecbd5aa300efa2359d5fcb30bdfb4707e6efa6918 /third_party
parentfb9d5f910d89ef8f09da7077509e00c1a6764c1f (diff)
downloadchromium_src-49dee4b305bf7c0211985ba1e75863c34443629b.zip
chromium_src-49dee4b305bf7c0211985ba1e75863c34443629b.tar.gz
chromium_src-49dee4b305bf7c0211985ba1e75863c34443629b.tar.bz2
Revert 189990 - re-re-land of "Refactor libjingle and libpeerconn..."
The previous attempt failed because libjingle hadn't been rolled yet. Still waiting on trybots a day later. > > > > Refactor libjingle and libpeerconnection targets. > > > > I'm moving most of the source files back to the libjingle target since the current splitting doesn't work for all targets that currently rely on libjingle. The webrtc core libs are still only in the libpeerconnection target, and require the enable_webrtc gyp variable to be be set. > > > > > > > > I'm also adding a gyp variable to the libjingle target to support dependency injection as is supported for libpeerconnection. > > > > > > > > TBR=darin > > > > > > > > Review URL: https://codereview.chromium.org/12457027 > > > > > > TBR=tommi@chromium.org > > > Review URL: https://codereview.chromium.org/12662028 TBR=tommi@chromium.org Review URL: https://codereview.chromium.org/12891005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189995 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/libjingle/libjingle.gyp164
1 files changed, 90 insertions, 74 deletions
diff --git a/third_party/libjingle/libjingle.gyp b/third_party/libjingle/libjingle.gyp
index e6a900a..dc559b5 100644
--- a/third_party/libjingle/libjingle.gyp
+++ b/third_party/libjingle/libjingle.gyp
@@ -490,8 +490,9 @@
],
'dependencies': [
'<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
- 'libjingle_p2p_constants',
'<@(libjingle_additional_deps)',
+ 'libjingle_media_base_constants',
+ 'libjingle_p2p_base_constants',
],
'export_dependent_settings': [
'<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
@@ -566,58 +567,12 @@
'<(libjingle_source)/talk/base/opensslstreamadapter.cc',
],
}],
- ],
- }, # target libjingle
- # This has to be is a separate project due to a bug in MSVS 2008 and the
- # current toolset on android. The problem is that we have two files named
- # "constants.cc" and MSVS/android doesn't handle this properly.
- # GYP currently has guards to catch this, so if you want to remove it,
- # run GYP and if GYP has removed the validation check, then we can assume
- # that the toolchains have been fixed (we currently use VS2010 and later,
- # so VS2008 isn't a concern anymore).
- {
- 'target_name': 'libjingle_p2p_constants',
- 'type': 'static_library',
- 'sources': [
- '<(libjingle_source)/talk/p2p/base/constants.cc',
- '<(libjingle_source)/talk/p2p/base/constants.h',
- ],
- }, # target libjingle_p2p_constants
- {
- 'target_name': 'peerconnection_server',
- 'type': 'executable',
- 'sources': [
- '<(libjingle_source)/talk/examples/peerconnection/server/data_socket.cc',
- '<(libjingle_source)/talk/examples/peerconnection/server/data_socket.h',
- '<(libjingle_source)/talk/examples/peerconnection/server/main.cc',
- '<(libjingle_source)/talk/examples/peerconnection/server/peer_channel.cc',
- '<(libjingle_source)/talk/examples/peerconnection/server/peer_channel.h',
- '<(libjingle_source)/talk/examples/peerconnection/server/utils.cc',
- '<(libjingle_source)/talk/examples/peerconnection/server/utils.h',
- ],
- 'include_dirs': [
- '<(libjingle_source)',
- ],
- 'dependencies': [
- 'libjingle',
- ],
- # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
- 'msvs_disabled_warnings': [ 4309, ],
- }, # target peerconnection_server
- ],
- 'conditions': [
- ['enable_webrtc==1', {
- 'targets': [
- {
- 'target_name': 'libpeerconnection',
- 'type': '<(libpeer_target_type)',
- 'all_dependent_settings': {
- 'conditions': [
- ['"<(libpeer_target_type)"=="static_library"', {
- 'defines': [ 'LIBPEERCONNECTION_LIB=1' ],
- }],
- ],
- },
+ ['enable_webrtc==1', {
+ 'dependencies': [
+ '<(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp',
+ '<(DEPTH)/third_party/webrtc/modules/modules.gyp:media_file',
+ '<(DEPTH)/third_party/webrtc/modules/modules.gyp:video_capture_module',
+ ],
'sources': [
'<(libjingle_source)/talk/app/webrtc/audiotrack.cc',
'<(libjingle_source)/talk/app/webrtc/audiotrack.h',
@@ -673,8 +628,6 @@
'<(libjingle_source)/talk/media/base/capturerenderadapter.h',
'<(libjingle_source)/talk/media/base/codec.cc',
'<(libjingle_source)/talk/media/base/codec.h',
- '<(libjingle_source)/talk/media/base/constants.cc',
- '<(libjingle_source)/talk/media/base/constants.h',
'<(libjingle_source)/talk/media/base/cryptoparams.h',
'<(libjingle_source)/talk/media/base/filemediaengine.cc',
'<(libjingle_source)/talk/media/base/filemediaengine.h',
@@ -703,14 +656,10 @@
'<(libjingle_source)/talk/media/webrtc/webrtcpassthroughrender.cc',
'<(libjingle_source)/talk/media/webrtc/webrtcvideocapturer.cc',
'<(libjingle_source)/talk/media/webrtc/webrtcvideocapturer.h',
- '<(libjingle_source)/talk/media/webrtc/webrtcvideoengine.cc',
- '<(libjingle_source)/talk/media/webrtc/webrtcvideoengine.h',
'<(libjingle_source)/talk/media/webrtc/webrtcvideoframe.cc',
'<(libjingle_source)/talk/media/webrtc/webrtcvideoframe.h',
'<(libjingle_source)/talk/media/webrtc/webrtcvie.h',
'<(libjingle_source)/talk/media/webrtc/webrtcvoe.h',
- '<(libjingle_source)/talk/media/webrtc/webrtcvoiceengine.cc',
- '<(libjingle_source)/talk/media/webrtc/webrtcvoiceengine.h',
'<(libjingle_source)/talk/session/media/audiomonitor.cc',
'<(libjingle_source)/talk/session/media/audiomonitor.h',
'<(libjingle_source)/talk/session/media/call.cc',
@@ -747,19 +696,6 @@
'<(libjingle_source)/talk/session/tunnel/tunnelsessionclient.h',
],
'conditions': [
- ['"<(libpeer_target_type)"=="shared_library"', {
- # Used to control symbol export/import.
- 'defines': [ 'LIBPEERCONNECTION_IMPLEMENTATION=1' ],
- }],
- ['OS=="win" and "<(libpeer_target_type)"=="shared_library"', {
- 'link_settings': {
- 'libraries': [
- '-lsecur32.lib',
- '-lcrypt32.lib',
- '-liphlpapi.lib',
- ],
- },
- }],
['enabled_libjingle_device_manager==1', {
'sources!': [
'<(libjingle_source)/talk/media/devices/dummydevicemanager.cc',
@@ -834,9 +770,89 @@
],
}],
],
+ }],
+ ],
+ }, # target libjingle
+ # This has to be is a separate project due to a bug in MSVS 2008 and the
+ # current toolset on android. The problem is that we have two files named
+ # "constants.cc" and MSVS/android doesn't handle this properly.
+ # GYP currently has guards to catch this, so if you want to remove it,
+ # run GYP and if GYP has removed the validation check, then we can assume
+ # that the toolchains have been fixed (we currently use VS2010 and later,
+ # so VS2008 isn't a concern anymore).
+ {
+ 'target_name': 'libjingle_p2p_base_constants',
+ 'type': 'static_library',
+ 'sources': [
+ '<(libjingle_source)/talk/p2p/base/constants.cc',
+ '<(libjingle_source)/talk/p2p/base/constants.h',
+ ],
+ }, # target libjingle_p2p_base_constants
+ {
+ 'target_name': 'libjingle_media_base_constants',
+ 'type': 'static_library',
+ 'sources': [
+ '<(libjingle_source)/talk/media/base/constants.cc',
+ '<(libjingle_source)/talk/media/base/constants.h',
+ ],
+ }, # target libjingle_media_base_constants
+ {
+ 'target_name': 'peerconnection_server',
+ 'type': 'executable',
+ 'sources': [
+ '<(libjingle_source)/talk/examples/peerconnection/server/data_socket.cc',
+ '<(libjingle_source)/talk/examples/peerconnection/server/data_socket.h',
+ '<(libjingle_source)/talk/examples/peerconnection/server/main.cc',
+ '<(libjingle_source)/talk/examples/peerconnection/server/peer_channel.cc',
+ '<(libjingle_source)/talk/examples/peerconnection/server/peer_channel.h',
+ '<(libjingle_source)/talk/examples/peerconnection/server/utils.cc',
+ '<(libjingle_source)/talk/examples/peerconnection/server/utils.h',
+ ],
+ 'include_dirs': [
+ '<(libjingle_source)',
+ ],
+ 'dependencies': [
+ 'libjingle',
+ ],
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
+ 'msvs_disabled_warnings': [ 4309, ],
+ }, # target peerconnection_server
+ ],
+ 'conditions': [
+ ['enable_webrtc==1', {
+ 'targets': [
+ {
+ 'target_name': 'libpeerconnection',
+ 'type': '<(libpeer_target_type)',
+ 'all_dependent_settings': {
+ 'conditions': [
+ ['"<(libpeer_target_type)"=="static_library"', {
+ 'defines': [ 'LIBPEERCONNECTION_LIB=1' ],
+ }],
+ ],
+ },
+ 'sources': [
+ '<(libjingle_source)/talk/media/webrtc/webrtcvideoengine.cc',
+ '<(libjingle_source)/talk/media/webrtc/webrtcvideoengine.h',
+ '<(libjingle_source)/talk/media/webrtc/webrtcvoiceengine.cc',
+ '<(libjingle_source)/talk/media/webrtc/webrtcvoiceengine.h',
+ ],
+ 'conditions': [
+ ['"<(libpeer_target_type)"=="shared_library"', {
+ # Used to control symbol export/import.
+ 'defines': [ 'LIBPEERCONNECTION_IMPLEMENTATION=1' ],
+ }],
+ ['OS=="win" and "<(libpeer_target_type)"=="shared_library"', {
+ 'link_settings': {
+ 'libraries': [
+ '-lsecur32.lib',
+ '-lcrypt32.lib',
+ '-liphlpapi.lib',
+ ],
+ },
+ }],
+ ],
'dependencies': [
- '<(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp',
- '<(DEPTH)/third_party/webrtc/modules/modules.gyp:video_capture_module',
'<(DEPTH)/third_party/webrtc/modules/modules.gyp:video_render_module',
'<(DEPTH)/third_party/webrtc/system_wrappers/source/system_wrappers.gyp:system_wrappers',
'<(DEPTH)/third_party/webrtc/video_engine/video_engine.gyp:video_engine_core',