| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 0, | 7 'chromium_code': 0, |
| 8 'use_libcc_for_compositor%': 0, | 8 'use_libcc_for_compositor%': 0, |
| 9 'cc_tests_source_files': [ | 9 'cc_tests_source_files': [ |
| 10 'hash_pair_unittest.cc', | 10 'hash_pair_unittest.cc', |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 'test/FakeWebGraphicsContext3D.h', | 79 'test/FakeWebGraphicsContext3D.h', |
| 80 'test/FakeWebScrollbarThemeGeometry.h', | 80 'test/FakeWebScrollbarThemeGeometry.h', |
| 81 'test/MockCCQuadCuller.cpp', | 81 'test/MockCCQuadCuller.cpp', |
| 82 'test/MockCCQuadCuller.h', | 82 'test/MockCCQuadCuller.h', |
| 83 'test/WebCompositorInitializer.h', | 83 'test/WebCompositorInitializer.h', |
| 84 ], | 84 ], |
| 85 }, | 85 }, |
| 86 'targets': [ | 86 'targets': [ |
| 87 { | 87 { |
| 88 'target_name': 'cc_unittests', | 88 'target_name': 'cc_unittests', |
| 89 'type': 'executable', | 89 'type': '<(gtest_target_type)', |
| 90 'dependencies': [ | 90 'dependencies': [ |
| 91 '../base/base.gyp:test_support_base', | 91 '../base/base.gyp:test_support_base', |
| 92 '../testing/gtest.gyp:gtest', | 92 '../testing/gtest.gyp:gtest', |
| 93 '../testing/gmock.gyp:gmock', | 93 '../testing/gmock.gyp:gmock', |
| 94 ], | 94 ], |
| 95 'sources': [ | 95 'sources': [ |
| 96 'test/run_all_unittests.cc', | 96 'test/run_all_unittests.cc', |
| 97 ], | 97 ], |
| 98 'conditions': [ | 98 'conditions': [ |
| 99 ['use_libcc_for_compositor==1', { | 99 ['use_libcc_for_compositor==1', { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 110 'include_dirs': [ | 110 'include_dirs': [ |
| 111 'stubs', | 111 'stubs', |
| 112 'test', | 112 'test', |
| 113 '.', | 113 '.', |
| 114 '../third_party/WebKit/Source/Platform/chromium', | 114 '../third_party/WebKit/Source/Platform/chromium', |
| 115 ], | 115 ], |
| 116 'sources': [ | 116 'sources': [ |
| 117 '<@(cc_tests_source_files)', | 117 '<@(cc_tests_source_files)', |
| 118 ], | 118 ], |
| 119 }], | 119 }], |
| 120 ['OS == "android" and gtest_target_type == "shared_library"', { |
| 121 'dependencies': [ |
| 122 '../testing/android/native_test.gyp:native_test_native_code', |
| 123 ], |
| 124 }], |
| 120 ], | 125 ], |
| 121 }, | 126 }, |
| 122 ], | 127 ], |
| 123 'conditions': [ | 128 'conditions': [ |
| 129 # Special target to wrap a gtest_target_type==shared_library |
| 130 # cc_unittests into an android apk for execution. |
| 131 ['OS == "android" and gtest_target_type == "shared_library"', { |
| 132 'targets': [ |
| 133 { |
| 134 'target_name': 'cc_unittests_apk', |
| 135 'type': 'none', |
| 136 'dependencies': [ |
| 137 'cc_unittests', |
| 138 ], |
| 139 'variables': { |
| 140 'test_suite_name': 'cc_unittests', |
| 141 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unitte
sts<(SHARED_LIB_SUFFIX)', |
| 142 }, |
| 143 'includes': [ '../build/apk_test.gypi' ], |
| 144 }, |
| 145 ], |
| 146 }], |
| 124 ['use_libcc_for_compositor==1', { | 147 ['use_libcc_for_compositor==1', { |
| 125 'targets': [ | 148 'targets': [ |
| 126 { | 149 { |
| 127 'target_name': 'cc_test_support', | 150 'target_name': 'cc_test_support', |
| 128 'type': 'static_library', | 151 'type': 'static_library', |
| 129 'defines': [ | 152 'defines': [ |
| 130 'WTF_USE_ACCELERATED_COMPOSITING=1', | 153 'WTF_USE_ACCELERATED_COMPOSITING=1', |
| 131 ], | 154 ], |
| 132 'include_dirs': [ | 155 'include_dirs': [ |
| 133 'stubs', | 156 'stubs', |
| (...skipping 17 matching lines...) Expand all Loading... |
| 151 '<@(cc_tests_support_files)', | 174 '<@(cc_tests_support_files)', |
| 152 'test/test_webkit_platform.cc', | 175 'test/test_webkit_platform.cc', |
| 153 'test/test_webkit_platform.h', | 176 'test/test_webkit_platform.h', |
| 154 ], | 177 ], |
| 155 }, | 178 }, |
| 156 ], | 179 ], |
| 157 }], | 180 }], |
| 158 ], | 181 ], |
| 159 } | 182 } |
| 160 | 183 |
| OLD | NEW |