| OLD | NEW |
| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1', | 174 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1', |
| 175 ], | 175 ], |
| 176 'link_settings': { | 176 'link_settings': { |
| 177 'libraries': [ | 177 'libraries': [ |
| 178 '-lGLESv2', | 178 '-lGLESv2', |
| 179 '-lEGL', | 179 '-lEGL', |
| 180 ], | 180 ], |
| 181 }, | 181 }, |
| 182 }], | 182 }], |
| 183 [ 'skia_vulkan', { | 183 [ 'skia_vulkan', { |
| 184 'link_settings': { |
| 185 'libraries': [ '<(vulkan_lib_name)', ], |
| 186 }, |
| 187 'dependencies': [ |
| 188 'shaderc.gyp:shaderc_combined', |
| 189 ], |
| 184 'conditions': [ | 190 'conditions': [ |
| 185 [ 'skia_os == "win"', { | 191 [ 'skia_os == "win"', { |
| 186 'variables': { | 192 'variables': { |
| 187 'vulkan_lib_name': '-lvulkan-1', | 193 'vulkan_lib_name': '-lvulkan-1', |
| 188 'vulkan_sdk_path' : '<!(echo %VK_SDK_PATH%)', | 194 'vulkan_sdk_path' : '<!(echo %VK_SDK_PATH%)', |
| 189 }, | 195 }, |
| 190 'include_dirs': [ | 196 'include_dirs': [ |
| 191 '<(vulkan_sdk_path)/Include', | 197 '<(vulkan_sdk_path)/Include', |
| 192 ], | 198 ], |
| 193 'direct_dependent_settings': { | 199 'direct_dependent_settings': { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 218 ], | 224 ], |
| 219 'direct_dependent_settings': { | 225 'direct_dependent_settings': { |
| 220 'include_dirs': [ | 226 'include_dirs': [ |
| 221 '<(vulkan_sdk_path)/include', | 227 '<(vulkan_sdk_path)/include', |
| 222 ], | 228 ], |
| 223 }, | 229 }, |
| 224 'link_settings': { | 230 'link_settings': { |
| 225 'library_dirs': [ '<(vulkan_sdk_path)/lib', ], | 231 'library_dirs': [ '<(vulkan_sdk_path)/lib', ], |
| 226 }, | 232 }, |
| 227 }], | 233 }], |
| 234 [ 'skia_android_framework', { |
| 235 'include_dirs': [ |
| 236 'frameworks/native/vulkan/include', |
| 237 '../tools/viewer/sk_app', |
| 238 '../tools/viewer/sk_app/android', |
| 239 ], |
| 240 'direct_dependent_settings': { |
| 241 'include_dirs': [ |
| 242 'frameworks/native/vulkan/include', |
| 243 '../tools/viewer/sk_app', |
| 244 '../tools/viewer/sk_app/android', |
| 245 ], |
| 246 }, |
| 247 'dependencies!': [ |
| 248 'shaderc.gyp:shaderc_combined', |
| 249 ], |
| 250 'sources': [ |
| 251 # the gyp -> android.mk generator doesn't seem to like cpp files |
| 252 # in directories outside of src, bench, or dm. Until this gets
fixed |
| 253 # I just start the path in the src directory. |
| 254 '<(skia_src_path)/../tools/viewer/sk_app/WindowContext.cpp', |
| 255 '<(skia_src_path)/../tools/viewer/sk_app/VulkanWindowContext.cpp
', |
| 256 '<(skia_src_path)/../tools/viewer/sk_app/android/VulkanWindowCon
text_android.cpp' |
| 257 ], |
| 258 }], |
| 228 ], | 259 ], |
| 229 'dependencies': [ | |
| 230 'shaderc.gyp:shaderc_combined', | |
| 231 ], | |
| 232 'include_dirs': [ | |
| 233 '../third_party/externals/shaderc2/libshaderc/include', | |
| 234 ], | |
| 235 'direct_dependent_settings': { | |
| 236 'include_dirs': [ | |
| 237 '../third_party/externals/shaderc2/libshaderc/include', | |
| 238 ], | |
| 239 }, | |
| 240 'link_settings': { | |
| 241 'libraries': [ '<(vulkan_lib_name)', ], | |
| 242 }, | |
| 243 }, { | 260 }, { |
| 244 'sources!': [ | 261 'sources!': [ |
| 245 '<@(skgpu_vk_sources)', | 262 '<@(skgpu_vk_sources)', |
| 246 ], | 263 ], |
| 247 }], | 264 }], |
| 248 ], | 265 ], |
| 249 }, | 266 }, |
| 250 ], | 267 ], |
| 251 } | 268 } |
| OLD | NEW |