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

Side by Side Diff: gyp/gpu.gyp

Issue 1815823002: Move SkGLContext and some GrGLInterface implementations to skgputest module (Closed) Base URL: https://chromium.googlesource.com/skia.git@debugobject
Patch Set: fix windows and android? 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)',
110 '<@(skgpu_vk_sources)', 105 '<@(skgpu_vk_sources)',
111 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the bui ld). 106 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the bui ld).
112 ], 107 ],
113 'conditions': [ 108 'conditions': [
114 [ 'skia_gpu_extra_dependency_path', { 109 [ 'skia_gpu_extra_dependency_path', {
115 'dependencies' : [ 110 'dependencies' : [
116 '<(skia_gpu_extra_dependency_path):*', 111 '<(skia_gpu_extra_dependency_path):*',
117 ], 112 ],
118 'export_dependent_settings': [ 113 'export_dependent_settings': [
119 '<(skia_gpu_extra_dependency_path):*', 114 '<(skia_gpu_extra_dependency_path):*',
(...skipping 24 matching lines...) Expand all
144 }], 139 }],
145 [ '(skia_os == "linux" or skia_os == "chromeos") and skia_egl == 0', { 140 [ '(skia_os == "linux" or skia_os == "chromeos") and skia_egl == 0', {
146 'link_settings': { 141 'link_settings': {
147 'libraries': [ 142 'libraries': [
148 '-lGL', 143 '-lGL',
149 '-lGLU', 144 '-lGLU',
150 '-lX11', 145 '-lX11',
151 ], 146 ],
152 }, 147 },
153 }], 148 }],
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 }],
171 [ 'skia_os == "mac"', { 149 [ 'skia_os == "mac"', {
172 'link_settings': { 150 'link_settings': {
173 'libraries': [ 151 'libraries': [
174 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', 152 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
175 ], 153 ],
176 }, 154 },
177 'sources!': [ 155 'sources!': [
178 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', 156 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
179 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', 157 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
180 ], 158 ],
181 }], 159 }],
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 }],
198 [ 'skia_os in ["win", "ios"]', { 160 [ 'skia_os in ["win", "ios"]', {
199 'sources!': [ 161 'sources!': [
200 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', 162 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
201 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', 163 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
202 ], 164 ],
203 }], 165 }],
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 }],
222 [ 'skia_os == "android"', { 166 [ 'skia_os == "android"', {
223 'sources!': [ 167 'sources!': [
224 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', 168 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
225 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', 169 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
226 ], 170 ],
227 'defines': [ 171 'defines': [
228 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1', 172 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1',
229 ], 173 ],
230 'link_settings': { 174 'link_settings': {
231 'libraries': [ 175 'libraries': [
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 }, 224 },
281 }, { 225 }, {
282 'sources!': [ 226 'sources!': [
283 '<@(skgpu_vk_sources)', 227 '<@(skgpu_vk_sources)',
284 ], 228 ],
285 }], 229 }],
286 ], 230 ],
287 }, 231 },
288 ], 232 ],
289 } 233 }
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