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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/buildflag_header.gni")
5 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
6 import("//build/config/sanitizers/sanitizers.gni") 7 import("//build/config/sanitizers/sanitizers.gni")
7 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
8 import("//testing/test.gni") 9 import("//testing/test.gni")
10 import("//ui/base/ui_features.gni")
9 import("//ui/ozone/ozone.gni") 11 import("//ui/ozone/ozone.gni")
10 12
11 if (is_android) { 13 if (is_android) {
12 import("//build/config/android/config.gni") 14 import("//build/config/android/config.gni")
13 import("//build/config/android/rules.gni") 15 import("//build/config/android/rules.gni")
14 } 16 }
15 17
16 build_ime = !is_ios 18 build_ime = !is_ios
17 19
18 # As part of building Chrome on iOS, it is necessary to run a tool on 20 # As part of building Chrome on iOS, it is necessary to run a tool on
(...skipping 17 matching lines...) Expand all
36 deps = [ 38 deps = [
37 "//base", 39 "//base",
38 ] 40 ]
39 41
40 defines = [ "UI_DATA_PACK_IMPLEMENTATION" ] 42 defines = [ "UI_DATA_PACK_IMPLEMENTATION" ]
41 43
42 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 44 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
43 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 45 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
44 } 46 }
45 47
48 buildflag_header("ui_features") {
49 header = "ui_features.h"
50 flags = [ "ENABLE_HIDPI=$enable_hidpi" ]
51 }
52
46 component("base") { 53 component("base") {
47 output_name = "ui_base" 54 output_name = "ui_base"
48 55
49 sources = [ 56 sources = [
50 "accelerators/menu_label_accelerator_util_linux.cc", 57 "accelerators/menu_label_accelerator_util_linux.cc",
51 "accelerators/menu_label_accelerator_util_linux.h", 58 "accelerators/menu_label_accelerator_util_linux.h",
52 "accelerators/platform_accelerator.h", 59 "accelerators/platform_accelerator.h",
53 "accelerators/platform_accelerator_cocoa.h", 60 "accelerators/platform_accelerator_cocoa.h",
54 "accelerators/platform_accelerator_cocoa.mm", 61 "accelerators/platform_accelerator_cocoa.mm",
55 "android/ui_base_jni_registrar.cc", 62 "android/ui_base_jni_registrar.cc",
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 # Empty implementation for all other cases. 344 # Empty implementation for all other cases.
338 sources += [ "touch/touch_device.cc" ] 345 sources += [ "touch/touch_device.cc" ]
339 } 346 }
340 347
341 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 348 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
342 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 349 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
343 350
344 defines = [ "UI_BASE_IMPLEMENTATION" ] 351 defines = [ "UI_BASE_IMPLEMENTATION" ]
345 352
346 public_deps = [ 353 public_deps = [
354 ":ui_features",
347 "//base", 355 "//base",
348 "//skia", 356 "//skia",
349 "//ui/events:events_base", 357 "//ui/events:events_base",
350 "//ui/events/platform", 358 "//ui/events/platform",
351 "//ui/gfx", 359 "//ui/gfx",
352 "//ui/gfx/geometry", 360 "//ui/gfx/geometry",
353 ] 361 ]
354 deps = [ 362 deps = [
355 "//base:base_static", 363 "//base:base_static",
356 "//base:i18n", 364 "//base:i18n",
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 } 921 }
914 if (is_mac) { 922 if (is_mac) {
915 data += [ "$root_out_dir/ui_unittests Framework.framework/" ] 923 data += [ "$root_out_dir/ui_unittests Framework.framework/" ]
916 924
917 if (is_asan && symbol_level == 0) { 925 if (is_asan && symbol_level == 0) {
918 data += [ "$root_out_dir/ui_base_unittests.dSYM/" ] 926 data += [ "$root_out_dir/ui_base_unittests.dSYM/" ]
919 } 927 }
920 } 928 }
921 } 929 }
922 # TODO(GYP) Mac (ui_base_tests_bundle) 930 # TODO(GYP) Mac (ui_base_tests_bundle)
OLDNEW
« 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