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

Side by Side Diff: command_buffer/command_buffer.gyp

Issue 208037: Added command buffer unit tests to gyp.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 3 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) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 'includes': [ 9 'includes': [
10 '../build/common.gypi', 10 '../build/common.gypi',
11 ], 11 ],
12 'target_defaults': { 12 'target_defaults': {
13 'include_dirs': [ 13 'include_dirs': [
14 '..', 14 '..',
15 '../..', 15 '../..',
16 '../../<(gtestdir)', 16 '../../<(gtestdir)',
17 '../../<(nacldir)', 17 '../../<(nacldir)',
18 ], 18 ],
19 'defines': [
20 ],
21 'conditions': [
22 ['OS == "win"',
23 {
24 'include_dirs': [
25 '$(DXSDK_DIR)/Include',
26 ],
27 }
28 ],
29 ['OS == "mac" or OS == "linux"',
30 {
31 'include_dirs': [
32 '../../<(glewdir)/include',
33 '../../<(cgdir)/include',
34 ],
35 },
36 ],
37 ],
38 }, 19 },
39 'targets': [ 20 'targets': [
40 { 21 {
41 'target_name': 'command_buffer_common', 22 'target_name': 'command_buffer_common',
42 'type': 'static_library', 23 'type': 'static_library',
43 'dependencies': [ 24 'dependencies': [
44 '../../native_client/src/shared/imc/imc.gyp:google_nacl_imc', 25 '../../native_client/src/shared/imc/imc.gyp:google_nacl_imc',
45 '../../native_client/src/shared/imc/imc.gyp:libgoogle_nacl_imc_c', 26 '../../native_client/src/shared/imc/imc.gyp:libgoogle_nacl_imc_c',
46 '../../native_client/src/shared/platform/platform.gyp:platform', 27 '../../native_client/src/shared/platform/platform.gyp:platform',
47 '../../native_client/src/trusted/desc/desc.gyp:nrd_xfer', 28 '../../native_client/src/trusted/desc/desc.gyp:nrd_xfer',
48 '../../native_client/src/trusted/service_runtime/service_runtime.gyp:gio ', 29 '../../native_client/src/trusted/service_runtime/service_runtime.gyp:gio ',
49 ], 30 ],
50 'sources': [ 31 'sources': [
51 'common/cross/bitfield_helpers.h', 32 'common/cross/bitfield_helpers.h',
52 'common/cross/buffer_sync_api.cc', 33 'common/cross/buffer_sync_api.cc',
53 'common/cross/buffer_sync_api.h', 34 'common/cross/buffer_sync_api.h',
54 'common/cross/cmd_buffer_format.h', 35 'common/cross/cmd_buffer_format.h',
55 'common/cross/gapi_interface.h', 36 'common/cross/gapi_interface.h',
56 'common/cross/logging.h', 37 'common/cross/logging.h',
57 'common/cross/mocks.h', 38 'common/cross/mocks.h',
58 'common/cross/resource.cc', 39 'common/cross/resource.cc',
59 'common/cross/resource.h', 40 'common/cross/resource.h',
60 'common/cross/rpc.h', 41 'common/cross/rpc.h',
61 'common/cross/rpc_imc.cc', 42 'common/cross/rpc_imc.cc',
62 'common/cross/rpc_imc.h', 43 'common/cross/rpc_imc.h',
63 'common/cross/types.h', 44 'common/cross/types.h',
64 ], 45 ],
65 }, 46 },
66 { 47 {
48 'target_name': 'command_buffer_common_test',
49 'type': 'none',
50 'direct_dependent_settings': {
51 'sources': [
52 'common/cross/bitfield_helpers_test.cc',
53 'client/cross/cmd_buffer_helper_test.cc',
54 'client/cross/fenced_allocator_test.cc',
55 'client/cross/id_allocator_test.cc',
56 ],
57 },
58 },
59 {
67 'target_name': 'command_buffer_client', 60 'target_name': 'command_buffer_client',
68 'type': 'static_library', 61 'type': 'static_library',
69 'dependencies': [ 62 'dependencies': [
70 'command_buffer_common', 63 'command_buffer_common',
71 ], 64 ],
72 'sources': [ 65 'sources': [
73 'client/cross/buffer_sync_proxy.cc', 66 'client/cross/buffer_sync_proxy.cc',
74 'client/cross/buffer_sync_proxy.h', 67 'client/cross/buffer_sync_proxy.h',
75 'client/cross/cmd_buffer_helper.cc', 68 'client/cross/cmd_buffer_helper.cc',
76 'client/cross/cmd_buffer_helper.h', 69 'client/cross/cmd_buffer_helper.h',
77 'client/cross/effect_helper.cc', 70 'client/cross/effect_helper.cc',
78 'client/cross/effect_helper.h', 71 'client/cross/effect_helper.h',
79 'client/cross/fenced_allocator.cc', 72 'client/cross/fenced_allocator.cc',
80 'client/cross/fenced_allocator.h', 73 'client/cross/fenced_allocator.h',
81 'client/cross/id_allocator.cc', 74 'client/cross/id_allocator.cc',
82 'client/cross/id_allocator.h', 75 'client/cross/id_allocator.h',
83 ], 76 ],
84 }, 77 },
85 { 78 {
79 'target_name': 'command_buffer_client_test',
80 'type': 'none',
81 'direct_dependent_settings': {
82 'sources': [
83 'client/cross/buffer_sync_proxy_test.cc',
84 'client/cross/cmd_buffer_helper_test.cc',
85 'client/cross/fenced_allocator_test.cc',
86 'client/cross/id_allocator_test.cc',
87 ],
88 },
89 },
90 {
86 'target_name': 'command_buffer_service', 91 'target_name': 'command_buffer_service',
87 'type': 'static_library', 92 'type': 'static_library',
88 'dependencies': [ 93 'dependencies': [
89 'command_buffer_common', 94 'command_buffer_common',
90 ], 95 ],
91 'sources': [ 96 'sources': [
92 'service/cross/buffer_rpc.cc', 97 'service/cross/buffer_rpc.cc',
93 'service/cross/buffer_rpc.h', 98 'service/cross/buffer_rpc.h',
94 'service/cross/cmd_buffer_engine.cc', 99 'service/cross/cmd_buffer_engine.cc',
95 'service/cross/cmd_buffer_engine.h', 100 'service/cross/cmd_buffer_engine.h',
96 'service/cross/cmd_parser.cc', 101 'service/cross/cmd_parser.cc',
97 'service/cross/cmd_parser.h', 102 'service/cross/cmd_parser.h',
98 'service/cross/effect_utils.cc', 103 'service/cross/effect_utils.cc',
99 'service/cross/effect_utils.h', 104 'service/cross/effect_utils.h',
100 'service/cross/gapi_decoder.cc', 105 'service/cross/gapi_decoder.cc',
101 'service/cross/gapi_decoder.h', 106 'service/cross/gapi_decoder.h',
102 'service/cross/mocks.h', 107 'service/cross/mocks.h',
103 'service/cross/precompile.cc', 108 'service/cross/precompile.cc',
104 'service/cross/precompile.h', 109 'service/cross/precompile.h',
105 'service/cross/resource.cc', 110 'service/cross/resource.cc',
106 'service/cross/resource.h', 111 'service/cross/resource.h',
107 'service/cross/texture_utils.cc', 112 'service/cross/texture_utils.cc',
108 'service/cross/texture_utils.h', 113 'service/cross/texture_utils.h',
109 ], 114 ],
110 'conditions': [ 115 'conditions': [
111 ['OS == "win"', 116 ['OS == "win"',
112 { 117 {
118 'msvs_settings': {
119 'VCCLCompilerTool': {
120 'ForcedIncludeFiles':
121 'command_buffer/service/cross/precompile.h',
122 },
123 },
124 },
125 ],
126 ['OS == "mac"',
127 {
128 'xcode_settings': {
129 'GCC_PREFIX_HEADER': 'command_buffer/service/cross/precompile.h',
130 },
131 },
132 ],
133 ['OS == "linux"',
134 {
135 'cflags': [
136 '-include',
137 'command_buffer/service/cross/precompile.h',
138 ],
139 },
140 ],
141 ['cb_service == "d3d9"',
142 {
143 'include_dirs': [
144 '$(DXSDK_DIR)/Include',
145 ],
113 'sources': [ 146 'sources': [
114 'service/win/d3d9/d3d9_utils.h', 147 'service/win/d3d9/d3d9_utils.h',
115 'service/win/d3d9/effect_d3d9.cc', 148 'service/win/d3d9/effect_d3d9.cc',
116 'service/win/d3d9/effect_d3d9.h', 149 'service/win/d3d9/effect_d3d9.h',
117 'service/win/d3d9/gapi_d3d9.cc', 150 'service/win/d3d9/gapi_d3d9.cc',
118 'service/win/d3d9/gapi_d3d9.h', 151 'service/win/d3d9/gapi_d3d9.h',
119 'service/win/d3d9/geometry_d3d9.cc', 152 'service/win/d3d9/geometry_d3d9.cc',
120 'service/win/d3d9/geometry_d3d9.h', 153 'service/win/d3d9/geometry_d3d9.h',
121 'service/win/d3d9/render_surface_d3d9.cc', 154 'service/win/d3d9/render_surface_d3d9.cc',
122 'service/win/d3d9/render_surface_d3d9.h', 155 'service/win/d3d9/render_surface_d3d9.h',
123 'service/win/d3d9/sampler_d3d9.cc', 156 'service/win/d3d9/sampler_d3d9.cc',
124 'service/win/d3d9/sampler_d3d9.h', 157 'service/win/d3d9/sampler_d3d9.h',
125 'service/win/d3d9/states_d3d9.cc', 158 'service/win/d3d9/states_d3d9.cc',
126 'service/win/d3d9/texture_d3d9.cc', 159 'service/win/d3d9/texture_d3d9.cc',
127 'service/win/d3d9/texture_d3d9.h', 160 'service/win/d3d9/texture_d3d9.h',
128 ], # 'sources' 161 ], # 'sources'
129 'direct_dependent_settings': { 162 'direct_dependent_settings': {
130 'include_dirs': [ 163 'include_dirs': [
131 '$(DXSDK_DIR)/Include', 164 '$(DXSDK_DIR)/Include',
132 ], 165 ],
133 }, # 'direct_dependent_settings' 166 }, # 'direct_dependent_settings'
134 }, 167 },
135 ], 168 ],
136 ['OS == "mac" or OS == "linux"', 169 ['cb_service == "gl"',
137 { 170 {
171 'include_dirs': [
172 '../../<(glewdir)/include',
173 '../../<(cgdir)/include',
174 ],
138 'sources': [ 175 'sources': [
139 'service/cross/gl/effect_gl.cc', 176 'service/cross/gl/effect_gl.cc',
140 'service/cross/gl/effect_gl.h', 177 'service/cross/gl/effect_gl.h',
141 'service/cross/gl/gapi_gl.cc', 178 'service/cross/gl/gapi_gl.cc',
142 'service/cross/gl/gapi_gl.h', 179 'service/cross/gl/gapi_gl.h',
143 'service/cross/gl/geometry_gl.cc', 180 'service/cross/gl/geometry_gl.cc',
144 'service/cross/gl/geometry_gl.h', 181 'service/cross/gl/geometry_gl.h',
145 'service/cross/gl/gl_utils.h', 182 'service/cross/gl/gl_utils.h',
146 'service/cross/gl/sampler_gl.cc', 183 'service/cross/gl/sampler_gl.cc',
147 'service/cross/gl/sampler_gl.h', 184 'service/cross/gl/sampler_gl.h',
148 'service/cross/gl/states_gl.cc', 185 'service/cross/gl/states_gl.cc',
149 'service/cross/gl/texture_gl.cc', 186 'service/cross/gl/texture_gl.cc',
150 'service/cross/gl/texture_gl.h', 187 'service/cross/gl/texture_gl.h',
151 ], # 'sources' 188 ], # 'sources'
152 }, 189 },
153 ], 190 ],
154 ['OS == "linux"', 191 ['OS == "linux"',
155 { 192 {
156 'sources': [ 193 'sources': [
157 'service/linux/x_utils.cc', 194 'service/linux/x_utils.cc',
158 'service/linux/x_utils.h', 195 'service/linux/x_utils.h',
159 ], 196 ],
160 }, 197 },
161 ], 198 ],
162 ], # 'conditions' 199 ], # 'conditions'
163 }, 200 },
164 ], 201 {
202 'target_name': 'command_buffer_service_test',
203 'type': 'none',
204 'direct_dependent_settings': {
205 'sources': [
206 'service/cross/buffer_rpc_test.cc',
207 'service/cross/cmd_buffer_engine_test.cc',
208 'service/cross/cmd_parser_test.cc',
209 'service/cross/resource_test.cc',
210 ],
211 },
212 },
213 ], # 'targets'
165 } 214 }
OLDNEW
« no previous file with comments | « command_buffer/client/cross/id_allocator_test.cc ('k') | command_buffer/service/cross/cmd_buffer_engine_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698