libchrome: Fix libchrome-test-${BASE_VER} link option.
- Fix the library name.
- Fix not to use thin archive.
BUG=chromium:807158
TEST=Build locally.
Change-Id: I420e213a4a9f08e1f5147874e0b974e79ae2f357
Reviewed-on: https://chromium-review.googlesource.com/1381011
Commit-Ready: Hidehiko Abe <hidehiko@chromium.org>
Tested-by: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: Shuhei Takahashi <nya@chromium.org>
diff --git a/BUILD.gn b/BUILD.gn
index 6c310b9..4873818 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -414,6 +414,10 @@
configs += [ ":" + attr.name + "-pkg-config" ]
}
configs += [ "//common-mk:visibility_default" ]
+ if (buildtype == "static_library") {
+ configs -= [ "//common-mk:use_thin_archive" ]
+ configs += [ "//common-mk:nouse_thin_archive" ]
+ }
if (defined(attr.configs)) {
configs += attr.configs
}
@@ -506,7 +510,7 @@
requires_private += attr.pkg_deps
}
}
- libs = [ "base-${libbase_ver}" ]
+ libs = [ "base-test-${libbase_ver}" ]
libs_private = []
foreach(attr, libbase_sublibs) {
if (defined(attr.testonly) && attr.testonly) {