Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Unified Diff: ui/base/BUILD.gn

Issue 1719343002: Move ENABLE_HIDPI to new build flags system (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/docs/cookbook.md ('k') | ui/base/resource/resource_bundle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/BUILD.gn
diff --git a/ui/base/BUILD.gn b/ui/base/BUILD.gn
index 941fdb8b25be94f2aec13de96c358810b48c56b3..21d94ac4aeac31f0795470ecaa50a5baac376204 100644
--- a/ui/base/BUILD.gn
+++ b/ui/base/BUILD.gn
@@ -2,10 +2,12 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/buildflag_header.gni")
import("//build/config/compiler/compiler.gni")
import("//build/config/sanitizers/sanitizers.gni")
import("//build/config/ui.gni")
import("//testing/test.gni")
+import("//ui/base/ui_features.gni")
import("//ui/ozone/ozone.gni")
if (is_android) {
@@ -43,6 +45,11 @@ component("ui_data_pack") {
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
}
+buildflag_header("ui_features") {
+ header = "ui_features.h"
+ flags = [ "ENABLE_HIDPI=$enable_hidpi" ]
+}
+
component("base") {
output_name = "ui_base"
@@ -344,6 +351,7 @@ component("base") {
defines = [ "UI_BASE_IMPLEMENTATION" ]
public_deps = [
+ ":ui_features",
"//base",
"//skia",
"//ui/events:events_base",
« no previous file with comments | « tools/gn/docs/cookbook.md ('k') | ui/base/resource/resource_bundle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698