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

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

Issue 2161063003: 🎫 Fail write_build_config.py if current_toolchain != default_toolchain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build deps Created 4 years, 4 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/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")
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 "path.cc", 319 "path.cc",
320 "selection_model.cc", 320 "selection_model.cc",
321 ] 321 ]
322 } 322 }
323 323
324 if (!is_debug) { 324 if (!is_debug) {
325 configs -= [ "//build/config/compiler:default_optimization" ] 325 configs -= [ "//build/config/compiler:default_optimization" ]
326 configs += [ "//build/config/compiler:optimize_max" ] 326 configs += [ "//build/config/compiler:optimize_max" ]
327 } 327 }
328 328
329 deps += [ 329 deps += [ ":gfx_jni_headers" ]
330 ":gfx_jni_headers",
331 "//base:base_java",
332 ]
333 libs = [ 330 libs = [
334 "android", 331 "android",
335 "jnigraphics", 332 "jnigraphics",
336 ] 333 ]
337 } else if (!is_ios) { 334 } else if (!is_ios) {
338 sources -= [ "canvas_notimplemented.cc" ] 335 sources -= [ "canvas_notimplemented.cc" ]
339 } 336 }
340 337
341 # Desktop only. 338 # Desktop only.
342 if (use_aura || (!is_ios && !is_android)) { 339 if (use_aura || (!is_ios && !is_android)) {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 if (is_component_build) { 486 if (is_component_build) {
490 public_deps = [ 487 public_deps = [
491 ":gfx", 488 ":gfx",
492 ] 489 ]
493 } else { 490 } else {
494 public_deps = [ 491 public_deps = [
495 ":memory_buffer_sources", 492 ":memory_buffer_sources",
496 ] 493 ]
497 } 494 }
498 } 495 }
496
499 # Cannot be a static_library in component builds due to exported functions 497 # Cannot be a static_library in component builds due to exported functions
500 source_set("memory_buffer_sources") { 498 source_set("memory_buffer_sources") {
501 visibility = [ ":*" ] # Depend on through ":memory_buffer". 499 visibility = [ ":*" ] # Depend on through ":memory_buffer".
502 500
503 # TODO(brettw) refactor this so these sources are in a coherent directory 501 # TODO(brettw) refactor this so these sources are in a coherent directory
504 # structure rather than random samplings of ui/gfx and ui/gfx/mac. 502 # structure rather than random samplings of ui/gfx and ui/gfx/mac.
505 sources = [ 503 sources = [
506 "buffer_format_util.cc", 504 "buffer_format_util.cc",
507 "buffer_format_util.h", 505 "buffer_format_util.h",
508 "buffer_types.h", 506 "buffer_types.h",
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 if (is_android) { 725 if (is_android) {
728 generate_jni("gfx_jni_headers") { 726 generate_jni("gfx_jni_headers") {
729 sources = [ 727 sources = [
730 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", 728 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java",
731 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", 729 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java",
732 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", 730 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java",
733 ] 731 ]
734 jni_package = "gfx" 732 jni_package = "gfx"
735 } 733 }
736 } 734 }
OLDNEW
« build/config/android/internal_rules.gni ('K') | « ui/base/BUILD.gn ('k') | ui/gl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698