Skip to content

Commit

Permalink
Fix build with gtk and pangocairo disabled
Browse files Browse the repository at this point in the history
This was regressed by https://chromium-review.googlesource.com/c/chromium/src/+/2780505

Bug: 1189902
Change-Id: I2c318ce96caeebc5c1f21b15edfc17d73e3831d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2794815
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Robert Liao <robliao@chromium.org>
Reviewed-by: Peter Kvitek <kvitekp@chromium.org>
Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867709}
  • Loading branch information
caseq authored and Chromium LUCI CQ committed Mar 30, 2021
1 parent c4acab5 commit 0e234d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ if (is_android) {
import("//build/config/android/config.gni")
}

if (is_linux) {
import("build/config/linux/gtk/gtk.gni")
}

declare_args() {
# A list of extra dependencies to add to the root target. This allows a
# checkout to add additional targets without explicitly changing any checked-
Expand Down Expand Up @@ -758,7 +762,7 @@ group("gn_all") {
}
}

if (is_linux && !is_chromecast) {
if (is_linux && !is_chromecast && use_gtk) {
deps += [ "//ui/gtk:gtk_unittests" ]
}

Expand Down

0 comments on commit 0e234d9

Please sign in to comment.