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

Side by Side Diff: gyp/gpu.gyp

Issue 1845473004: Revert of Move SkGLContext and some GrGLInterface implementations to skgputest module (Closed) Base URL: https://chromium.googlesource.com/skia.git@debugobject
Patch Set: Created 4 years, 8 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
« no previous file with comments | « gyp/flags.gyp ('k') | gyp/gpu.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 Google Inc. 1 # Copyright 2015 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 # GYP for building gpu 5 # GYP for building gpu
6 { 6 {
7 'target_defaults': { 7 'target_defaults': {
8 'conditions': [ 8 'conditions': [
9 ['skia_os != "win"', { 9 ['skia_os != "win"', {
10 'sources/': [ ['exclude', '_win.(h|cpp)$'], 10 'sources/': [ ['exclude', '_win.(h|cpp)$'],
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 'include_dirs': [ 95 'include_dirs': [
96 '../include/gpu', 96 '../include/gpu',
97 '../include/private', 97 '../include/private',
98 '../src/core', 98 '../src/core',
99 '../src/gpu', 99 '../src/gpu',
100 '../src/image/', 100 '../src/image/',
101 ], 101 ],
102 'sources': [ 102 'sources': [
103 '<@(skgpu_sources)', 103 '<@(skgpu_sources)',
104 '<@(skgpu_native_gl_sources)', 104 '<@(skgpu_native_gl_sources)',
105 '<@(skgpu_angle_gl_sources)',
106 '<@(skgpu_command_buffer_gl_sources)',
107 '<@(skgpu_mesa_gl_sources)',
108 '<@(skgpu_debug_gl_sources)',
109 '<@(skgpu_null_gl_sources)',
105 '<@(skgpu_vk_sources)', 110 '<@(skgpu_vk_sources)',
106 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the bui ld). 111 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the bui ld).
107 ], 112 ],
108 'conditions': [ 113 'conditions': [
109 [ 'skia_gpu_extra_dependency_path', { 114 [ 'skia_gpu_extra_dependency_path', {
110 'dependencies' : [ 115 'dependencies' : [
111 '<(skia_gpu_extra_dependency_path):*', 116 '<(skia_gpu_extra_dependency_path):*',
112 ], 117 ],
113 'export_dependent_settings': [ 118 'export_dependent_settings': [
114 '<(skia_gpu_extra_dependency_path):*', 119 '<(skia_gpu_extra_dependency_path):*',
(...skipping 24 matching lines...) Expand all
139 }], 144 }],
140 [ '(skia_os == "linux" or skia_os == "chromeos") and skia_egl == 0', { 145 [ '(skia_os == "linux" or skia_os == "chromeos") and skia_egl == 0', {
141 'link_settings': { 146 'link_settings': {
142 'libraries': [ 147 'libraries': [
143 '-lGL', 148 '-lGL',
144 '-lGLU', 149 '-lGLU',
145 '-lX11', 150 '-lX11',
146 ], 151 ],
147 }, 152 },
148 }], 153 }],
154 [ 'skia_egl == 1', {
155 'defines': [
156 'SK_EGL=1',
157 ],
158 }],
159 [ 'skia_egl == 0', {
160 'defines': [
161 'SK_EGL=0',
162 ],
163 }],
164 [ 'skia_mesa and skia_os == "linux"', {
165 'link_settings': {
166 'libraries': [
167 '-lOSMesa',
168 ],
169 },
170 }],
149 [ 'skia_os == "mac"', { 171 [ 'skia_os == "mac"', {
150 'link_settings': { 172 'link_settings': {
151 'libraries': [ 173 'libraries': [
152 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', 174 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
153 ], 175 ],
154 }, 176 },
155 'sources!': [ 177 'sources!': [
156 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', 178 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
157 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', 179 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
158 ], 180 ],
159 }], 181 }],
182 [ 'not skia_mesa', {
183 'sources!': [
184 '../src/gpu/gl/mesa/SkMesaGLContext.cpp',
185 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
186 ],
187 }],
188 [ 'skia_mesa and skia_os == "mac"', {
189 'link_settings': {
190 'libraries': [
191 '/opt/X11/lib/libOSMesa.dylib',
192 ],
193 },
194 'include_dirs': [
195 '/opt/X11/include/',
196 ],
197 }],
160 [ 'skia_os in ["win", "ios"]', { 198 [ 'skia_os in ["win", "ios"]', {
161 'sources!': [ 199 'sources!': [
162 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', 200 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
163 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', 201 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
164 ], 202 ],
165 }], 203 }],
204 [ 'skia_angle', {
205 'dependencies': [
206 'angle.gyp:*',
207 ],
208 'export_dependent_settings': [
209 'angle.gyp:*',
210 ],
211 }, { # not skia_angle
212 'sources!': [
213 '<@(skgpu_angle_gl_sources)',
214 ],
215 }],
216 [ 'skia_command_buffer', {
217 }, { # not skia_command_buffer
218 'sources!': [
219 '<@(skgpu_command_buffer_gl_sources)',
220 ],
221 }],
166 [ 'skia_os == "android"', { 222 [ 'skia_os == "android"', {
167 'sources!': [ 223 'sources!': [
168 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', 224 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
169 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', 225 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
170 ], 226 ],
171 'defines': [ 227 'defines': [
172 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1', 228 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1',
173 ], 229 ],
174 'link_settings': { 230 'link_settings': {
175 'libraries': [ 231 'libraries': [
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 }, 280 },
225 }, { 281 }, {
226 'sources!': [ 282 'sources!': [
227 '<@(skgpu_vk_sources)', 283 '<@(skgpu_vk_sources)',
228 ], 284 ],
229 }], 285 }],
230 ], 286 ],
231 }, 287 },
232 ], 288 ],
233 } 289 }
OLDNEW
« no previous file with comments | « gyp/flags.gyp ('k') | gyp/gpu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698