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

Side by Side Diff: ui/base/BUILD.gn

Issue 2272173002: Fix most chrome/browser/ui "gn check" problems. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 3 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
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/buildflag_header.gni")
6 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/sanitizers/sanitizers.gni") 7 import("//build/config/sanitizers/sanitizers.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 import("//ui/base/ui_features.gni") 10 import("//ui/base/ui_features.gni")
11 import("//ui/ozone/ozone.gni") 11 import("//ui/ozone/ozone.gni")
12 12
13 if (is_android) { 13 if (is_android) {
14 import("//build/config/android/config.gni") 14 import("//build/config/android/config.gni")
15 import("//build/config/android/rules.gni") 15 import("//build/config/android/rules.gni")
16 } else if (is_mac) { 16 } else if (is_mac) {
17 import("//build/config/mac/rules.gni") 17 import("//build/config/mac/rules.gni")
18 } 18 }
19 19
20 build_ime = !is_ios 20 build_ime = !is_ios
21 21
22 # As part of building Chrome on iOS, it is necessary to run a tool on 22 # As part of building Chrome on iOS, it is necessary to run a tool on
23 # the host to load datapack and generate output in a format defined 23 # the host to load datapack and generate output in a format defined
24 # by the platform (this is to support notifications). 24 # by the platform (this is to support notifications).
25 # 25 #
26 # Introduce a standalone target that build on both 'host' and 'target' 26 # Introduce a standalone target that can build on both 'host' and 'target'
27 # toolset that just build the support to load datapack. The dependency 27 # toolchains that just builds the support to load datapacks. The dependencies
28 # should be kept minimal to have to build too many targets with multiple 28 # should be kept minimal to have to build too many targets with multiple
29 # toolsets. 29 # toolchains.
30 component("ui_data_pack") { 30 component("ui_data_pack") {
31 sources = [ 31 sources = [
32 "resource/data_pack.cc", 32 "resource/data_pack.cc",
33 "resource/data_pack.h", 33 "resource/data_pack.h",
34 "resource/data_pack_export.h", 34 "resource/data_pack_export.h",
35 "resource/resource_handle.h", 35 "resource/resource_handle.h",
36 "resource/scale_factor.cc", 36 "resource/scale_factor.cc",
37 "resource/scale_factor.h", 37 "resource/scale_factor.h",
38 ] 38 ]
39 39
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 # Empty implementation for all other cases. 353 # Empty implementation for all other cases.
354 sources += [ "touch/touch_device.cc" ] 354 sources += [ "touch/touch_device.cc" ]
355 } 355 }
356 356
357 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 357 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
358 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 358 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
359 359
360 defines = [ "UI_BASE_IMPLEMENTATION" ] 360 defines = [ "UI_BASE_IMPLEMENTATION" ]
361 361
362 public_deps = [ 362 public_deps = [
363 ":ui_data_pack",
363 ":ui_features", 364 ":ui_features",
364 "//base", 365 "//base",
365 "//skia", 366 "//skia",
366 "//ui/events:events_base", 367 "//ui/events:events_base",
367 "//ui/events/platform", 368 "//ui/events/platform",
368 "//ui/gfx", 369 "//ui/gfx",
369 "//ui/gfx/geometry", 370 "//ui/gfx/geometry",
370 ] 371 ]
371 deps = [ 372 deps = [
372 "//base:base_static", 373 "//base:base_static",
373 "//base:i18n", 374 "//base:i18n",
374 "//base/third_party/dynamic_annotations", 375 "//base/third_party/dynamic_annotations",
375 "//net", 376 "//net",
376 "//third_party/icu", 377 "//third_party/icu",
377 "//third_party/zlib:zlib", 378 "//third_party/zlib:zlib",
378 "//ui/base:ui_data_pack",
379 "//ui/display", 379 "//ui/display",
380 "//ui/events", 380 "//ui/events",
381 "//ui/events/devices", 381 "//ui/events/devices",
382 "//ui/resources", 382 "//ui/resources",
383 "//ui/strings", 383 "//ui/strings",
384 "//url", 384 "//url",
385 ] 385 ]
386 386
387 if (is_ios) { 387 if (is_ios) {
388 set_sources_assignment_filter([]) 388 set_sources_assignment_filter([])
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 if (is_mac) { 950 if (is_mac) {
951 mac_framework_bundle("ui_unittests_framework") { 951 mac_framework_bundle("ui_unittests_framework") {
952 testonly = true 952 testonly = true
953 deps = [ 953 deps = [
954 "//ui/resources:ui_test_pak_bundle_data", 954 "//ui/resources:ui_test_pak_bundle_data",
955 ] 955 ]
956 info_plist = "test/framework-Info.plist" 956 info_plist = "test/framework-Info.plist"
957 output_name = "ui_unittests Framework" 957 output_name = "ui_unittests Framework"
958 } 958 }
959 } 959 }
OLDNEW
« chrome/browser/ui/BUILD.gn ('K') | « components/translate/content/browser/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698