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

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

Issue 1231843002: Revert of Revert vector icon CLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@merge_aide_oobe_completion
Patch Set: Rebase. Created 5 years, 5 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 | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | ui/gfx/gfx.gyp » ('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/config/ui.gni") 5 import("//build/config/ui.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 if (is_android) { 8 if (is_android) {
9 import("//build/config/android/config.gni") 9 import("//build/config/android/config.gni")
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
11 } 11 }
12 12
13 # Several targets want to include this header file, and some of them are 13 # Several targets want to include this header file, and some of them are
14 # child dependencies of "gfx". Therefore, we separate it out here so multiple 14 # child dependencies of "gfx". Therefore, we separate it out here so multiple
15 # targets can all have a dependency for header checking purposes without 15 # targets can all have a dependency for header checking purposes without
16 # creating circular dependencies. 16 # creating circular dependencies.
17 source_set("gfx_export") { 17 source_set("gfx_export") {
18 sources = [ 18 sources = [
19 "gfx_export.h", 19 "gfx_export.h",
20 ] 20 ]
21 } 21 }
22 22
23 vector_icons_cc_file = "$target_gen_dir/vector_icons.cc"
24 vector_icons_public_h_file = "$target_gen_dir/vector_icons_public.h"
25
23 component("gfx") { 26 component("gfx") {
24 sources = [ 27 sources = [
25 "android/device_display_info.cc", 28 "android/device_display_info.cc",
26 "android/device_display_info.h", 29 "android/device_display_info.h",
27 "android/gfx_jni_registrar.cc", 30 "android/gfx_jni_registrar.cc",
28 "android/gfx_jni_registrar.h", 31 "android/gfx_jni_registrar.h",
29 "android/java_bitmap.cc", 32 "android/java_bitmap.cc",
30 "android/java_bitmap.h", 33 "android/java_bitmap.h",
31 "android/shared_device_display_info.cc", 34 "android/shared_device_display_info.cc",
32 "android/shared_device_display_info.h", 35 "android/shared_device_display_info.h",
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 "//base:base_java", 317 "//base:base_java",
315 ] 318 ]
316 libs = [ 319 libs = [
317 "android", 320 "android",
318 "jnigraphics", 321 "jnigraphics",
319 ] 322 ]
320 } else { 323 } else {
321 sources -= [ "canvas_notimplemented.cc" ] 324 sources -= [ "canvas_notimplemented.cc" ]
322 } 325 }
323 326
327 # Desktop only.
328 if (use_aura || (!is_ios && !is_android)) {
329 sources += [
330 "paint_vector_icon.cc",
331 "paint_vector_icon.h",
332 "vector_icons.h",
333 vector_icons_cc_file,
334 vector_icons_public_h_file,
335 ]
336 deps += [ ":aggregate_vector_icons" ]
337 }
338
324 # Windows. 339 # Windows.
325 if (is_win) { 340 if (is_win) {
326 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), w hich is 341 cflags = [ "/wd4324" ] # Structure was padded due to __declspec(align()), w hich is
327 # uninteresting. 342 # uninteresting.
328 } else { 343 } else {
329 sources -= [ 344 sources -= [
330 "gdi_util.cc", 345 "gdi_util.cc",
331 "gdi_util.h", 346 "gdi_util.h",
332 "icon_util.cc", 347 "icon_util.cc",
333 "icon_util.h", 348 "icon_util.h",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 configs += [ "//build/config/linux:x11" ] 381 configs += [ "//build/config/linux:x11" ]
367 } else { 382 } else {
368 sources -= [ "path_x11.cc" ] 383 sources -= [ "path_x11.cc" ]
369 } 384 }
370 385
371 if (use_cairo) { 386 if (use_cairo) {
372 configs += [ "//build/config/linux:pangocairo" ] 387 configs += [ "//build/config/linux:pangocairo" ]
373 } 388 }
374 } 389 }
375 390
391 # GYP version: ui/gfx/gfx.gyp:aggregate_vector_icons
392 action("aggregate_vector_icons") {
393 script = "vector_icons/aggregate_vector_icons.py"
394 sources = [
395 "vector_icons",
396 ]
397 outputs = [
398 vector_icons_cc_file,
399 vector_icons_public_h_file,
400 ]
401
402 args = [
403 "--working_directory=" + rebase_path("vector_icons/"),
404 "--output_cc=" + rebase_path(vector_icons_cc_file, root_build_dir),
405 "--output_h=" + rebase_path(vector_icons_public_h_file, root_build_dir),
406 ]
407 }
408
376 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry 409 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry
377 410
378 source_set("test_support") { 411 source_set("test_support") {
379 testonly = true 412 testonly = true
380 sources = [ 413 sources = [
381 "image/image_unittest_util.cc", 414 "image/image_unittest_util.cc",
382 "image/image_unittest_util.h", 415 "image/image_unittest_util.h",
383 "image/image_unittest_util_ios.mm", 416 "image/image_unittest_util_ios.mm",
384 "image/image_unittest_util_mac.mm", 417 "image/image_unittest_util_mac.mm",
385 "test/fontconfig_util_linux.cc", 418 "test/fontconfig_util_linux.cc",
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 if (is_android) { 585 if (is_android) {
553 generate_jni("gfx_jni_headers") { 586 generate_jni("gfx_jni_headers") {
554 sources = [ 587 sources = [
555 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", 588 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java",
556 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", 589 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java",
557 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", 590 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java",
558 ] 591 ]
559 jni_package = "gfx" 592 jni_package = "gfx"
560 } 593 }
561 } 594 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | ui/gfx/gfx.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698