| 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 'CCActiveAnimationTest.cpp', | 10 'CCActiveAnimationTest.cpp', |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 ], | 66 ], |
| 67 }, | 67 }, |
| 68 'targets': [ | 68 'targets': [ |
| 69 { | 69 { |
| 70 'target_name': 'cc_unittests', | 70 'target_name': 'cc_unittests', |
| 71 'type': 'executable', | 71 'type': 'executable', |
| 72 'dependencies': [ | 72 'dependencies': [ |
| 73 '../base/base.gyp:test_support_base', | 73 '../base/base.gyp:test_support_base', |
| 74 '../testing/gtest.gyp:gtest', | 74 '../testing/gtest.gyp:gtest', |
| 75 '../testing/gmock.gyp:gmock', | 75 '../testing/gmock.gyp:gmock', |
| 76 '../webkit/support/webkit_support.gyp:webkit_support', |
| 77 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit', |
| 76 ], | 78 ], |
| 77 'sources': [ | 79 'sources': [ |
| 78 'test/run_all_unittests.cc', | 80 'test/run_all_unittests.cc', |
| 79 ], | 81 ], |
| 80 'conditions': [ | 82 'conditions': [ |
| 81 ['use_libcc_for_compositor==1 and component!="shared_library"', { | 83 ['use_libcc_for_compositor==1 and component!="shared_library"', { |
| 82 'dependencies': [ | 84 'dependencies': [ |
| 83 '../skia/skia.gyp:skia', | |
| 84 # We have to depend on WTF directly to pick up the correct defines f
or WTF headers - for instance USE_SYSTEM_MALLOC. | |
| 85 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', | 85 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', |
| 86 '../third_party/WebKit/Source/Platform/Platform.gyp/Platform.gyp:web
kit_platform', | |
| 87 '../webkit/support/webkit_support.gyp:webkit_support', | |
| 88 'cc.gyp:cc', | |
| 89 'cc_test_support', | 86 'cc_test_support', |
| 90 ], | 87 ], |
| 91 'defines': [ | 88 'defines': [ |
| 92 'USE_LIBCC_FOR_COMPOSITOR', | 89 'USE_LIBCC_FOR_COMPOSITOR', |
| 93 'WTF_USE_ACCELERATED_COMPOSITING=1', | 90 'WTF_USE_ACCELERATED_COMPOSITING=1', |
| 94 ], | 91 ], |
| 95 'include_dirs': [ | 92 'include_dirs': [ |
| 96 'stubs', | 93 'stubs', |
| 97 'test', | 94 'test', |
| 98 '.', | 95 '.', |
| 99 ], | 96 ], |
| 100 'sources': [ | 97 'sources': [ |
| 101 '<@(cc_tests_source_files)', | 98 '<@(cc_tests_source_files)', |
| 102 ], | 99 ], |
| 103 }], | 100 }], |
| 104 ], | 101 ], |
| 105 }, | 102 }, |
| 106 ], | 103 ], |
| 107 'conditions': [ | 104 'conditions': [ |
| 108 ['use_libcc_for_compositor==1 and component!="shared_library"', { | 105 ['use_libcc_for_compositor==1', { |
| 109 'targets': [ | 106 'targets': [ |
| 110 { | 107 { |
| 111 'target_name': 'cc_test_support', | 108 'target_name': 'cc_test_support', |
| 112 'type': 'static_library', | 109 'type': 'static_library', |
| 113 'defines': [ | 110 'defines': [ |
| 114 'WTF_USE_ACCELERATED_COMPOSITING=1', | 111 'WTF_USE_ACCELERATED_COMPOSITING=1', |
| 115 ], | 112 ], |
| 116 'include_dirs': [ | 113 'include_dirs': [ |
| 117 'stubs', | 114 'stubs', |
| 118 'test', | 115 'test', |
| 119 '.', | 116 '.', |
| 120 '..', | 117 '..', |
| 118 '../third_party/WebKit/Source/Platform/chromium', |
| 121 ], | 119 ], |
| 122 'dependencies': [ | 120 'dependencies': [ |
| 123 '../ui/gl/gl.gyp:gl', | 121 '../ui/gl/gl.gyp:gl', |
| 124 '../testing/gtest.gyp:gtest', | 122 '../testing/gtest.gyp:gtest', |
| 125 '../testing/gmock.gyp:gmock', | 123 '../testing/gmock.gyp:gmock', |
| 126 '../skia/skia.gyp:skia', | 124 '../skia/skia.gyp:skia', |
| 127 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', | 125 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', |
| 128 '../third_party/WebKit/Source/Platform/Platform.gyp/Platform.gyp:web
kit_platform', | 126 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit_wtf_
support', |
| 129 ], | 127 ], |
| 130 'sources': [ | 128 'sources': [ |
| 131 '<@(cc_tests_support_files)', | 129 '<@(cc_tests_support_files)', |
| 132 ], | 130 ], |
| 133 }, | 131 }, |
| 134 ], | 132 ], |
| 135 }], | 133 }], |
| 136 ], | 134 ], |
| 137 } | 135 } |
| 138 | 136 |
| OLD | NEW |