blob: e043d2fd6089fd57eb648b7e41cf15cdda80d3c5 [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',
35 'prioritized_texture_unittest.cc',
36 'quad_culler_unittest.cc',
[email protected]c79f1472012-10-12 19:40:5637 'render_pass_unittest.cc',
38 'render_surface_filters_unittest.cc',
39 'render_surface_unittest.cc',
[email protected]c79f1472012-10-12 19:40:5640 'resource_provider_unittest.cc',
[email protected]7e691b8432012-11-07 05:02:2041 'resource_update_controller_unittest.cc',
[email protected]c79f1472012-10-12 19:40:5642 'scheduler_state_machine_unittest.cc',
43 'scheduler_unittest.cc',
44 'scoped_texture_unittest.cc',
45 'scrollbar_animation_controller_linear_fade_unittest.cc',
[email protected]1c0088f2012-10-17 00:29:3046 'scrollbar_layer_unittest.cc',
[email protected]7e691b8432012-11-07 05:02:2047 'software_renderer_unittest.cc',
48 'solid_color_layer_impl_unittest.cc',
[email protected]1c0088f2012-10-17 00:29:3049 'texture_copier_unittest.cc',
50 'texture_layer_unittest.cc',
[email protected]e2249592012-10-19 06:59:0951 'texture_uploader_unittest.cc',
[email protected]7e691b8432012-11-07 05:02:2052 'tiled_layer_impl_unittest.cc',
[email protected]1c0088f2012-10-17 00:29:3053 'tiled_layer_unittest.cc',
[email protected]c79f1472012-10-12 19:40:5654 'tree_synchronizer_unittest.cc',
[email protected]114e65d2012-11-07 04:59:3455 'timing_function_unittest.cc',
[email protected]c0dd24c2012-08-30 23:25:2756 ],
57 'cc_tests_support_files': [
[email protected]c79f1472012-10-12 19:40:5658 'test/animation_test_common.cc',
[email protected]0fb25002012-10-12 07:20:0259 'test/animation_test_common.h',
[email protected]0fb25002012-10-12 07:20:0260 'test/compositor_fake_web_graphics_context_3d.h',
61 'test/fake_graphics_context.h',
[email protected]101441ce2012-10-16 01:45:0362 'test/fake_graphics_context_3d_unittest.cc',
63 'test/fake_layer_tree_host_client.cc',
[email protected]0fb25002012-10-12 07:20:0264 'test/fake_layer_tree_host_client.h',
[email protected]0fb25002012-10-12 07:20:0265 'test/fake_web_compositor_output_surface.h',
66 'test/fake_web_compositor_software_output_device.h',
67 'test/fake_web_graphics_context_3d.h',
68 'test/fake_web_scrollbar_theme_geometry.h',
[email protected]101441ce2012-10-16 01:45:0369 'test/geometry_test_utils.cc',
70 'test/geometry_test_utils.h',
71 'test/layer_test_common.cc',
72 'test/layer_test_common.h',
[email protected]741e9682012-10-19 19:36:1273 'test/layer_tree_test_common.cc',
[email protected]101441ce2012-10-16 01:45:0374 'test/layer_tree_test_common.h',
75 'test/mock_quad_culler.cc',
[email protected]0fb25002012-10-12 07:20:0276 'test/mock_quad_culler.h',
[email protected]101441ce2012-10-16 01:45:0377 'test/occlusion_tracker_test_common.h',
78 'test/render_pass_test_common.h',
79 'test/scheduler_test_common.cc',
80 'test/scheduler_test_common.h',
81 'test/test_common.h',
82 'test/tiled_layer_test_common.cc',
83 'test/tiled_layer_test_common.h',
[email protected]c0dd24c2012-08-30 23:25:2784 ],
[email protected]94f206c12012-08-25 00:09:1485 },
[email protected]98fa8942012-09-01 18:29:4286 'targets': [
87 {
88 'target_name': 'cc_unittests',
[email protected]83f360822012-10-15 22:07:1489 'type': '<(gtest_target_type)',
[email protected]98fa8942012-09-01 18:29:4290 'dependencies': [
91 '../base/base.gyp:test_support_base',
[email protected]59cb7b352012-10-30 06:45:4892 '../media/media.gyp:media',
[email protected]439458f32012-10-16 02:24:3193 '../skia/skia.gyp:skia',
[email protected]98fa8942012-09-01 18:29:4294 '../testing/gmock.gyp:gmock',
[email protected]439458f32012-10-16 02:24:3195 '../testing/gtest.gyp:gtest',
96 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf',
[email protected]52347c842012-11-02 21:06:2097 '../third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore_platform_geometry',
98 '../ui/ui.gyp:ui',
[email protected]439458f32012-10-16 02:24:3199 'cc.gyp:cc',
100 'cc_test_support',
[email protected]98fa8942012-09-01 18:29:42101 ],
102 'sources': [
103 'test/run_all_unittests.cc',
[email protected]439458f32012-10-16 02:24:31104 '<@(cc_tests_source_files)',
105 ],
106 'include_dirs': [
107 'stubs',
108 'test',
109 '.',
110 '../third_party/WebKit/Source/Platform/chromium',
[email protected]98fa8942012-09-01 18:29:42111 ],
112 'conditions': [
[email protected]83f360822012-10-15 22:07:14113 ['OS == "android" and gtest_target_type == "shared_library"', {
114 'dependencies': [
115 '../testing/android/native_test.gyp:native_test_native_code',
116 ],
117 }],
[email protected]98fa8942012-09-01 18:29:42118 ],
119 },
[email protected]439458f32012-10-16 02:24:31120 {
121 'target_name': 'cc_test_support',
122 'type': 'static_library',
123 'include_dirs': [
124 'stubs',
125 'test',
126 '.',
127 '..',
128 '../third_party/WebKit/Source/Platform/chromium',
129 ],
130 'dependencies': [
131 '../ui/gl/gl.gyp:gl',
132 '../testing/gtest.gyp:gtest',
133 '../testing/gmock.gyp:gmock',
134 '../skia/skia.gyp:skia',
135 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf',
136 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit_wtf_support',
137 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
[email protected]439458f32012-10-16 02:24:31138 ],
139 'sources': [
140 '<@(cc_tests_support_files)',
[email protected]439458f32012-10-16 02:24:31141 ],
142 },
[email protected]98fa8942012-09-01 18:29:42143 ],
144 'conditions': [
[email protected]83f360822012-10-15 22:07:14145 # Special target to wrap a gtest_target_type==shared_library
146 # cc_unittests into an android apk for execution.
147 ['OS == "android" and gtest_target_type == "shared_library"', {
148 'targets': [
149 {
150 'target_name': 'cc_unittests_apk',
151 'type': 'none',
152 'dependencies': [
153 'cc_unittests',
154 ],
155 'variables': {
156 'test_suite_name': 'cc_unittests',
157 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unittests<(SHARED_LIB_SUFFIX)',
158 },
159 'includes': [ '../build/apk_test.gypi' ],
160 },
161 ],
162 }],
[email protected]94f206c12012-08-25 00:09:14163 ],
164}