[headless] Generate headless shell LICENSE file
This CL adds a target to generate LICENSE file for packaging with the chrome_headless_shell executable. Change-Id: Ifaa5e4d5955eba3d201093f3233f77a2e3ca4cfb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5421671 Reviewed-by: Vladimir Nechaev <nechaev@chromium.org> Commit-Queue: Peter Kvitek <kvitekp@chromium.org> Cr-Commit-Position: refs/heads/main@{#1283179}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
b7d594388a
commit
de5b133ec1
@ -844,6 +844,20 @@ static_library("headless_shell_lib") {
|
||||
]
|
||||
}
|
||||
|
||||
action("generate_headless_shell_license_file") {
|
||||
script = "//tools/licenses/licenses.py"
|
||||
_license_path = "$root_out_dir/LICENSE.headless_shell"
|
||||
args = [
|
||||
"license_file",
|
||||
rebase_path(_license_path, root_build_dir),
|
||||
"--gn-target",
|
||||
"//headless:headless_shell",
|
||||
"--gn-out-dir",
|
||||
".",
|
||||
]
|
||||
outputs = [ _license_path ]
|
||||
}
|
||||
|
||||
executable("headless_shell") {
|
||||
configs -= [ "//build/config/compiler:thinlto_optimize_default" ]
|
||||
configs += [ "//build/config/compiler:thinlto_optimize_max" ]
|
||||
@ -853,6 +867,10 @@ executable("headless_shell") {
|
||||
|
||||
deps = [ ":headless_shell_lib" ]
|
||||
|
||||
if (proprietary_codecs) {
|
||||
deps += [ ":generate_headless_shell_license_file" ]
|
||||
}
|
||||
|
||||
if (!headless_use_embedded_resources) {
|
||||
data = [
|
||||
"$root_out_dir/headless_lib_data.pak",
|
||||
|
Reference in New Issue
Block a user