[licenses] Add applicable_licenses to glslang
Bug: 132724
Change-Id: Ib77fb1c90e42883c785c2454ee59bcd2e6dd9cca
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/glslang/+/931431
Reviewed-by: Jerry Belton <jcecil@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index f2d20dc..67a1aa4 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -40,6 +40,14 @@
# definitions. To work around this, determine which configs to
# add and remove in order to succesfully build the project.
if (defined(is_fuchsia_tree) && is_fuchsia_tree) {
+ import("//build/licenses/license.gni")
+
+ license("license") {
+ public_package_name = "glslang"
+ license_files = [ "LICENSE.txt" ]
+ }
+ applicable_licenses = [ ":license" ]
+
_configs_to_remove = [ "//build/config:default_warnings" ]
_configs_to_add = []
} else {
@@ -48,13 +56,11 @@
}
if (submodules) {
- git_link_path_list =
- read_file(".git", "list lines")
+ git_link_path_list = read_file(".git", "list lines")
git_link_path = git_link_path_list[0]
relative_git_dir_split = string_split(git_link_path)
relative_git_dir = relative_git_dir_split[1]
- git_head =
- "${relative_git_dir}/HEAD"
+ git_head = "${relative_git_dir}/HEAD"
} else {
git_head = ".git/HEAD"
}
@@ -93,13 +99,9 @@
# https://fuchsia.dev/fuchsia-src/development/build/hermetic_actions
# for details). All input files of the script should be added to the
# |sources| list.
- sources = [
- "glslang/ExtensionHeaders/GL_EXT_shader_realtime_clock.glsl",
- ]
+ sources = [ "glslang/ExtensionHeaders/GL_EXT_shader_realtime_clock.glsl" ]
- inputs = [
- script
- ]
+ inputs = [ script ]
outputs = [ out_file ]
args = [
"-i",
@@ -351,8 +353,8 @@
deps = [
":glslang_build_info",
":glslang_default_resource_limits_sources",
- ":glslang_sources",
":glslang_extension_headers",
+ ":glslang_sources",
]
public_configs = [ ":glslang_hlsl" ]