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

Side by Side Diff: gyp/gpu.gyp

Issue 1761163003: Support building Vulkan on Linux. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments Created 4 years, 9 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 | « no previous file | gyp/shaderc.gyp » ('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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1', 228 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1',
229 ], 229 ],
230 'link_settings': { 230 'link_settings': {
231 'libraries': [ 231 'libraries': [
232 '-lGLESv2', 232 '-lGLESv2',
233 '-lEGL', 233 '-lEGL',
234 ], 234 ],
235 }, 235 },
236 }], 236 }],
237 [ 'skia_vulkan', { 237 [ 'skia_vulkan', {
238 'variables': { 238 'conditions': [
239 'conditions': [ 239 [ 'skia_os == "win"', {
240 [ 'skia_os == "win"', { 240 'variables': {
241 'vulkan_lib_name': '-lvulkan-1',
241 'vulkan_sdk_path' : '<!(echo %VK_SDK_PATH%)', 242 'vulkan_sdk_path' : '<!(echo %VK_SDK_PATH%)',
242 }, { 243 },
243 'vulkan_sdk_path' : '<!(echo $VK_SDK_PATH)', 244 'include_dirs': [
244 }], 245 '<(vulkan_sdk_path)/Include',
245 ], 246 ],
246 }, 247 'direct_dependent_settings': {
248 'include_dirs': [
249 '<(vulkan_sdk_path)/Include',
250 ],
251 },
252 'link_settings': {
253 'library_dirs': [ '<(vulkan_sdk_path)/Bin', ],
254 },
255 }, {
256 'variables': {
257 'vulkan_lib_name': '-lvulkan',
258 },
259 }],
260 ],
247 'dependencies': [ 261 'dependencies': [
248 'shaderc.gyp:shaderc_combined', 262 'shaderc.gyp:shaderc_combined',
249 ], 263 ],
250 'include_dirs': [ 264 'include_dirs': [
251 '../third_party/', # To include files under third_party/vulkan
252 '../third_party/externals/shaderc2/libshaderc/include', 265 '../third_party/externals/shaderc2/libshaderc/include',
253 '<(vulkan_sdk_path)/Include',
254 ], 266 ],
255 'direct_dependent_settings': { 267 'direct_dependent_settings': {
256 'include_dirs': [ 268 'include_dirs': [
257 '../third_party/', # To include files under third_party/vulkan
258 '../third_party/externals/shaderc2/libshaderc/include', 269 '../third_party/externals/shaderc2/libshaderc/include',
259 '<(vulkan_sdk_path)/Include',
260 ], 270 ],
261 }, 271 },
262 'link_settings': { 272 'link_settings': {
263 'library_dirs': [ '<(vulkan_sdk_path)/Bin', ], 273 'libraries': [ '<(vulkan_lib_name)', ],
264 'libraries': [ '-lvulkan-1', ],
265 }, 274 },
266 }, { 275 }, {
267 'sources!': [ 276 'sources!': [
268 '<@(skgpu_vk_sources)', 277 '<@(skgpu_vk_sources)',
269 ], 278 ],
270 }], 279 }],
271 ], 280 ],
272 }, 281 },
273 ], 282 ],
274 } 283 }
OLDNEW
« no previous file with comments | « no previous file | gyp/shaderc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698