Fix re-linking of Dawn/Tint
From `gn help libs`:
Types of libs
There are several different things that can be expressed in libs:
File paths
Values containing '/' will be treated as references to files in the
checkout. They will be rebased to be relative to the build directory and
specified in the "libs" for linker tools. This facility should be used
for libraries that are checked in to the version control. For libraries
that are generated by the build, use normal GN deps to link them.
System libraries
Values not containing '/' will be treated as system library names. These
will be passed unmodified to the linker and prefixed with the
"lib_switch" attribute of the linker tool. Generally you would set the
"lib_dirs" so the given library is found. Your BUILD.gn file should not
specify the switch (like "-l"): this will be encoded in the "lib_switch"
of the tool.
Before, GN was treating our libraries as a "system library" and it
wasn't relinking if only system libraries had "changed". By
specifying this now with a /, it's a file path and GN *does* keep
track if it's been updated. That behavior is not documented
(that I could find), but I discovered it with experimentation.
Change-Id: Iff20c41220b98a0d6ebd6d2e07a364a880092633
Bug: b/474062487
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1138356
Commit-Queue: Kaylee Lubick <kjlubick@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
1 file changed