1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../build/common.gypi',
],
'target_defaults': {
'include_dirs': [
'..',
'../..',
'../../<(gtestdir)',
'../../<(nacldir)',
],
'defines': [
],
'conditions': [
['OS == "win"',
{
'include_dirs': [
'$(DXSDK_DIR)/Include',
],
}
],
['OS == "mac" or OS == "linux"',
{
'include_dirs': [
'../../<(glewdir)/include',
'../../<(cgdir)/include',
],
},
],
],
},
'targets': [
{
'target_name': 'command_buffer_common',
'type': 'static_library',
'dependencies': [
'../../native_client/src/shared/imc/imc.gyp:google_nacl_imc',
'../../native_client/src/shared/imc/imc.gyp:libgoogle_nacl_imc_c',
'../../native_client/src/shared/platform/platform.gyp:platform',
'../../native_client/src/trusted/desc/desc.gyp:nrd_xfer',
'../../native_client/src/trusted/service_runtime/service_runtime.gyp:gio',
],
'sources': [
'common/cross/bitfield_helpers.h',
'common/cross/buffer_sync_api.cc',
'common/cross/buffer_sync_api.h',
'common/cross/cmd_buffer_format.h',
'common/cross/gapi_interface.h',
'common/cross/logging.h',
'common/cross/mocks.h',
'common/cross/resource.cc',
'common/cross/resource.h',
'common/cross/rpc.h',
'common/cross/rpc_imc.cc',
'common/cross/rpc_imc.h',
'common/cross/types.h',
],
},
{
'target_name': 'command_buffer_client',
'type': 'static_library',
'dependencies': [
'command_buffer_common',
],
'sources': [
'client/cross/buffer_sync_proxy.cc',
'client/cross/buffer_sync_proxy.h',
'client/cross/cmd_buffer_helper.cc',
'client/cross/cmd_buffer_helper.h',
'client/cross/effect_helper.cc',
'client/cross/effect_helper.h',
'client/cross/fenced_allocator.cc',
'client/cross/fenced_allocator.h',
'client/cross/id_allocator.cc',
'client/cross/id_allocator.h',
],
},
{
'target_name': 'command_buffer_service',
'type': 'static_library',
'dependencies': [
'command_buffer_common',
],
'sources': [
'service/cross/buffer_rpc.cc',
'service/cross/buffer_rpc.h',
'service/cross/cmd_buffer_engine.cc',
'service/cross/cmd_buffer_engine.h',
'service/cross/cmd_parser.cc',
'service/cross/cmd_parser.h',
'service/cross/effect_utils.cc',
'service/cross/effect_utils.h',
'service/cross/gapi_decoder.cc',
'service/cross/gapi_decoder.h',
'service/cross/mocks.h',
'service/cross/precompile.cc',
'service/cross/precompile.h',
'service/cross/resource.cc',
'service/cross/resource.h',
'service/cross/texture_utils.cc',
'service/cross/texture_utils.h',
],
'conditions': [
['OS == "win"',
{
'sources': [
'service/win/d3d9/d3d9_utils.h',
'service/win/d3d9/effect_d3d9.cc',
'service/win/d3d9/effect_d3d9.h',
'service/win/d3d9/gapi_d3d9.cc',
'service/win/d3d9/gapi_d3d9.h',
'service/win/d3d9/geometry_d3d9.cc',
'service/win/d3d9/geometry_d3d9.h',
'service/win/d3d9/render_surface_d3d9.cc',
'service/win/d3d9/render_surface_d3d9.h',
'service/win/d3d9/sampler_d3d9.cc',
'service/win/d3d9/sampler_d3d9.h',
'service/win/d3d9/states_d3d9.cc',
'service/win/d3d9/texture_d3d9.cc',
'service/win/d3d9/texture_d3d9.h',
], # 'sources'
'direct_dependent_settings': {
'include_dirs': [
'$(DXSDK_DIR)/Include',
],
}, # 'direct_dependent_settings'
},
],
['OS == "mac" or OS == "linux"',
{
'sources': [
'service/cross/gl/effect_gl.cc',
'service/cross/gl/effect_gl.h',
'service/cross/gl/gapi_gl.cc',
'service/cross/gl/gapi_gl.h',
'service/cross/gl/geometry_gl.cc',
'service/cross/gl/geometry_gl.h',
'service/cross/gl/gl_utils.h',
'service/cross/gl/sampler_gl.cc',
'service/cross/gl/sampler_gl.h',
'service/cross/gl/states_gl.cc',
'service/cross/gl/texture_gl.cc',
'service/cross/gl/texture_gl.h',
], # 'sources'
},
],
['OS == "linux"',
{
'sources': [
'service/linux/x_utils.cc',
'service/linux/x_utils.h',
],
},
],
], # 'conditions'
},
],
}
|