mirror of
https://github.com/electron/electron.git
synced 2026-01-11 00:18:02 -05:00
build: [gn] fix rpath when building with component ffmpeg (#13874)
This commit is contained in:
6
BUILD.gn
6
BUILD.gn
@@ -6,6 +6,7 @@ import("build/npm.gni")
|
||||
import("//pdf/features.gni")
|
||||
import("//build/config/win/manifest.gni")
|
||||
import("electron_paks.gni")
|
||||
import("//third_party/ffmpeg/ffmpeg_options.gni")
|
||||
|
||||
if (is_mac) {
|
||||
import("//build/config/mac/rules.gni")
|
||||
@@ -632,5 +633,10 @@ if (is_mac) {
|
||||
"/DELAYLOAD:API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL",
|
||||
]
|
||||
}
|
||||
if (is_linux) {
|
||||
if (!is_component_build && is_component_ffmpeg) {
|
||||
configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user