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

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

Issue 278253002: Port gfx_jni_headers target to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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
6 if (is_android) { 7 if (is_android) {
7 import("//build/config/android/config.gni") 8 import("//build/config/android/config.gni")
9 import("//build/config/android/rules.gni")
8 } 10 }
9 11
10 # Several targets want to include this header file, and some of them are 12 # Several targets want to include this header file, and some of them are
11 # child dependencies of "gfx". Therefore, we separate it out here so multiple 13 # child dependencies of "gfx". Therefore, we separate it out here so multiple
12 # targets can all have a dependency for header checking purposes without 14 # targets can all have a dependency for header checking purposes without
13 # creating circular dependencies. 15 # creating circular dependencies.
14 source_set("gfx_export") { 16 source_set("gfx_export") {
15 sources = [ 17 sources = [
16 "gfx_export.h", 18 "gfx_export.h",
17 ] 19 ]
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 if (use_aura) { 281 if (use_aura) {
280 sources -= [ "screen_android.cc" ] 282 sources -= [ "screen_android.cc" ]
281 } else { 283 } else {
282 sources -= [ "path.cc" ] 284 sources -= [ "path.cc" ]
283 } 285 }
284 286
285 if (!is_android_webview_build) { 287 if (!is_android_webview_build) {
286 deps += [ "//base:base_java" ] 288 deps += [ "//base:base_java" ]
287 } 289 }
288 290
289 deps += [ ":jni_headers" ] 291 deps += [ ":gfx_jni_headers" ]
290 libs = [ 292 libs = [
291 "android", 293 "android",
292 "jnigraphics", 294 "jnigraphics",
293 ] 295 ]
294 } 296 }
295 297
296 if (is_android || is_ios) { 298 if (is_android || is_ios) {
297 sources -= [ 299 sources -= [
298 "render_text.cc", 300 "render_text.cc",
299 "render_text.h", 301 "render_text.h",
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 ":gfx", 491 ":gfx",
490 "//base", 492 "//base",
491 "//base/test:run_all_unittests", 493 "//base/test:run_all_unittests",
492 "//base/test:run_all_unittests", 494 "//base/test:run_all_unittests",
493 "//testing/gtest", 495 "//testing/gtest",
494 "//ui/gfx/geometry", 496 "//ui/gfx/geometry",
495 ] 497 ]
496 } 498 }
497 499
498 if (is_android) { 500 if (is_android) {
499 # TODO(brettw) gfx_jni_headers 501 generate_jni("gfx_jni_headers") {
502 sources = [
503 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java",
504 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java",
505 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java",
506 ]
507 jni_package = "gfx"
508 }
500 } 509 }
501 510
502 if (use_x11) { 511 if (use_x11) {
503 component("gfx_x11") { 512 component("gfx_x11") {
504 sources = [ 513 sources = [
505 "x/x11_atom_cache.cc", 514 "x/x11_atom_cache.cc",
506 "x/x11_atom_cache.h", 515 "x/x11_atom_cache.h",
507 "x/x11_error_tracker.cc", 516 "x/x11_error_tracker.cc",
508 "x/x11_error_tracker.h", 517 "x/x11_error_tracker.h",
509 "x/x11_types.cc", 518 "x/x11_types.cc",
510 "x/x11_types.h", 519 "x/x11_types.h",
511 ] 520 ]
512 521
513 configs += [ "//build/config/linux:x11" ] 522 configs += [ "//build/config/linux:x11" ]
514 523
515 deps = [ 524 deps = [
516 ":gfx_export", 525 ":gfx_export",
517 "//base" 526 "//base"
518 ] 527 ]
519 } 528 }
520 } 529 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698