build: [gn] fix rpath when building with component ffmpeg (#13874)

This commit is contained in:
Jeremy Apthorp 2018-07-30 15:46:04 -07:00 committed by GitHub
parent ae29d562eb
commit 28b6f2f46d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" ]
}
}
} }
} }