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

Unified Diff: third_party/widevine/cdm/widevine_cdm.gyp

Issue 2149233003: Reland of "Fix build of Widevine CDM stub on Mac" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove outdated "above" Created 4 years, 5 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/widevine/cdm/widevine_cdm.gyp
diff --git a/third_party/widevine/cdm/widevine_cdm.gyp b/third_party/widevine/cdm/widevine_cdm.gyp
index 94a541cb22caf28a5d2e99d3f2dc60559a75eb2c..a1c27a71e5266dc8f3aefc583823054b1c4f58c9 100644
--- a/third_party/widevine/cdm/widevine_cdm.gyp
+++ b/third_party/widevine/cdm/widevine_cdm.gyp
@@ -197,13 +197,46 @@
}],
}],
[ 'branding != "Chrome" and enable_widevine == 1', {
- 'product_dir': '<(PRODUCT_DIR)/<(widevine_cdm_path)',
+ # On Mac this copies the widevinecdm binary to <(widevine_cdm_path).
+ # On other platforms the binary is already in <(widevine_cdm_path).
+ # See "widevinecdm_binary".
+ 'dependencies': [
+ 'widevinecdm_binary',
+ ],
+ 'conditions': [
+ ['OS == "mac"', {
+ 'copies': [{
+ 'destination': '<(PRODUCT_DIR)/<(widevine_cdm_path)',
+ 'files': [ '<(PRODUCT_DIR)/libwidevinecdm.dylib' ],
+ }],
+ }],
+ ],
+ }],
+ ],
+ },
+ {
+ # GN version: //third_party/widevine/cdm:widevine_test_license_server
+ 'target_name': 'widevine_test_license_server',
+ 'type': 'none',
+ 'conditions': [
+ [ 'branding == "Chrome" and OS == "linux"', {
+ 'dependencies': [
+ '<(DEPTH)/third_party/widevine/test/license_server/license_server.gyp:test_license_server',
+ ],
+ }],
+ ],
+ },
+ ],
+ 'conditions': [
+ [ 'branding != "Chrome" and enable_widevine == 1', {
+ 'targets': [
+ {
+ 'target_name': 'widevinecdm_binary',
+ 'product_name': 'widevinecdm',
+ 'type': 'none',
'conditions': [
['os_posix == 1 and OS != "mac"', {
'type': 'loadable_module',
- # This causes the binary to be put in
- # <(PRODUCT_DIR)/<(widevine_cdm_path) instead of lib/.
- # This matches what happens in the copy step above.
}],
['OS == "mac" or OS == "win"', {
'type': 'shared_library',
@@ -212,6 +245,12 @@
'xcode_settings': {
'DYLIB_INSTALL_NAME_BASE': '@loader_path',
},
+ }, {
+ # Put Widevine CDM in the correct path directly except
+ # for mac. On mac strip_save_dsym doesn't work with product_dir
+ # so we rely on the "widevinecdm" target to copy it over.
+ # See http://crbug.com/611990
+ 'product_dir': '<(PRODUCT_DIR)/<(widevine_cdm_path)',
}],
],
'defines': ['CDM_IMPLEMENTATION'],
@@ -223,20 +262,8 @@
'<(DEPTH)/media/cdm/stub/stub_cdm.cc',
'<(DEPTH)/media/cdm/stub/stub_cdm.h',
],
- }],
- ],
- },
- {
- # GN version: //third_party/widevine/cdm:widevine_test_license_server
- 'target_name': 'widevine_test_license_server',
- 'type': 'none',
- 'conditions': [
- [ 'branding == "Chrome" and OS == "linux"', {
- 'dependencies': [
- '<(DEPTH)/third_party/widevine/test/license_server/license_server.gyp:test_license_server',
- ],
- }],
+ },
],
- },
+ }],
],
}
« 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