Fix building without sysroot for ChromeOS device build
Explcitly link with libcups when building for ChromeOS device. cups-config is currently used from debian sysroot which does not makes sense for ChromeOS device builds. Without it, Chrome fails to build for ChromeOS device target. Bug: b:265165506 Change-Id: I75a64823c4d4d13161c3215218ffd76dcc7496bf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4157994 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Manoj Gupta <manojgupta@chromium.org> Cr-Commit-Position: refs/heads/main@{#1096510}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
c93cdf07bc
commit
08fb9ab67b
@ -4,6 +4,7 @@
|
||||
|
||||
import("//build/config/chromeos/ui_mode.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/config/linux/pkg_config.gni")
|
||||
import("//build/config/sysroot.gni")
|
||||
import("//build/config/ui.gni")
|
||||
import("//pdf/features.gni")
|
||||
@ -426,6 +427,11 @@ test("printing_unittests") {
|
||||
}
|
||||
|
||||
if (use_cups) {
|
||||
if (is_chromeos_device) {
|
||||
pkg_config("cups") {
|
||||
packages = [ "cups" ]
|
||||
}
|
||||
} else {
|
||||
config("cups") {
|
||||
if (is_mac) {
|
||||
libs = [ "cups" ]
|
||||
@ -445,6 +451,7 @@ if (use_cups) {
|
||||
"value")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (is_android) {
|
||||
|
Reference in New Issue
Block a user