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

Side by Side Diff: cc/BUILD.gn

Issue 1248673005: Add GN isolate support for a bunch of unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@some_isolates
Patch Set: merge to HEAD Created 5 years, 5 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
« no previous file with comments | « no previous file | gpu/BUILD.gn » ('j') | 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("//testing/test.gni") 5 import("//testing/test.gni")
6 6
7 component("cc") { 7 component("cc") {
8 sources = [ 8 sources = [
9 "animation/animation.cc", 9 "animation/animation.cc",
10 "animation/animation.h", 10 "animation/animation.h",
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 "//ui/gfx:test_support", 689 "//ui/gfx:test_support",
690 "//ui/gl", 690 "//ui/gl",
691 "//ui/gl:test_support", 691 "//ui/gl:test_support",
692 ] 692 ]
693 693
694 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links. 694 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links.
695 deps += [ "//third_party/mesa:osmesa" ] 695 deps += [ "//third_party/mesa:osmesa" ]
696 } 696 }
697 } 697 }
698 698
699 # TODO(GYP): Delete this after we've converted everything to GN.
700 # The _run targets exist only for compatibility w/ GYP.
701 group("cc_unittests_run") {
702 testonly = true
703 deps = [
704 ":cc_unittests",
705 ]
706 }
707
699 test("cc_unittests") { 708 test("cc_unittests") {
700 sources = [ 709 sources = [
701 "animation/animation_host_unittest.cc", 710 "animation/animation_host_unittest.cc",
702 "animation/animation_player_unittest.cc", 711 "animation/animation_player_unittest.cc",
703 "animation/animation_timeline_unittest.cc", 712 "animation/animation_timeline_unittest.cc",
704 "animation/animation_unittest.cc", 713 "animation/animation_unittest.cc",
705 "animation/element_animations_unittest.cc", 714 "animation/element_animations_unittest.cc",
706 "animation/keyframed_animation_curve_unittest.cc", 715 "animation/keyframed_animation_curve_unittest.cc",
707 "animation/layer_animation_controller_unittest.cc", 716 "animation/layer_animation_controller_unittest.cc",
708 "animation/scroll_offset_animation_curve_unittest.cc", 717 "animation/scroll_offset_animation_curve_unittest.cc",
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 "surfaces/surface_aggregator_test_helpers.h", 837 "surfaces/surface_aggregator_test_helpers.h",
829 "surfaces/surface_aggregator_unittest.cc", 838 "surfaces/surface_aggregator_unittest.cc",
830 "surfaces/surface_unittest.cc", 839 "surfaces/surface_unittest.cc",
831 "surfaces/surfaces_pixeltest.cc", 840 "surfaces/surfaces_pixeltest.cc",
832 841
833 # Setup. 842 # Setup.
834 "test/cc_test_suite.cc", 843 "test/cc_test_suite.cc",
835 "test/run_all_unittests.cc", 844 "test/run_all_unittests.cc",
836 ] 845 ]
837 846
847 data = [
848 "test/data/",
849 ]
850
838 deps = [ 851 deps = [
839 ":cc", 852 ":cc",
840 ":test_support", 853 ":test_support",
841 "//base/test:test_support", 854 "//base/test:test_support",
842 "//cc/surfaces", 855 "//cc/surfaces",
843 "//cc/surfaces:surface_id", 856 "//cc/surfaces:surface_id",
844 "//gpu", 857 "//gpu",
845 "//gpu:test_support", 858 "//gpu:test_support",
846 "//gpu/command_buffer/client:gles2_interface", 859 "//gpu/command_buffer/client:gles2_interface",
847 "//gpu/command_buffer/common:gles2_utils", 860 "//gpu/command_buffer/common:gles2_utils",
848 "//media", 861 "//media",
849 "//testing/gmock", 862 "//testing/gmock",
850 "//testing/gtest", 863 "//testing/gtest",
851 "//ui/events:events_base", 864 "//ui/events:events_base",
852 "//ui/gfx", 865 "//ui/gfx",
853 "//ui/gfx/geometry", 866 "//ui/gfx/geometry",
854 "//ui/gfx:test_support", 867 "//ui/gfx:test_support",
855 "//ui/gl", 868 "//ui/gl",
856 "//ui/gl:test_support", 869 "//ui/gl:test_support",
857 ] 870 ]
871
872 data_deps = [ "//third_party/mesa:osmesa" ]
858 } 873 }
859 874
860 test("cc_perftests") { 875 test("cc_perftests") {
861 sources = [ 876 sources = [
862 "layers/layer_perftest.cc", 877 "layers/layer_perftest.cc",
863 "layers/picture_layer_impl_perftest.cc", 878 "layers/picture_layer_impl_perftest.cc",
864 "playback/picture_pile_impl_perftest.cc", 879 "playback/picture_pile_impl_perftest.cc",
865 "quads/draw_quad_perftest.cc", 880 "quads/draw_quad_perftest.cc",
866 "raster/task_graph_runner_perftest.cc", 881 "raster/task_graph_runner_perftest.cc",
867 "raster/texture_compressor_perftest.cc", 882 "raster/texture_compressor_perftest.cc",
(...skipping 28 matching lines...) Expand all
896 "//ui/gl", 911 "//ui/gl",
897 "//ui/gl:test_support", 912 "//ui/gl:test_support",
898 ] 913 ]
899 914
900 if (is_android) { 915 if (is_android) {
901 isolate_file = "cc_perftests.isolate" 916 isolate_file = "cc_perftests.isolate"
902 } 917 }
903 } 918 }
904 # When adding support for isolates, please have a look at run-time dependencies 919 # When adding support for isolates, please have a look at run-time dependencies
905 # in the cc_unittests_run target in cc_tests.gyp. 920 # in the cc_unittests_run target in cc_tests.gyp.
OLDNEW
« no previous file with comments | « no previous file | gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698