mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
macOS: Fix build of widevinecdmadapter.plugin (issue #2314)
This commit is contained in:
@@ -352,4 +352,9 @@ patches = [
|
||||
# https://bitbucket.org/chromiumembedded/cef/issues/2274
|
||||
'name': 'win_rt_2274',
|
||||
},
|
||||
{
|
||||
# macOS: Fix build of widevinecdmadapter.plugin.
|
||||
# https://bitbucket.org/chromiumembedded/cef/issues/2314
|
||||
'name': 'mac_widevine_2314',
|
||||
},
|
||||
]
|
||||
|
21
patch/patches/mac_widevine_2314.patch
Normal file
21
patch/patches/mac_widevine_2314.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
diff --git third_party/widevine/cdm/BUILD.gn third_party/widevine/cdm/BUILD.gn
|
||||
index a3eac59cc2eb..d14e71e0319b 100644
|
||||
--- third_party/widevine/cdm/BUILD.gn
|
||||
+++ third_party/widevine/cdm/BUILD.gn
|
||||
@@ -111,14 +111,8 @@ if (widevine_cdm_binary_files != []) {
|
||||
]
|
||||
|
||||
if (is_mac) {
|
||||
- ldflags = [
|
||||
- # Not to strip important symbols by -Wl,-dead_strip.
|
||||
- "-Wl,-exported_symbol,_PPP_GetInterface",
|
||||
- "-Wl,-exported_symbol,_PPP_InitializeModule",
|
||||
- "-Wl,-exported_symbol,_PPP_ShutdownModule",
|
||||
- ]
|
||||
- #TODO(jrummell) Mac: 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
|
||||
- } else if (is_posix && !is_mac) {
|
||||
+ ldflags = [ "-Wl,-install_name,@loader_path/libwidevinecdm.dylib" ]
|
||||
+ } else if (is_posix) {
|
||||
cflags = [ "-fvisibility=hidden" ]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user