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

Unified Diff: third_party/libjingle/libjingle.gyp

Issue 1025003002: Revert of 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 b9f9c6b58ae32d5340926a304de1959734aa5ba9..a35931d711c974542e9fcf81cc8d1cce5c935742 100644
--- a/third_party/libjingle/libjingle.gyp
+++ b/third_party/libjingle/libjingle.gyp
@@ -11,6 +11,7 @@
'libjingle_additional_deps%': [],
'libjingle_peerconnection_additional_deps%': [],
'libjingle_source%': "source",
+ 'libpeer_target_type%': 'static_library',
'webrtc_p2p': "../webrtc/p2p",
'webrtc_xmpp': "../webrtc/libjingle/xmpp",
},
@@ -19,19 +20,18 @@
# :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,6 +174,9 @@
],
},
'conditions': [
+ ['"<(libpeer_target_type)"=="static_library"', {
+ 'defines': [ 'LIBPEERCONNECTION_LIB=1' ],
+ }],
['use_openssl==1', {
'defines': [
'SSL_USE_OPENSSL',
@@ -328,7 +331,11 @@
'target_name': 'libjingle_webrtc_common',
'type': 'static_library',
'all_dependent_settings': {
- 'defines': [ 'LIBPEERCONNECTION_LIB=1' ],
+ 'conditions': [
+ ['"<(libpeer_target_type)"=="static_library"', {
+ 'defines': [ 'LIBPEERCONNECTION_LIB=1' ],
+ }],
+ ],
},
'sources': [
'overrides/talk/media/webrtc/webrtcexport.h',
@@ -552,14 +559,20 @@
'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': 'static_library',
+ 'type': '<(libpeer_target_type)',
'sources': [
# Note: sources list duplicated in GN build.
'<(libjingle_source)/talk/media/webrtc/simulcast.cc',
@@ -580,8 +593,51 @@
'libjingle_webrtc_common',
],
'conditions': [
- ['OS=="android"', {
+ ['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"', {
'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