Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1 | # 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': { |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 7 | 'chromium_code': 1, |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 8 | 'cc_unit_tests_source_files': [ |
| 9 | 'animation/animation_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 10 | 'animation/keyframed_animation_curve_unittest.cc', |
| 11 | 'animation/layer_animation_controller_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 12 | 'animation/scrollbar_animation_controller_linear_fade_unittest.cc', |
| 13 | 'animation/timing_function_unittest.cc', |
| 14 | 'animation/transform_operations_unittest.cc', |
| 15 | 'base/float_quad_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 16 | 'base/math_util_unittest.cc', |
| 17 | 'base/region_unittest.cc', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 18 | 'base/scoped_ptr_vector_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 19 | 'base/tiling_data_unittest.cc', |
| 20 | 'base/util_unittest.cc', |
| 21 | 'input/top_controls_manager_unittest.cc', |
| 22 | 'layers/content_layer_unittest.cc', |
| 23 | 'layers/contents_scaling_layer_unittest.cc', |
| 24 | 'layers/delegated_renderer_layer_impl_unittest.cc', |
| 25 | 'layers/heads_up_display_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 26 | 'layers/layer_impl_unittest.cc', |
| 27 | 'layers/layer_iterator_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 28 | 'layers/layer_position_constraint_unittest.cc', |
| 29 | 'layers/layer_unittest.cc', |
| 30 | 'layers/nine_patch_layer_impl_unittest.cc', |
| 31 | 'layers/nine_patch_layer_unittest.cc', |
| 32 | 'layers/picture_image_layer_impl_unittest.cc', |
| 33 | 'layers/picture_layer_impl_unittest.cc', |
| 34 | 'layers/render_surface_unittest.cc', |
| 35 | 'layers/scrollbar_layer_unittest.cc', |
| 36 | 'layers/solid_color_layer_impl_unittest.cc', |
| 37 | 'layers/texture_layer_unittest.cc', |
| 38 | 'layers/tiled_layer_impl_unittest.cc', |
| 39 | 'layers/tiled_layer_unittest.cc', |
| 40 | 'output/delegating_renderer_unittest.cc', |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 41 | 'output/filter_operations_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 42 | 'output/gl_renderer_unittest.cc', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 43 | 'output/output_surface_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 44 | 'output/renderer_pixeltest.cc', |
| 45 | 'output/render_surface_filters_unittest.cc', |
| 46 | 'output/shader_unittest.cc', |
| 47 | 'output/software_renderer_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 48 | 'quads/draw_quad_unittest.cc', |
| 49 | 'quads/render_pass_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 50 | 'resources/layer_quad_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 51 | 'resources/picture_layer_tiling_set_unittest.cc', |
| 52 | 'resources/picture_layer_tiling_unittest.cc', |
| 53 | 'resources/picture_pile_impl_unittest.cc', |
Torne (Richard Coles) | b2df76e | 2013-05-13 16:52:09 +0100 | [diff] [blame] | 54 | 'resources/picture_pile_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 55 | 'resources/picture_unittest.cc', |
| 56 | 'resources/prioritized_resource_unittest.cc', |
Ben Murdoch | bb1529c | 2013-08-08 10:24:53 +0100 | [diff] [blame^] | 57 | 'resources/prioritized_tile_set_unittest.cc', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 58 | 'resources/raster_worker_pool_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 59 | 'resources/resource_provider_unittest.cc', |
| 60 | 'resources/resource_update_controller_unittest.cc', |
| 61 | 'resources/scoped_resource_unittest.cc', |
| 62 | 'resources/tile_manager_unittest.cc', |
| 63 | 'resources/tile_priority_unittest.cc', |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 64 | 'resources/video_resource_updater_unittest.cc', |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 65 | 'resources/worker_pool_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 66 | 'scheduler/delay_based_time_source_unittest.cc', |
| 67 | 'scheduler/frame_rate_controller_unittest.cc', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 68 | 'scheduler/rolling_time_delta_history_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 69 | 'scheduler/scheduler_state_machine_unittest.cc', |
| 70 | 'scheduler/scheduler_unittest.cc', |
| 71 | 'scheduler/texture_uploader_unittest.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 72 | 'test/fake_web_graphics_context_3d_unittest.cc', |
| 73 | 'trees/damage_tracker_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 74 | 'trees/layer_sorter_unittest.cc', |
| 75 | 'trees/layer_tree_host_common_unittest.cc', |
| 76 | 'trees/layer_tree_host_impl_unittest.cc', |
| 77 | 'trees/layer_tree_host_pixeltest_filters.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 78 | 'trees/layer_tree_host_pixeltest_masks.cc', |
| 79 | 'trees/layer_tree_host_pixeltest_on_demand_raster.cc', |
Torne (Richard Coles) | b2df76e | 2013-05-13 16:52:09 +0100 | [diff] [blame] | 80 | 'trees/layer_tree_host_pixeltest_readback.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 81 | 'trees/layer_tree_host_unittest_animation.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 82 | 'trees/layer_tree_host_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 83 | 'trees/layer_tree_host_unittest_context.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 84 | 'trees/layer_tree_host_unittest_damage.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 85 | 'trees/layer_tree_host_unittest_delegated.cc', |
| 86 | 'trees/layer_tree_host_unittest_occlusion.cc', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 87 | 'trees/layer_tree_host_unittest_picture.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 88 | 'trees/layer_tree_host_unittest_scroll.cc', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 89 | 'trees/layer_tree_host_unittest_video.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 90 | 'trees/occlusion_tracker_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 91 | 'trees/quad_culler_unittest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 92 | 'trees/tree_synchronizer_unittest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 93 | ], |
| 94 | 'cc_tests_support_files': [ |
| 95 | 'test/animation_test_common.cc', |
| 96 | 'test/animation_test_common.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 97 | 'test/fake_content_layer.cc', |
| 98 | 'test/fake_content_layer.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 99 | 'test/fake_content_layer_client.cc', |
| 100 | 'test/fake_content_layer_client.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 101 | 'test/fake_content_layer_impl.cc', |
| 102 | 'test/fake_content_layer_impl.h', |
| 103 | 'test/fake_context_provider.cc', |
| 104 | 'test/fake_context_provider.h', |
| 105 | 'test/fake_delegated_renderer_layer.cc', |
| 106 | 'test/fake_delegated_renderer_layer.h', |
| 107 | 'test/fake_delegated_renderer_layer_impl.cc', |
| 108 | 'test/fake_delegated_renderer_layer_impl.h', |
| 109 | 'test/fake_impl_proxy.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 110 | 'test/fake_layer_tree_host_client.cc', |
| 111 | 'test/fake_layer_tree_host_client.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 112 | 'test/fake_layer_tree_host_impl.cc', |
| 113 | 'test/fake_layer_tree_host_impl_client.cc', |
| 114 | 'test/fake_layer_tree_host_impl_client.h', |
| 115 | 'test/fake_layer_tree_host_impl.h', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 116 | 'test/fake_picture_layer.cc', |
| 117 | 'test/fake_picture_layer.h', |
| 118 | 'test/fake_picture_layer_impl.cc', |
| 119 | 'test/fake_picture_layer_impl.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 120 | 'test/fake_picture_layer_tiling_client.cc', |
| 121 | 'test/fake_picture_layer_tiling_client.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 122 | 'test/fake_picture_pile_impl.cc', |
| 123 | 'test/fake_picture_pile_impl.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 124 | 'test/fake_proxy.cc', |
| 125 | 'test/fake_proxy.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 126 | 'test/fake_rendering_stats_instrumentation.h', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 127 | 'test/fake_scrollbar.cc', |
| 128 | 'test/fake_scrollbar.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 129 | 'test/fake_scrollbar_layer.cc', |
| 130 | 'test/fake_scrollbar_layer.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 131 | 'test/fake_tile_manager.cc', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 132 | 'test/fake_tile_manager.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 133 | 'test/fake_tile_manager_client.h', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 134 | 'test/fake_tile_manager_client.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 135 | 'test/fake_output_surface.cc', |
| 136 | 'test/fake_output_surface.h', |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 137 | 'test/fake_output_surface_client.cc', |
| 138 | 'test/fake_output_surface_client.h', |
Torne (Richard Coles) | a36e592 | 2013-08-05 13:57:33 +0100 | [diff] [blame] | 139 | 'test/fake_scoped_ui_resource.cc', |
| 140 | 'test/fake_scoped_ui_resource.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 141 | 'test/fake_video_frame_provider.cc', |
| 142 | 'test/fake_video_frame_provider.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 143 | 'test/geometry_test_utils.cc', |
| 144 | 'test/geometry_test_utils.h', |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 145 | 'test/impl_side_painting_settings.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 146 | 'test/layer_test_common.cc', |
| 147 | 'test/layer_test_common.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 148 | 'test/layer_tree_pixel_test.cc', |
| 149 | 'test/layer_tree_pixel_test.h', |
| 150 | 'test/layer_tree_test.cc', |
| 151 | 'test/layer_tree_test.h', |
| 152 | 'test/layer_tree_json_parser.cc', |
| 153 | 'test/layer_tree_json_parser.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 154 | 'test/mock_quad_culler.cc', |
| 155 | 'test/mock_quad_culler.h', |
| 156 | 'test/occlusion_tracker_test_common.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 157 | 'test/paths.cc', |
| 158 | 'test/paths.h', |
| 159 | 'test/pixel_test.cc', |
| 160 | 'test/pixel_test.h', |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 161 | 'test/pixel_test_output_surface.cc', |
| 162 | 'test/pixel_test_output_surface.h', |
| 163 | 'test/pixel_test_software_output_device.cc', |
| 164 | 'test/pixel_test_software_output_device.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 165 | 'test/render_pass_test_common.cc', |
| 166 | 'test/render_pass_test_common.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 167 | 'test/render_pass_test_utils.cc', |
| 168 | 'test/render_pass_test_utils.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 169 | 'test/scheduler_test_common.cc', |
| 170 | 'test/scheduler_test_common.h', |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 171 | 'test/solid_color_content_layer_client.h', |
| 172 | 'test/solid_color_content_layer_client.cc', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 173 | 'test/skia_common.cc', |
| 174 | 'test/skia_common.h', |
Ben Murdoch | bb1529c | 2013-08-08 10:24:53 +0100 | [diff] [blame^] | 175 | 'test/test_tile_priorities.cc', |
| 176 | 'test/test_tile_priorities.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 177 | 'test/test_web_graphics_context_3d.cc', |
| 178 | 'test/test_web_graphics_context_3d.h', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 179 | 'test/tiled_layer_test_common.cc', |
| 180 | 'test/tiled_layer_test_common.h', |
| 181 | ], |
| 182 | }, |
| 183 | 'targets': [ |
| 184 | { |
| 185 | 'target_name': 'cc_unittests', |
| 186 | 'type': '<(gtest_target_type)', |
| 187 | 'dependencies': [ |
| 188 | '../base/base.gyp:test_support_base', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 189 | '../gpu/gpu.gyp:gpu', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 190 | '../media/media.gyp:media', |
| 191 | '../skia/skia.gyp:skia', |
| 192 | '../testing/gmock.gyp:gmock', |
| 193 | '../testing/gtest.gyp:gtest', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 194 | '../ui/ui.gyp:ui', |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 195 | '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 196 | 'cc.gyp:cc', |
| 197 | 'cc_test_support', |
| 198 | 'cc_test_utils', |
| 199 | ], |
| 200 | 'sources': [ |
| 201 | 'test/run_all_unittests.cc', |
| 202 | 'test/cc_test_suite.cc', |
| 203 | '<@(cc_unit_tests_source_files)', |
| 204 | ], |
| 205 | 'include_dirs': [ |
| 206 | 'test', |
| 207 | '.', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 208 | ], |
| 209 | 'conditions': [ |
Ben Murdoch | 558790d | 2013-07-30 15:19:42 +0100 | [diff] [blame] | 210 | ['OS == "android" and gtest_target_type == "shared_library"', |
| 211 | { |
| 212 | 'dependencies': [ |
| 213 | '../testing/android/native_test.gyp:native_test_native_code', |
| 214 | ], |
| 215 | } |
| 216 | ], |
| 217 | [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', |
| 218 | { |
| 219 | 'conditions': [ |
| 220 | [ 'linux_use_tcmalloc==1', |
| 221 | { |
| 222 | 'dependencies': [ |
| 223 | '../base/allocator/allocator.gyp:allocator', |
| 224 | ], |
| 225 | } |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 226 | ], |
Ben Murdoch | 558790d | 2013-07-30 15:19:42 +0100 | [diff] [blame] | 227 | ], |
| 228 | } |
| 229 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 230 | ], |
| 231 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 232 | 'msvs_disabled_warnings': [ 4267, ], |
| 233 | }, |
| 234 | { |
| 235 | 'target_name': 'cc_perftests', |
| 236 | 'type': '<(gtest_target_type)', |
| 237 | 'dependencies': [ |
| 238 | '../base/base.gyp:test_support_base', |
| 239 | '../media/media.gyp:media', |
| 240 | '../skia/skia.gyp:skia', |
| 241 | '../testing/gmock.gyp:gmock', |
| 242 | '../testing/gtest.gyp:gtest', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 243 | '../ui/ui.gyp:ui', |
| 244 | 'cc.gyp:cc', |
| 245 | 'cc_test_support', |
| 246 | ], |
| 247 | 'sources': [ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 248 | 'resources/raster_worker_pool_perftest.cc', |
Torne (Richard Coles) | a36e592 | 2013-08-05 13:57:33 +0100 | [diff] [blame] | 249 | 'resources/tile_manager_perftest.cc', |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 250 | 'resources/worker_pool_perftest.cc', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 251 | 'test/cc_test_suite.cc', |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 252 | 'test/run_all_unittests.cc', |
| 253 | 'trees/layer_tree_host_perftest.cc', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 254 | ], |
| 255 | 'include_dirs': [ |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 256 | 'test', |
| 257 | '.', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 258 | ], |
| 259 | 'conditions': [ |
Ben Murdoch | 558790d | 2013-07-30 15:19:42 +0100 | [diff] [blame] | 260 | ['OS == "android" and gtest_target_type == "shared_library"', |
| 261 | { |
| 262 | 'dependencies': [ |
| 263 | '../testing/android/native_test.gyp:native_test_native_code', |
| 264 | ], |
| 265 | } |
| 266 | ], |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 267 | # See http://crbug.com/162998#c4 for why this is needed. |
Ben Murdoch | 558790d | 2013-07-30 15:19:42 +0100 | [diff] [blame] | 268 | ['OS=="linux" and linux_use_tcmalloc==1', |
| 269 | { |
| 270 | 'dependencies': [ |
| 271 | '../base/allocator/allocator.gyp:allocator', |
| 272 | ], |
| 273 | } |
| 274 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 275 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 276 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 277 | 'msvs_disabled_warnings': [ 4267, ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 278 | }, |
| 279 | { |
| 280 | 'target_name': 'cc_test_support', |
| 281 | 'type': 'static_library', |
| 282 | 'include_dirs': [ |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 283 | 'test', |
| 284 | '.', |
| 285 | '..', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 286 | ], |
| 287 | 'dependencies': [ |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 288 | '../skia/skia.gyp:skia', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 289 | '../testing/gmock.gyp:gmock', |
| 290 | '../testing/gtest.gyp:gtest', |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 291 | '../third_party/WebKit/public/blink.gyp:blink_minimal', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 292 | '../third_party/mesa/mesa.gyp:osmesa', |
| 293 | '../ui/gl/gl.gyp:gl', |
| 294 | '../ui/ui.gyp:ui', |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 295 | ], |
| 296 | 'sources': [ |
| 297 | '<@(cc_tests_support_files)', |
| 298 | ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 299 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 300 | 'msvs_disabled_warnings': [ 4267, ], |
| 301 | }, |
| 302 | { |
| 303 | 'target_name': 'cc_test_utils', |
| 304 | 'type': 'static_library', |
| 305 | 'include_dirs': [ |
| 306 | '..' |
| 307 | ], |
| 308 | 'sources': [ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 309 | 'test/pixel_comparator.cc', |
| 310 | 'test/pixel_comparator.h', |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 311 | 'test/pixel_test_utils.cc', |
| 312 | 'test/pixel_test_utils.h', |
| 313 | ], |
| 314 | 'dependencies': [ |
| 315 | '../skia/skia.gyp:skia', |
| 316 | '../ui/ui.gyp:ui', # for png_codec |
| 317 | ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 318 | }, |
| 319 | ], |
| 320 | 'conditions': [ |
| 321 | # Special target to wrap a gtest_target_type==shared_library |
| 322 | # cc_unittests into an android apk for execution. |
Ben Murdoch | 558790d | 2013-07-30 15:19:42 +0100 | [diff] [blame] | 323 | ['OS == "android" and gtest_target_type == "shared_library"', |
| 324 | { |
| 325 | 'targets': [ |
| 326 | { |
| 327 | 'target_name': 'cc_unittests_apk', |
| 328 | 'type': 'none', |
| 329 | 'dependencies': [ |
| 330 | 'cc_unittests', |
| 331 | ], |
| 332 | 'variables': { |
| 333 | 'test_suite_name': 'cc_unittests', |
| 334 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unittests<(SHARED_LIB_SUFFIX)', |
| 335 | }, |
| 336 | 'includes': [ '../build/apk_test.gypi' ], |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 337 | }, |
Ben Murdoch | 558790d | 2013-07-30 15:19:42 +0100 | [diff] [blame] | 338 | { |
| 339 | 'target_name': 'cc_perftests_apk', |
| 340 | 'type': 'none', |
| 341 | 'dependencies': [ |
| 342 | 'cc_perftests', |
| 343 | ], |
| 344 | 'variables': { |
| 345 | 'test_suite_name': 'cc_perftests', |
| 346 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_perftests<(SHARED_LIB_SUFFIX)', |
| 347 | }, |
| 348 | 'includes': [ '../build/apk_test.gypi' ], |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 349 | }, |
Ben Murdoch | 558790d | 2013-07-30 15:19:42 +0100 | [diff] [blame] | 350 | ], |
| 351 | } |
| 352 | ] |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 353 | ], |
| 354 | } |