blob: 254ad3cdff3f99aed458abce6cba306edb4912d9 [file] [log] [blame]
[email protected]94f206c12012-08-25 00:09:141# Copyright (c) 2012 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'variables': {
7 'chromium_code': 0,
[email protected]94f206c12012-08-25 00:09:148 'cc_tests_source_files': [
[email protected]c79f1472012-10-12 19:40:569 'active_animation_unittest.cc',
[email protected]7e691b8432012-11-07 05:02:2010 'content_layer_unittest.cc',
[email protected]904e9132012-11-01 00:12:4711 'contents_scaling_layer_unittest.cc',
[email protected]c79f1472012-10-12 19:40:5612 'damage_tracker_unittest.cc',
13 'delay_based_time_source_unittest.cc',
[email protected]1c0088f2012-10-17 00:29:3014 'delegated_renderer_layer_impl_unittest.cc',
[email protected]7e691b8432012-11-07 05:02:2015 'draw_quad_unittest.cc',
16 'float_quad_unittest.cc',
[email protected]c79f1472012-10-12 19:40:5617 'frame_rate_controller_unittest.cc',
[email protected]7e691b8432012-11-07 05:02:2018 'gl_renderer_unittest.cc',
19 'hash_pair_unittest.cc',
[email protected]c79f1472012-10-12 19:40:5620 'heads_up_display_unittest.cc',
21 'keyframed_animation_curve_unittest.cc',
22 'layer_animation_controller_unittest.cc',
23 'layer_impl_unittest.cc',
24 'layer_iterator_unittest.cc',
25 'layer_quad_unittest.cc',
26 'layer_sorter_unittest.cc',
27 'layer_tree_host_common_unittest.cc',
28 'layer_tree_host_impl_unittest.cc',
29 'layer_tree_host_unittest.cc',
[email protected]7e691b8432012-11-07 05:02:2030 'layer_unittest.cc',
[email protected]c79f1472012-10-12 19:40:5631 'math_util_unittest.cc',
[email protected]35680c02012-11-06 05:53:0032 'nine_patch_layer_impl_unittest.cc',
[email protected]7e691b8432012-11-07 05:02:2033 'nine_patch_layer_unittest.cc',
[email protected]c79f1472012-10-12 19:40:5634 'occlusion_tracker_unittest.cc',
[email protected]cd696272012-11-21 19:15:2735 'picture_layer_tiling_set_unittest.cc',
36 'picture_layer_tiling_unittest.cc',
[email protected]3b10a302012-11-07 21:16:4037 'prioritized_resource_unittest.cc',
[email protected]c79f1472012-10-12 19:40:5638 'quad_culler_unittest.cc',
[email protected]ac7c7f52012-11-08 06:26:5039 'region_unittest.cc',
[email protected]c79f1472012-10-12 19:40:5640 'render_pass_unittest.cc',
41 'render_surface_filters_unittest.cc',
42 'render_surface_unittest.cc',
[email protected]c79f1472012-10-12 19:40:5643 'resource_provider_unittest.cc',
[email protected]7e691b8432012-11-07 05:02:2044 'resource_update_controller_unittest.cc',
[email protected]c79f1472012-10-12 19:40:5645 'scheduler_state_machine_unittest.cc',
46 'scheduler_unittest.cc',
[email protected]f7685bc2012-11-08 17:32:3347 'scoped_resource_unittest.cc',
[email protected]c79f1472012-10-12 19:40:5648 'scrollbar_animation_controller_linear_fade_unittest.cc',
[email protected]1c0088f2012-10-17 00:29:3049 'scrollbar_layer_unittest.cc',
[email protected]7e691b8432012-11-07 05:02:2050 'software_renderer_unittest.cc',
51 'solid_color_layer_impl_unittest.cc',
[email protected]1c0088f2012-10-17 00:29:3052 'texture_copier_unittest.cc',
53 'texture_layer_unittest.cc',
[email protected]e2249592012-10-19 06:59:0954 'texture_uploader_unittest.cc',
[email protected]7e691b8432012-11-07 05:02:2055 'tiled_layer_impl_unittest.cc',
[email protected]1c0088f2012-10-17 00:29:3056 'tiled_layer_unittest.cc',
[email protected]c79f1472012-10-12 19:40:5657 'tree_synchronizer_unittest.cc',
[email protected]114e65d2012-11-07 04:59:3458 'timing_function_unittest.cc',
[email protected]c0dd24c2012-08-30 23:25:2759 ],
60 'cc_tests_support_files': [
[email protected]c79f1472012-10-12 19:40:5661 'test/animation_test_common.cc',
[email protected]0fb25002012-10-12 07:20:0262 'test/animation_test_common.h',
[email protected]0fb25002012-10-12 07:20:0263 'test/compositor_fake_web_graphics_context_3d.h',
[email protected]e56e4d882012-11-09 02:19:4464 'test/fake_content_layer_client.cc',
65 'test/fake_content_layer_client.h',
[email protected]0fb25002012-10-12 07:20:0266 'test/fake_graphics_context.h',
[email protected]101441ce2012-10-16 01:45:0367 'test/fake_graphics_context_3d_unittest.cc',
68 'test/fake_layer_tree_host_client.cc',
[email protected]0fb25002012-10-12 07:20:0269 'test/fake_layer_tree_host_client.h',
[email protected]cd696272012-11-21 19:15:2770 'test/fake_picture_layer_tiling_client.cc',
71 'test/fake_picture_layer_tiling_client.h',
[email protected]61de5812012-11-08 07:03:4472 'test/fake_proxy.cc',
73 'test/fake_proxy.h',
[email protected]cd696272012-11-21 19:15:2774 'test/fake_tile_manager_client.h',
[email protected]0fb25002012-10-12 07:20:0275 'test/fake_web_compositor_output_surface.h',
76 'test/fake_web_compositor_software_output_device.h',
77 'test/fake_web_graphics_context_3d.h',
78 'test/fake_web_scrollbar_theme_geometry.h',
[email protected]101441ce2012-10-16 01:45:0379 'test/geometry_test_utils.cc',
80 'test/geometry_test_utils.h',
81 'test/layer_test_common.cc',
82 'test/layer_test_common.h',
[email protected]741e9682012-10-19 19:36:1283 'test/layer_tree_test_common.cc',
[email protected]101441ce2012-10-16 01:45:0384 'test/layer_tree_test_common.h',
85 'test/mock_quad_culler.cc',
[email protected]0fb25002012-10-12 07:20:0286 'test/mock_quad_culler.h',
[email protected]101441ce2012-10-16 01:45:0387 'test/occlusion_tracker_test_common.h',
[email protected]8e26f1db02012-11-10 01:32:5388 'test/render_pass_test_common.cc',
[email protected]101441ce2012-10-16 01:45:0389 'test/render_pass_test_common.h',
90 'test/scheduler_test_common.cc',
91 'test/scheduler_test_common.h',
[email protected]101441ce2012-10-16 01:45:0392 'test/tiled_layer_test_common.cc',
93 'test/tiled_layer_test_common.h',
[email protected]c0dd24c2012-08-30 23:25:2794 ],
[email protected]94f206c12012-08-25 00:09:1495 },
[email protected]98fa8942012-09-01 18:29:4296 'targets': [
97 {
98 'target_name': 'cc_unittests',
[email protected]83f360822012-10-15 22:07:1499 'type': '<(gtest_target_type)',
[email protected]98fa8942012-09-01 18:29:42100 'dependencies': [
101 '../base/base.gyp:test_support_base',
[email protected]59cb7b352012-10-30 06:45:48102 '../media/media.gyp:media',
[email protected]439458f32012-10-16 02:24:31103 '../skia/skia.gyp:skia',
[email protected]98fa8942012-09-01 18:29:42104 '../testing/gmock.gyp:gmock',
[email protected]439458f32012-10-16 02:24:31105 '../testing/gtest.gyp:gtest',
106 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf',
[email protected]52347c842012-11-02 21:06:20107 '../third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore_platform_geometry',
108 '../ui/ui.gyp:ui',
[email protected]439458f32012-10-16 02:24:31109 'cc.gyp:cc',
110 'cc_test_support',
[email protected]98fa8942012-09-01 18:29:42111 ],
112 'sources': [
113 'test/run_all_unittests.cc',
[email protected]439458f32012-10-16 02:24:31114 '<@(cc_tests_source_files)',
115 ],
116 'include_dirs': [
117 'stubs',
118 'test',
119 '.',
120 '../third_party/WebKit/Source/Platform/chromium',
[email protected]98fa8942012-09-01 18:29:42121 ],
122 'conditions': [
[email protected]83f360822012-10-15 22:07:14123 ['OS == "android" and gtest_target_type == "shared_library"', {
124 'dependencies': [
125 '../testing/android/native_test.gyp:native_test_native_code',
126 ],
127 }],
[email protected]98fa8942012-09-01 18:29:42128 ],
129 },
[email protected]439458f32012-10-16 02:24:31130 {
131 'target_name': 'cc_test_support',
132 'type': 'static_library',
133 'include_dirs': [
134 'stubs',
135 'test',
136 '.',
137 '..',
138 '../third_party/WebKit/Source/Platform/chromium',
139 ],
140 'dependencies': [
141 '../ui/gl/gl.gyp:gl',
142 '../testing/gtest.gyp:gtest',
143 '../testing/gmock.gyp:gmock',
144 '../skia/skia.gyp:skia',
145 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf',
146 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit_wtf_support',
147 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
[email protected]439458f32012-10-16 02:24:31148 ],
149 'sources': [
150 '<@(cc_tests_support_files)',
[email protected]439458f32012-10-16 02:24:31151 ],
152 },
[email protected]98fa8942012-09-01 18:29:42153 ],
154 'conditions': [
[email protected]83f360822012-10-15 22:07:14155 # Special target to wrap a gtest_target_type==shared_library
156 # cc_unittests into an android apk for execution.
157 ['OS == "android" and gtest_target_type == "shared_library"', {
158 'targets': [
159 {
160 'target_name': 'cc_unittests_apk',
161 'type': 'none',
162 'dependencies': [
163 'cc_unittests',
164 ],
165 'variables': {
166 'test_suite_name': 'cc_unittests',
167 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unittests<(SHARED_LIB_SUFFIX)',
168 },
169 'includes': [ '../build/apk_test.gypi' ],
170 },
171 ],
172 }],
[email protected]94f206c12012-08-25 00:09:14173 ],
174}