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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/crypto.gni") | 6 import("//build/config/crypto.gni") |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 import("//build_overrides/v8.gni") | 9 import("//build_overrides/v8.gni") |
10 import("//media/media_options.gni") | 10 import("//media/media_options.gni") |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 "../browser/compositor/test/no_transport_image_transport_factory.h", | 153 "../browser/compositor/test/no_transport_image_transport_factory.h", |
154 ] | 154 ] |
155 deps += [ | 155 deps += [ |
156 "//ui/compositor", | 156 "//ui/compositor", |
157 "//third_party/libvpx_new", | 157 "//third_party/libvpx_new", |
158 ] | 158 ] |
159 } | 159 } |
160 | 160 |
161 if (is_android) { | 161 if (is_android) { |
162 deps += [ | 162 deps += [ |
163 "//content/shell/android:copy_content_shell_assets", | |
164 "//ui/android", | 163 "//ui/android", |
165 "//ui/shell_dialogs", | 164 "//ui/shell_dialogs", |
166 ] | 165 ] |
167 } | 166 } |
168 | 167 |
169 if (is_win) { | 168 if (is_win) { |
170 deps += [ "//sandbox" ] | 169 deps += [ "//sandbox" ] |
171 } | 170 } |
172 } else { # is_ios | 171 } else { # is_ios |
173 sources = [ | 172 sources = [ |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 ] | 478 ] |
480 } else { | 479 } else { |
481 sources -= [ | 480 sources -= [ |
482 "../browser/accessibility/touch_accessibility_aura_browsertest.cc", | 481 "../browser/accessibility/touch_accessibility_aura_browsertest.cc", |
483 "../browser/renderer_host/input/touch_selection_controller_client_aura_bro
wsertest.cc", | 482 "../browser/renderer_host/input/touch_selection_controller_client_aura_bro
wsertest.cc", |
484 "../browser/web_contents/web_contents_view_aura_browsertest.cc", | 483 "../browser/web_contents/web_contents_view_aura_browsertest.cc", |
485 ] | 484 ] |
486 } | 485 } |
487 } | 486 } |
488 | 487 |
489 if (is_android) { | |
490 _content_unittests_apk_assets_dir = | |
491 "$root_out_dir/content_unittests_apk/assets" | |
492 copy_ex("copy_content_unittests_apk_assets") { | |
493 clear_dir = true | |
494 dest = _content_unittests_apk_assets_dir | |
495 | |
496 if (v8_use_external_startup_data) { | |
497 renaming_sources = v8_external_startup_data_renaming_sources | |
498 renaming_destinations = v8_external_startup_data_renaming_destinations | |
499 deps = [ | |
500 "//v8", | |
501 ] | |
502 } | |
503 } | |
504 } | |
505 | |
506 # TODO(GYP): Delete this after we've converted everything to GN. | 488 # TODO(GYP): Delete this after we've converted everything to GN. |
507 # The _run targets exist only for compatibility w/ GYP. | 489 # The _run targets exist only for compatibility w/ GYP. |
508 group("content_unittests_run") { | 490 group("content_unittests_run") { |
509 testonly = true | 491 testonly = true |
510 deps = [ | 492 deps = [ |
511 ":content_unittests", | 493 ":content_unittests", |
512 ] | 494 ] |
513 } | 495 } |
514 | 496 |
515 test("content_unittests") { | 497 test("content_unittests") { |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 ".", | 664 ".", |
683 "//content") | 665 "//content") |
684 sources -= [ | 666 sources -= [ |
685 "../browser/geolocation/network_location_provider_unittest.cc", | 667 "../browser/geolocation/network_location_provider_unittest.cc", |
686 "../browser/geolocation/wifi_data_provider_common_unittest.cc", | 668 "../browser/geolocation/wifi_data_provider_common_unittest.cc", |
687 "../browser/power_usage_monitor_impl_unittest.cc", | 669 "../browser/power_usage_monitor_impl_unittest.cc", |
688 "../browser/renderer_host/begin_frame_observer_proxy_unittest.cc", | 670 "../browser/renderer_host/begin_frame_observer_proxy_unittest.cc", |
689 "../browser/webui/url_data_manager_backend_unittest.cc", | 671 "../browser/webui/url_data_manager_backend_unittest.cc", |
690 ] | 672 ] |
691 deps -= [ "//device/battery" ] | 673 deps -= [ "//device/battery" ] |
692 deps += [ ":copy_content_unittests_apk_assets" ] | |
693 | 674 |
694 apk_asset_location = _content_unittests_apk_assets_dir | |
695 apk_deps = [ | 675 apk_deps = [ |
696 "//base:base_java_unittest_support", | 676 "//base:base_java_unittest_support", |
697 "//content/public/android:content_java", | 677 "//content/public/android:content_java", |
| 678 "//v8:v8_external_startup_data_assets", |
698 ] | 679 ] |
699 | 680 |
700 defines += [ "APPCACHE_USE_SIMPLE_CACHE" ] | 681 defines += [ "APPCACHE_USE_SIMPLE_CACHE" ] |
701 } | 682 } |
702 if (!is_android && !is_ios) { | 683 if (!is_android && !is_ios) { |
703 deps += [ "//third_party/libvpx_new" ] | 684 deps += [ "//third_party/libvpx_new" ] |
704 } | 685 } |
705 | 686 |
706 if (use_aura) { | 687 if (use_aura) { |
707 deps += [ | 688 deps += [ |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 "//ui/gfx:test_support", | 784 "//ui/gfx:test_support", |
804 "//ui/gfx/geometry", | 785 "//ui/gfx/geometry", |
805 "//ui/gl", | 786 "//ui/gl", |
806 "//ui/gl:test_support", | 787 "//ui/gl:test_support", |
807 "//v8", | 788 "//v8", |
808 ] | 789 ] |
809 | 790 |
810 if (is_android) { | 791 if (is_android) { |
811 apk_deps = [ | 792 apk_deps = [ |
812 "//content/public/test/android:content_java_test_support", | 793 "//content/public/test/android:content_java_test_support", |
813 "//content/shell/android:copy_content_shell_assets", | 794 "//content/shell/android:content_shell_assets", |
814 ] | 795 ] |
815 apk_asset_location = "$root_build_dir/content_shell/assets" | |
816 } else { | 796 } else { |
817 data_deps = [ | 797 data_deps = [ |
818 "//third_party/ffmpeg", | 798 "//third_party/ffmpeg", |
819 "//third_party/mesa:osmesa", | 799 "//third_party/mesa:osmesa", |
820 ] | 800 ] |
821 } | 801 } |
822 } | 802 } |
823 | 803 |
824 test("content_gl_benchmark") { | 804 test("content_gl_benchmark") { |
825 sources = [ | 805 sources = [ |
826 "../common/gpu/client/gl_helper_benchmark.cc", | 806 "../common/gpu/client/gl_helper_benchmark.cc", |
827 ] | 807 ] |
828 | 808 |
829 deps = [ | 809 deps = [ |
830 ":test_support", | 810 ":test_support", |
831 "//base/allocator", | 811 "//base/allocator", |
832 "//base/test:test_support", | 812 "//base/test:test_support", |
833 "//content/public/common", | 813 "//content/public/common", |
834 "//gpu/blink", | 814 "//gpu/blink", |
835 "//testing/gtest", | 815 "//testing/gtest", |
836 "//third_party/WebKit/public:blink", | 816 "//third_party/WebKit/public:blink", |
837 "//ui/base", | 817 "//ui/base", |
838 "//ui/gfx", | 818 "//ui/gfx", |
839 "//ui/gfx/geometry", | 819 "//ui/gfx/geometry", |
840 "//ui/gl", | 820 "//ui/gl", |
841 "//ui/gl:test_support", | 821 "//ui/gl:test_support", |
842 ] | 822 ] |
843 } | 823 } |
OLD | NEW |