Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: ui/gfx/compositor/compositor.gyp

Issue 8240006: Use a mocked compositor for unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ui/gfx/test/gfx_test_utils x4 Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'target_defaults': { 9 'target_defaults': {
10 'sources/': [ 10 'sources/': [
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 }, 73 },
74 }], 74 }],
75 ['OS == "win" and views_compositor == 0', { 75 ['OS == "win" and views_compositor == 0', {
76 'sources/': [ 76 'sources/': [
77 ['exclude', '^compositor_win.cc'], 77 ['exclude', '^compositor_win.cc'],
78 ], 78 ],
79 }], 79 }],
80 ], 80 ],
81 }, 81 },
82 { 82 {
83 'target_name': 'test_compositor',
84 'type': 'static_library',
85 'dependencies': [
86 '<(DEPTH)/base/base.gyp:base',
87 '<(DEPTH)/skia/skia.gyp:skia',
88 '<(DEPTH)/testing/gtest.gyp:gtest',
89 ],
90 'sources': [
91 'compositor.cc',
92 'compositor.h',
93 'layer.cc',
94 'layer.h',
95 'layer_animator.cc',
96 'layer_animator.h',
97 'layer_animator_delegate.h',
98 'test_compositor.cc',
99 'test_compositor.h',
100 'test_texture.cc',
101 'test_texture.h',
102 '../test/gfx_test_utils.cc',
103 '../test/gfx_test_utils.h',
104 ],
105 'conditions': [
106 ['views_compositor!=1', {
107 'sources!': [
108 'compositor.cc',
109 'compositor.h',
110 'layer.cc',
111 'layer.h',
112 'layer_animator.cc',
113 'layer_animator.h',
114 'layer_animator_delegate.h',
115 'test_compositor.cc',
116 'test_compositor.h',
117 'test_texture.cc',
118 'test_texture.h',
119 ],
120 }],
121 ],
122 },
123 {
83 'target_name': 'compositor_unittests', 124 'target_name': 'compositor_unittests',
84 'type': 'executable', 125 'type': 'executable',
85 'dependencies': [ 126 'dependencies': [
86 '<(DEPTH)/base/base.gyp:base', 127 '<(DEPTH)/base/base.gyp:base',
87 '<(DEPTH)/base/base.gyp:test_support_base', 128 '<(DEPTH)/base/base.gyp:test_support_base',
88 '<(DEPTH)/skia/skia.gyp:skia', 129 '<(DEPTH)/skia/skia.gyp:skia',
89 '<(DEPTH)/testing/gtest.gyp:gtest', 130 '<(DEPTH)/testing/gtest.gyp:gtest',
90 '<(DEPTH)/ui/gfx/gl/gl.gyp:gl', 131 '<(DEPTH)/ui/gfx/gl/gl.gyp:gl',
91 '<(DEPTH)/ui/ui.gyp:gfx_resources', 132 '<(DEPTH)/ui/ui.gyp:gfx_resources',
92 '<(DEPTH)/ui/ui.gyp:ui', 133 '<(DEPTH)/ui/ui.gyp:ui',
93 '<(DEPTH)/ui/ui.gyp:ui_resources', 134 '<(DEPTH)/ui/ui.gyp:ui_resources',
94 'compositor', 135 'compositor',
136 'test_compositor',
95 ], 137 ],
96 'sources': [ 138 'sources': [
97 'layer_unittest.cc', 139 'layer_unittest.cc',
98 'run_all_unittests.cc', 140 'run_all_unittests.cc',
99 'test_compositor.cc',
100 'test_compositor.h',
101 'test_compositor_host.h', 141 'test_compositor_host.h',
102 'test_compositor_host_linux.cc', 142 'test_compositor_host_linux.cc',
103 'test_compositor_host_win.cc', 143 'test_compositor_host_win.cc',
104 'test_suite.cc', 144 'test_suite.cc',
105 'test_suite.h', 145 'test_suite.h',
106 'test_texture.cc',
107 'test_texture.h',
108 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc', 146 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc',
109 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc', 147 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc',
110 ], 148 ],
111 'conditions': [ 149 'conditions': [
112 # osmesa GL implementation is used on linux. 150 # osmesa GL implementation is used on linux.
113 ['OS=="linux"', { 151 ['OS=="linux"', {
114 'dependencies': [ 152 'dependencies': [
115 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa', 153 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa',
116 ], 154 ],
117 }], 155 }],
118 ['OS!="mac"', { 156 ['OS!="mac"', {
119 'dependencies': [ 157 'dependencies': [
120 '<(DEPTH)/chrome/chrome.gyp:packed_resources', 158 '<(DEPTH)/chrome/chrome.gyp:packed_resources',
121 ], 159 ],
122 }], 160 }],
123 ], 161 ],
124 }, 162 },
125 ], 163 ],
126 } 164 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698