build: [gn] fix rpath when building with component ffmpeg (#13874)
This commit is contained in:
parent
ae29d562eb
commit
28b6f2f46d
1 changed files with 6 additions and 0 deletions
6
BUILD.gn
6
BUILD.gn
|
@ -6,6 +6,7 @@ import("build/npm.gni")
|
||||||
import("//pdf/features.gni")
|
import("//pdf/features.gni")
|
||||||
import("//build/config/win/manifest.gni")
|
import("//build/config/win/manifest.gni")
|
||||||
import("electron_paks.gni")
|
import("electron_paks.gni")
|
||||||
|
import("//third_party/ffmpeg/ffmpeg_options.gni")
|
||||||
|
|
||||||
if (is_mac) {
|
if (is_mac) {
|
||||||
import("//build/config/mac/rules.gni")
|
import("//build/config/mac/rules.gni")
|
||||||
|
@ -632,5 +633,10 @@ if (is_mac) {
|
||||||
"/DELAYLOAD:API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL",
|
"/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" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue