[email protected] | e844ae2 | 2012-01-14 03:36:26 | [diff] [blame] | 1 | # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 96449d2c | 2009-11-25 00:01:32 | [diff] [blame] | 2 | # 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] | 9842933 | 2011-01-19 22:01:54 | [diff] [blame] | 8 | # 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] | 9842933 | 2011-01-19 22:01:54 | [diff] [blame] | 12 | 'command_buffer/client/gles2_c_lib.cc', |
| 13 | 'command_buffer/client/gles2_c_lib_autogen.h', |
[email protected] | 3c0edf1 | 2012-01-19 06:35:21 | [diff] [blame] | 14 | 'command_buffer/client/gles2_c_lib_export.h', |
[email protected] | d7f0642 | 2011-02-05 00:24:58 | [diff] [blame] | 15 | 'command_buffer/client/gles2_lib.h', |
| 16 | 'command_buffer/client/gles2_lib.cc', |
[email protected] | 9842933 | 2011-01-19 22:01:54 | [diff] [blame] | 17 | ], |
[email protected] | d7f0642 | 2011-02-05 00:24:58 | [diff] [blame] | 18 | # 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] | dd25504 | 2012-03-05 20:14:17 | [diff] [blame] | 22 | 'command_buffer/client/gles2_impl_export.h', |
[email protected] | d7f0642 | 2011-02-05 00:24:58 | [diff] [blame] | 23 | 'command_buffer/client/gles2_implementation_autogen.h', |
| 24 | 'command_buffer/client/gles2_implementation.cc', |
| 25 | 'command_buffer/client/gles2_implementation.h', |
[email protected] | 9a14ae61 | 2011-08-08 17:51:46 | [diff] [blame] | 26 | 'command_buffer/client/program_info_manager.cc', |
| 27 | 'command_buffer/client/program_info_manager.h', |
[email protected] | af65aab | 2012-03-28 19:04:57 | [diff] [blame] | 28 | 'command_buffer/client/share_group.cc', |
| 29 | 'command_buffer/client/share_group.h', |
[email protected] | d7f0642 | 2011-02-05 00:24:58 | [diff] [blame] | 30 | ] |
[email protected] | 96449d2c | 2009-11-25 00:01:32 | [diff] [blame] | 31 | }, |
[email protected] | dd25504 | 2012-03-05 20:14:17 | [diff] [blame] | 32 | 'includes': [ |
| 33 | 'gpu_common.gypi', |
| 34 | ], |
| 35 | 'conditions': [ |
[email protected] | b67d228 | 2012-03-07 01:29:41 | [diff] [blame] | 36 | ['component=="static_library"', { |
[email protected] | dd25504 | 2012-03-05 20:14:17 | [diff] [blame] | 37 | '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] | ed321c6 | 2011-04-26 21:54:28 | [diff] [blame] | 103 | ], |
[email protected] | 96449d2c | 2009-11-25 00:01:32 | [diff] [blame] | 104 | }, |
[email protected] | dd25504 | 2012-03-05 20:14:17 | [diff] [blame] | 105 | { # 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] | bed9927 | 2012-02-17 00:36:08 | [diff] [blame] | 160 | ], |
[email protected] | dd25504 | 2012-03-05 20:14:17 | [diff] [blame] | 161 | }], |
[email protected] | 7477ea6f | 2009-12-22 23:28:15 | [diff] [blame] | 162 | ], |
[email protected] | 96449d2c | 2009-11-25 00:01:32 | [diff] [blame] | 163 | } |