tint->dawn: Fix output_name of dawn_component template
The output library names should keep the 'dawn_' prefix, even when the target doesn't have this.
Bug: dawn:1275
Change-Id: I153c64b96594a05f599d847e455dca967e8ce0f9
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/79360
Commit-Queue: Ben Clayton <bclayton@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
diff --git a/scripts/dawn_component.gni b/scripts/dawn_component.gni
index b14990b..8a69794 100644
--- a/scripts/dawn_component.gni
+++ b/scripts/dawn_component.gni
@@ -23,8 +23,8 @@
# Template that produces static and shared versions of the same library as well
# as a target similar to Chromium's component targets.
# - The shared version exports symbols and has dependent import the symbols
-# as libname.so. If the target name matches the package directory name, then
-# the shared library target will be named 'shared', otherwise
+# as libdawn_${name}.so. If the target name matches the package directory
+# name, then the shared library target will be named 'shared', otherwise
# '${target_name}_shared'.
# - The static library doesn't export symbols nor make dependents import them.
# If the target name matches the package directory name, then the static
@@ -81,7 +81,7 @@
shared_library("${prefix}shared") {
# The "tool" for creating shared libraries will automatically add the "lib" prefix
- output_name = name
+ output_name = "dawn_${name}"
# Copy all variables except "configs", which has a default value
forward_variables_from(invoker, "*", [ "configs" ])
@@ -119,7 +119,7 @@
}
static_library("${prefix}static") {
- output_name = name + "_static"
+ output_name = "dawn_${name}_static"
complete_static_lib = dawn_complete_static_libs