Chromium Code Reviews| 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 import("//testing/libfuzzer/fuzzer_test.gni") | 7 import("//testing/libfuzzer/fuzzer_test.gni") |
| 8 | 8 |
| 9 if (is_android) { | 9 if (is_android) { |
| 10 import("//build/config/android/config.gni") | 10 import("//build/config/android/config.gni") |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 509 public_deps = [ | 509 public_deps = [ |
| 510 ":gfx", | 510 ":gfx", |
| 511 ] | 511 ] |
| 512 } else { | 512 } else { |
| 513 public_deps = [ | 513 public_deps = [ |
| 514 ":memory_buffer_sources", | 514 ":memory_buffer_sources", |
| 515 ] | 515 ] |
| 516 } | 516 } |
| 517 } | 517 } |
| 518 | 518 |
| 519 source_set("view_util") { | |
| 520 sources = [ | |
| 521 "view_util.h", | |
| 522 ] | |
| 523 if (use_aura) { | |
| 524 sources += [ "view_util_aura.cc" ] | |
| 525 deps = [ | |
| 526 "//ui/aura", | |
| 527 ] | |
| 528 } | |
| 529 if (is_android && !use_aura) { | |
| 530 sources += [ "view_util_android.cc" ] | |
| 531 } | |
| 532 if (is_mac) { | |
| 533 sources += [ "view_util_mac.mm" ] | |
|
tapted
2017/02/15 00:36:10
foo_mac should be automatically stripped - this ca
Jinsuk Kim
2017/02/16 10:11:25
Done.
| |
| 534 } | |
| 535 } | |
| 536 | |
| 519 # Cannot be a static_library in component builds due to exported functions | 537 # Cannot be a static_library in component builds due to exported functions |
| 520 source_set("memory_buffer_sources") { | 538 source_set("memory_buffer_sources") { |
| 521 visibility = [ ":*" ] # Depend on through ":memory_buffer". | 539 visibility = [ ":*" ] # Depend on through ":memory_buffer". |
| 522 | 540 |
| 523 # TODO(brettw) refactor this so these sources are in a coherent directory | 541 # TODO(brettw) refactor this so these sources are in a coherent directory |
| 524 # structure rather than random samplings of ui/gfx and ui/gfx/mac. | 542 # structure rather than random samplings of ui/gfx and ui/gfx/mac. |
|
tapted
2017/02/15 00:36:10
Note this comment. We should put the new component
Jinsuk Kim
2017/02/16 10:11:25
Yes moved it under ui/gfx/native_widget for now.
| |
| 525 sources = [ | 543 sources = [ |
| 526 "buffer_format_util.cc", | 544 "buffer_format_util.cc", |
| 527 "buffer_format_util.h", | 545 "buffer_format_util.h", |
| 528 "buffer_types.h", | 546 "buffer_types.h", |
| 529 "generic_shared_memory_id.cc", | 547 "generic_shared_memory_id.cc", |
| 530 "generic_shared_memory_id.h", | 548 "generic_shared_memory_id.h", |
| 531 "gfx_export.h", | 549 "gfx_export.h", |
| 532 "mac/io_surface.cc", | 550 "mac/io_surface.cc", |
| 533 "mac/io_surface.h", | 551 "mac/io_surface.h", |
| 534 "native_pixmap_handle.cc", | 552 "native_pixmap_handle.cc", |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 763 | 781 |
| 764 fuzzer_test("color_transform_fuzztest") { | 782 fuzzer_test("color_transform_fuzztest") { |
| 765 sources = [ | 783 sources = [ |
| 766 "color_transform_fuzzer.cc", | 784 "color_transform_fuzzer.cc", |
| 767 ] | 785 ] |
| 768 deps = [ | 786 deps = [ |
| 769 ":gfx", | 787 ":gfx", |
| 770 ] | 788 ] |
| 771 libfuzzer_options = [ "max_len=1024" ] | 789 libfuzzer_options = [ "max_len=1024" ] |
| 772 } | 790 } |
| OLD | NEW |