Commit 108ce9d5 authored by Stephen Roe's avatar Stephen Roe Committed by Commit Bot

Generate individual license files for each Fuchsia CIPD.

Bug: 1105654
Change-Id: Ief7bbafd18ce534400d674024b4239b17fe19dec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2532768
Commit-Queue: Stephen Roe <steveroe@google.com>
Reviewed-by: default avatarDavid Dorwin <ddorwin@chromium.org>
Reviewed-by: default avatarBruce Dawson <brucedawson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#829842}
parent 88e3cd85
......@@ -16,22 +16,6 @@ if (host_os == "mac") {
_gn_path = "//buildtools/linux64/gn"
}
# Produces a consolidated license file.
action("license") {
_license_path = "${target_gen_dir}/LICENSE"
script = "//tools/licenses.py"
inputs = [ "$_gn_path" ]
outputs = [ _license_path ]
args = [
"license_file",
rebase_path(_license_path, root_build_dir),
"--gn-target",
"//fuchsia/runners:web_runner_pkg",
"--gn-out-dir",
".",
]
}
# Extracts the numeric Chrome build ID and writes it to a file in the output
# directory.
#
......@@ -61,23 +45,41 @@ template("cipd_archive") {
[
"deps",
"sources",
"testonly",
])
# Produces a consolidated license file.
action("${target_name}_license") {
_license_path = "${target_gen_dir}/${target_name}/LICENSE"
_invoker_dir = get_label_info(":${invoker.target_name}", "dir")
_license_target = "${_invoker_dir}:${invoker.target_name}"
script = "//tools/licenses.py"
inputs = [ "$_gn_path" ]
outputs = [ _license_path ]
args = [
"license_file",
rebase_path(_license_path, root_build_dir),
"--gn-target",
_license_target,
"--gn-out-dir",
".",
]
}
if (!defined(deps)) {
deps = []
}
deps += [
":${target_name}_license",
":build_id",
":license",
]
if (!defined(sources)) {
sources = []
}
sources += get_target_outputs(":license")
sources += get_target_outputs(":${target_name}_license")
cipd_package_definition(target_name) {
testonly = true
forward_variables_from(invoker,
[
"description",
......@@ -130,6 +132,7 @@ cipd_archive("web_engine_shell") {
package_definition_yaml = "web_engine_shell.yaml"
package = "chromium/fuchsia/web_engine_shell-\${targetarch}"
description = "Simple command-line embedder for WebEngine."
testonly = true
deps = [ "//fuchsia/engine:web_engine_shell_pkg" ]
......@@ -166,6 +169,7 @@ cipd_archive("chromedriver") {
package_definition_yaml = "chromedriver.yaml"
package = "chromium/fuchsia/chromedriver/\${os}-\${arch}"
description = "Prebuilt Chromedriver binary for Fuchsia host."
testonly = true
install_mode = "copy"
deps = [ ":strip_chromedriver_binary" ]
......@@ -177,6 +181,7 @@ cipd_archive("tests") {
package_definition_yaml = "tests.yaml"
package = "chromium/fuchsia/tests-\${targetarch}"
description = "Prebuilt Chromium tests for Fuchsia."
testonly = true
deps = [
"//base:base_unittests_pkg",
......@@ -247,6 +252,7 @@ cipd_archive("clear_key_cdm") {
package_definition_yaml = "clear_key_cdm.yaml"
package = "chromium/fuchsia/libclearkeycdm-\${targetarch}"
description = "Prebuilt libclearkeycdm.so binary for Fuchsia."
testonly = true
deps = [ "//media/cdm/library_cdm/clear_key_cdm:clear_key_cdm" ]
......
......@@ -176,12 +176,47 @@ SPECIAL_CASES = {
# Absolute path here is resolved as relative to the source root.
"License File": "/LICENSE.chromium_os",
},
os.path.join('third_party', 'devtools-frontend'): {
# TODO(crbug.com/1151057): Remove this special case when issue is fixed.
"Name": "Devtools-Frontend",
"URL": "https://chromium.googlesource.com/devtools/devtools-frontend",
"License": "BSD",
"License File": "src/LICENSE",
},
os.path.join('third_party', 'lss'): {
"Name": "linux-syscall-support",
"URL": "http://code.google.com/p/linux-syscall-support/",
"License": "BSD",
"License File": "/LICENSE",
},
os.path.join('third_party', 'openscreen', 'src', 'third_party', 'abseil'): {
"Name": "abseil",
"URL": "https://github.com/abseil/abseil-cpp/",
"License": "Apache 2.0",
"License File": "/third_party/abseil-cpp/LICENSE",
},
os.path.join('third_party', 'openscreen', 'src', 'third_party',
'boringssl'):
{
"Name": "BoringSSL",
"URL": "https://boringssl.googlesource.com/boringssl/",
"License": "BSDish",
"License File": "/third_party/boringssl/src/LICENSE",
},
os.path.join('third_party', 'openscreen', 'src', 'third_party', 'jsoncpp'):
{
"Name": "jsoncpp",
"URL": "https://github.com/open-source-parsers/jsoncpp",
"License": "MIT",
"License File": "/third_party/jsoncpp/LICENSE",
},
os.path.join('third_party', 'openscreen', 'src', 'third_party', 'mozilla'):
{
"Name": "mozilla",
"URL": "https://github.com/mozilla",
"License": "MPL 1.1/GPL 2.0/LGPL 2.1",
"License File": "LICENSE.txt",
},
os.path.join('third_party', 'pdfium'): {
"Name": "PDFium",
"URL": "http://code.google.com/p/pdfium/",
......@@ -203,15 +238,15 @@ SPECIAL_CASES = {
"License": "BSD",
"License File": "NOT_SHIPPED",
},
os.path.join('third_party', 'crashpad', 'crashpad', 'third_party',
'lss'): {
os.path.join('third_party', 'crashpad', 'crashpad', 'third_party', 'lss'): {
"Name": "linux-syscall-support",
"URL": "https://chromium.googlesource.com/linux-syscall-support/",
"License": "BSD",
"License File": "NOT_SHIPPED",
},
os.path.join('third_party', 'crashpad', 'crashpad', 'third_party',
'mini_chromium'): {
'mini_chromium'):
{
"Name": "mini_chromium",
"URL": "https://chromium.googlesource.com/chromium/mini_chromium/",
"License": "BSD",
......@@ -223,8 +258,8 @@ SPECIAL_CASES = {
"License": "Apple Public Source License 2.0",
"License File": "APPLE_LICENSE",
},
os.path.join('third_party', 'crashpad', 'crashpad', 'third_party',
'zlib'): {
os.path.join('third_party', 'crashpad', 'crashpad', 'third_party', 'zlib'):
{
"Name": "zlib",
"URL": "https://zlib.net/",
"License": "zlib",
......@@ -275,8 +310,8 @@ SPECIAL_CASES = {
"URL": "http://www.netlib.org/fdlibm/",
"License": "Freely Distributable",
# Absolute path here is resolved as relative to the source root.
"License File" : "/v8/LICENSE.fdlibm",
"License Android Compatible" : "yes",
"License File": "/v8/LICENSE.fdlibm",
"License Android Compatible": "yes",
},
os.path.join('third_party', 'khronos_glcts'): {
# These sources are not shipped, are not public, and it isn't
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment