blob: e87daae845a98ef857cfc61db111a37b940516cd [file] [log] [blame]
[email protected]e844ae22012-01-14 03:36:261# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]96449d2c2009-11-25 00:01:322# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'variables': {
7 'chromium_code': 1,
[email protected]98429332011-01-19 22:01:548 # These are defined here because we need to build this library twice. Once
9 # with extra parameter checking. Once with no parameter checking to be 100%
10 # OpenGL ES 2.0 compliant for the conformance tests.
11 'gles2_c_lib_source_files': [
[email protected]98429332011-01-19 22:01:5412 'command_buffer/client/gles2_c_lib.cc',
13 'command_buffer/client/gles2_c_lib_autogen.h',
[email protected]3c0edf12012-01-19 06:35:2114 'command_buffer/client/gles2_c_lib_export.h',
[email protected]d7f06422011-02-05 00:24:5815 'command_buffer/client/gles2_lib.h',
16 'command_buffer/client/gles2_lib.cc',
[email protected]98429332011-01-19 22:01:5417 ],
[email protected]d7f06422011-02-05 00:24:5818 # These are defined here because we need to build this library twice. Once
19 # with without support for client side arrays and once with for pepper and
20 # the OpenGL ES 2.0 compliant for the conformance tests.
21 'gles2_implementation_source_files': [
[email protected]dd255042012-03-05 20:14:1722 'command_buffer/client/gles2_impl_export.h',
[email protected]d7f06422011-02-05 00:24:5823 'command_buffer/client/gles2_implementation_autogen.h',
24 'command_buffer/client/gles2_implementation.cc',
25 'command_buffer/client/gles2_implementation.h',
[email protected]9a14ae612011-08-08 17:51:4626 'command_buffer/client/program_info_manager.cc',
27 'command_buffer/client/program_info_manager.h',
[email protected]af65aab2012-03-28 19:04:5728 'command_buffer/client/share_group.cc',
29 'command_buffer/client/share_group.h',
[email protected]d7f06422011-02-05 00:24:5830 ]
[email protected]96449d2c2009-11-25 00:01:3231 },
[email protected]dd255042012-03-05 20:14:1732 'includes': [
33 'gpu_common.gypi',
34 ],
35 'conditions': [
[email protected]b67d2282012-03-07 01:29:4136 ['component=="static_library"', {
[email protected]dd255042012-03-05 20:14:1737 'targets': [
38 {
39 'target_name': 'gpu',
40 'type': 'none',
41 'dependencies': [
42 'command_buffer_client',
43 'command_buffer_common',
44 'command_buffer_service',
45 'gles2_cmd_helper',
46 'gpu_ipc',
47 ],
48 'sources': [
49 'gpu_export.h',
50 ],
51 },
52 {
53 'target_name': 'command_buffer_common',
54 'type': 'static_library',
55 'includes': [
56 'command_buffer_common.gypi',
57 ],
58 'export_dependent_settings': [
59 '../base/base.gyp:base',
60 ],
61 },
62 {
63 # Library helps make GLES2 command buffers.
64 'target_name': 'gles2_cmd_helper',
65 'type': 'static_library',
66 'includes': [
67 'gles2_cmd_helper.gypi',
68 ],
69 'dependencies': [
70 'command_buffer_client',
71 ],
72 },
73 {
74 'target_name': 'command_buffer_client',
75 'type': 'static_library',
76 'includes': [
77 'command_buffer_client.gypi',
78 ],
79 'dependencies': [
80 'command_buffer_common',
81 ],
82 },
83 {
84 'target_name': 'command_buffer_service',
85 'type': 'static_library',
86 'includes': [
87 'command_buffer_service.gypi',
88 ],
89 'dependencies': [
90 'command_buffer_common',
91 ],
92 },
93 {
94 'target_name': 'gpu_ipc',
95 'type': 'static_library',
96 'includes': [
97 'gpu_ipc.gypi',
98 ],
99 'dependencies': [
100 'command_buffer_common',
101 ],
102 },
[email protected]ed321c62011-04-26 21:54:28103 ],
[email protected]96449d2c2009-11-25 00:01:32104 },
[email protected]dd255042012-03-05 20:14:17105 { # component != static_library
106 'targets': [
107 {
108 'target_name': 'gpu',
109 'type': 'shared_library',
110 'includes': [
111 'command_buffer_client.gypi',
112 'command_buffer_common.gypi',
113 'command_buffer_service.gypi',
114 'gles2_cmd_helper.gypi',
115 'gpu_ipc.gypi',
116 ],
117 'defines': [
118 'GPU_IMPLEMENTATION',
119 ],
120 'sources': [
121 'gpu_export.h',
122 ],
123 },
124 {
125 'target_name': 'command_buffer_common',
126 'type': 'none',
127 'dependencies': [
128 'gpu',
129 ],
130 },
131 {
132 # Library helps make GLES2 command buffers.
133 'target_name': 'gles2_cmd_helper',
134 'type': 'none',
135 'dependencies': [
136 'gpu',
137 ],
138 },
139 {
140 'target_name': 'command_buffer_client',
141 'type': 'none',
142 'dependencies': [
143 'gpu',
144 ],
145 },
146 {
147 'target_name': 'command_buffer_service',
148 'type': 'none',
149 'dependencies': [
150 'gpu',
151 ],
152 },
153 {
154 'target_name': 'gpu_ipc',
155 'type': 'none',
156 'dependencies': [
157 'gpu',
158 ],
159 },
[email protected]bed99272012-02-17 00:36:08160 ],
[email protected]dd255042012-03-05 20:14:17161 }],
[email protected]7477ea6f2009-12-22 23:28:15162 ],
[email protected]96449d2c2009-11-25 00:01:32163}