14fc6f3081
* chore: add GN linter * chore: fix GN lint errors * try some crazy bash to get a gn exe * base64 on linux is different * cloning build_tools doesn't download GN * download_from_google_storage needs depot_tools in the path * fixup! chore: add GN linter
26 lines
830 B
Text
26 lines
830 B
Text
config("build_time_executable") {
|
|
configs = []
|
|
|
|
if (is_electron_build && !is_component_build) {
|
|
# The executables which have this config applied are dependent on ffmpeg,
|
|
# which is always a shared library in an Electron build. However, in the
|
|
# non-component build, executables don't have rpath set to search for
|
|
# libraries in the executable's directory, so ffmpeg cannot be found. So
|
|
# let's make sure rpath is set here.
|
|
# See '//build/config/gcc/BUILD.gn' for details on the rpath setting.
|
|
if (is_linux) {
|
|
configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
|
|
}
|
|
|
|
if (is_mac) {
|
|
ldflags = [ "-Wl,-rpath,@loader_path/." ]
|
|
}
|
|
}
|
|
}
|
|
|
|
# For MAS build, we force defining "MAS_BUILD".
|
|
config("mas_build") {
|
|
if (is_mas_build) {
|
|
defines = [ "MAS_BUILD" ]
|
|
}
|
|
}
|