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

Unified Diff: gyp/gpu.gyp

Issue 2129523002: Compile Vulkan when building for the Android framework. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Compile Vulkan when building for the Android framework. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/common_variables.gypi ('k') | gyp/shaderc.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/gpu.gyp
diff --git a/gyp/gpu.gyp b/gyp/gpu.gyp
index 874db5cb67c05e431d7688f3726b780dc28584f6..c17789ab7a7f3de09941a74a2a2354ebd0dcfdf2 100644
--- a/gyp/gpu.gyp
+++ b/gyp/gpu.gyp
@@ -181,6 +181,12 @@
},
}],
[ 'skia_vulkan', {
+ 'link_settings': {
+ 'libraries': [ '<(vulkan_lib_name)', ],
+ },
+ 'dependencies': [
+ 'shaderc.gyp:shaderc_combined',
+ ],
'conditions': [
[ 'skia_os == "win"', {
'variables': {
@@ -225,21 +231,32 @@
'library_dirs': [ '<(vulkan_sdk_path)/lib', ],
},
}],
+ [ 'skia_android_framework', {
+ 'include_dirs': [
+ 'frameworks/native/vulkan/include',
+ '../tools/viewer/sk_app',
+ '../tools/viewer/sk_app/android',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ 'frameworks/native/vulkan/include',
+ '../tools/viewer/sk_app',
+ '../tools/viewer/sk_app/android',
+ ],
+ },
+ 'dependencies!': [
+ 'shaderc.gyp:shaderc_combined',
+ ],
+ 'sources': [
+ # the gyp -> android.mk generator doesn't seem to like cpp files
+ # in directories outside of src, bench, or dm. Until this gets fixed
+ # I just start the path in the src directory.
+ '<(skia_src_path)/../tools/viewer/sk_app/WindowContext.cpp',
+ '<(skia_src_path)/../tools/viewer/sk_app/VulkanWindowContext.cpp',
+ '<(skia_src_path)/../tools/viewer/sk_app/android/VulkanWindowContext_android.cpp'
+ ],
+ }],
],
- 'dependencies': [
- 'shaderc.gyp:shaderc_combined',
- ],
- 'include_dirs': [
- '../third_party/externals/shaderc2/libshaderc/include',
- ],
- 'direct_dependent_settings': {
- 'include_dirs': [
- '../third_party/externals/shaderc2/libshaderc/include',
- ],
- },
- 'link_settings': {
- 'libraries': [ '<(vulkan_lib_name)', ],
- },
}, {
'sources!': [
'<@(skgpu_vk_sources)',
« no previous file with comments | « gyp/common_variables.gypi ('k') | gyp/shaderc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698