| OLD | NEW |
| 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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 ":gfx", | 458 ":gfx", |
| 459 ] | 459 ] |
| 460 } else { | 460 } else { |
| 461 public_deps = [ | 461 public_deps = [ |
| 462 ":selection_bound_sources", | 462 ":selection_bound_sources", |
| 463 ] | 463 ] |
| 464 } | 464 } |
| 465 } | 465 } |
| 466 | 466 |
| 467 # Depend on this to use selection_bound.h without pulling in all of gfx. | 467 # Depend on this to use selection_bound.h without pulling in all of gfx. |
| 468 # Cannot be a static_library in component builds due to exported functions |
| 468 source_set("selection_bound_sources") { | 469 source_set("selection_bound_sources") { |
| 469 visibility = [ ":*" ] | 470 visibility = [ ":*" ] |
| 470 | 471 |
| 471 sources = [ | 472 sources = [ |
| 472 "gfx_export.h", | 473 "gfx_export.h", |
| 473 "selection_bound.cc", | 474 "selection_bound.cc", |
| 474 "selection_bound.h", | 475 "selection_bound.h", |
| 475 ] | 476 ] |
| 476 | 477 |
| 477 defines = [ "GFX_IMPLEMENTATION" ] | 478 defines = [ "GFX_IMPLEMENTATION" ] |
| (...skipping 14 matching lines...) Expand all Loading... |
| 492 if (is_component_build) { | 493 if (is_component_build) { |
| 493 public_deps = [ | 494 public_deps = [ |
| 494 ":gfx", | 495 ":gfx", |
| 495 ] | 496 ] |
| 496 } else { | 497 } else { |
| 497 public_deps = [ | 498 public_deps = [ |
| 498 ":memory_buffer_sources", | 499 ":memory_buffer_sources", |
| 499 ] | 500 ] |
| 500 } | 501 } |
| 501 } | 502 } |
| 503 # Cannot be a static_library in component builds due to exported functions |
| 502 source_set("memory_buffer_sources") { | 504 source_set("memory_buffer_sources") { |
| 503 visibility = [ ":*" ] # Depend on through ":memory_buffer". | 505 visibility = [ ":*" ] # Depend on through ":memory_buffer". |
| 504 | 506 |
| 505 # TODO(brettw) refactor this so these sources are in a coherent directory | 507 # TODO(brettw) refactor this so these sources are in a coherent directory |
| 506 # structure rather than random samplings of ui/gfx and ui/gfx/mac. | 508 # structure rather than random samplings of ui/gfx and ui/gfx/mac. |
| 507 sources = [ | 509 sources = [ |
| 508 "buffer_format_util.cc", | 510 "buffer_format_util.cc", |
| 509 "buffer_format_util.h", | 511 "buffer_format_util.h", |
| 510 "buffer_types.h", | 512 "buffer_types.h", |
| 511 "generic_shared_memory_id.cc", | 513 "generic_shared_memory_id.cc", |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 if (is_android) { | 731 if (is_android) { |
| 730 generate_jni("gfx_jni_headers") { | 732 generate_jni("gfx_jni_headers") { |
| 731 sources = [ | 733 sources = [ |
| 732 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", | 734 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", |
| 733 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", | 735 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", |
| 734 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", | 736 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", |
| 735 ] | 737 ] |
| 736 jni_package = "gfx" | 738 jni_package = "gfx" |
| 737 } | 739 } |
| 738 } | 740 } |
| OLD | NEW |