Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Unified Diff: third_party/libjingle/libjingle.gyp

Issue 1008023002: Clean up libjingle.gyp and remove references to libpeer_target_type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libjingle/libjingle.gyp
diff --git a/third_party/libjingle/libjingle.gyp b/third_party/libjingle/libjingle.gyp
index a35931d711c974542e9fcf81cc8d1cce5c935742..b9f9c6b58ae32d5340926a304de1959734aa5ba9 100644
--- a/third_party/libjingle/libjingle.gyp
+++ b/third_party/libjingle/libjingle.gyp
@@ -11,7 +11,6 @@
'libjingle_additional_deps%': [],
'libjingle_peerconnection_additional_deps%': [],
'libjingle_source%': "source",
- 'libpeer_target_type%': 'static_library',
'webrtc_p2p': "../webrtc/p2p",
'webrtc_xmpp': "../webrtc/libjingle/xmpp",
},
@@ -20,18 +19,19 @@
# :jingle_all_dependent_configs in the GN build.
'target_defaults': {
'defines': [
+ 'ENABLE_EXTERNAL_AUTH',
'EXPAT_RELATIVE_PATH',
'FEATURE_ENABLE_SSL',
'GTEST_RELATIVE_PATH',
'HAVE_SRTP',
'HAVE_WEBRTC_VIDEO',
'HAVE_WEBRTC_VOICE',
+ 'LIBPEERCONNECTION_LIB=1',
'LOGGING_INSIDE_WEBRTC',
'NO_MAIN_THREAD_WRAPPING',
'NO_SOUND_SYSTEM',
'SRTP_RELATIVE_PATH',
'USE_WEBRTC_DEV_BRANCH',
- 'ENABLE_EXTERNAL_AUTH',
'WEBRTC_CHROMIUM_BUILD',
],
'configurations': {
@@ -174,9 +174,6 @@
],
},
'conditions': [
- ['"<(libpeer_target_type)"=="static_library"', {
- 'defines': [ 'LIBPEERCONNECTION_LIB=1' ],
- }],
['use_openssl==1', {
'defines': [
'SSL_USE_OPENSSL',
@@ -331,11 +328,7 @@
'target_name': 'libjingle_webrtc_common',
'type': 'static_library',
'all_dependent_settings': {
- 'conditions': [
- ['"<(libpeer_target_type)"=="static_library"', {
- 'defines': [ 'LIBPEERCONNECTION_LIB=1' ],
- }],
- ],
+ 'defines': [ 'LIBPEERCONNECTION_LIB=1' ],
},
'sources': [
'overrides/talk/media/webrtc/webrtcexport.h',
@@ -559,20 +552,14 @@
'overrides/init_webrtc.h',
],
'dependencies': [
+ '<(DEPTH)/third_party/webrtc/modules/modules.gyp:audio_processing',
'libjingle_webrtc_common',
],
- 'conditions': [
- ['libpeer_target_type=="static_library"', {
- 'dependencies': [
- '<(DEPTH)/third_party/webrtc/modules/modules.gyp:audio_processing',
- ],
- }],
- ],
},
{
# GN version: //third_party/libjingle:libpeerconnection
'target_name': 'libpeerconnection',
- 'type': '<(libpeer_target_type)',
+ 'type': 'static_library',
'sources': [
# Note: sources list duplicated in GN build.
'<(libjingle_source)/talk/media/webrtc/simulcast.cc',
@@ -593,52 +580,9 @@
'libjingle_webrtc_common',
],
'conditions': [
- ['libpeer_target_type!="static_library"', {
- 'sources': [
- 'overrides/initialize_module.cc',
- ],
- 'conditions': [
- ['OS!="mac" and OS!="android"', {
- 'sources': [
- 'overrides/allocator_shim/allocator_proxy.cc',
- ],
- }],
- ],
- }],
- ['"<(libpeer_target_type)"!="static_library"', {
- # Used to control symbol export/import.
- 'defines': [ 'LIBPEERCONNECTION_IMPLEMENTATION=1' ],
- }],
- ['OS=="win" and "<(libpeer_target_type)"!="static_library"', {
- 'link_settings': {
- 'libraries': [
- '-lsecur32.lib',
- '-lcrypt32.lib',
- '-liphlpapi.lib',
- ],
- },
- }],
- ['OS!="win" and "<(libpeer_target_type)"!="static_library"', {
- 'cflags': [
- # For compatibility with how we export symbols from this
- # target on Windows. This also prevents the linker from
- # picking up symbols from this target that should be linked
- # in from other libjingle libs.
- '-fvisibility=hidden',
- ],
- }],
- ['OS=="mac" and libpeer_target_type!="static_library"', {
- 'product_name': 'libpeerconnection',
- }],
- ['OS=="android" and "<(libpeer_target_type)"=="static_library"', {
+ ['OS=="android"', {
'standalone_static_library': 1,
}],
- ['OS=="linux" and libpeer_target_type!="static_library"', {
- # The installer and various tools depend on finding the .so
- # in this directory and not lib.target as will otherwise be
- # the case with make builds.
- 'product_dir': '<(PRODUCT_DIR)/lib',
- }],
],
}, # target libpeerconnection
],
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698