Chromium Code Reviews| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 81 { | 81 { |
| 82 'target_name': 'skgpu', | 82 'target_name': 'skgpu', |
| 83 'product_name': 'skia_skgpu', | 83 'product_name': 'skia_skgpu', |
| 84 'type': 'static_library', | 84 'type': 'static_library', |
| 85 'standalone_static_library': 1, | 85 'standalone_static_library': 1, |
| 86 'dependencies': [ | 86 'dependencies': [ |
| 87 'core.gyp:*', | 87 'core.gyp:*', |
| 88 'utils.gyp:utils', | 88 'utils.gyp:utils', |
| 89 'etc1.gyp:libetc1', | 89 'etc1.gyp:libetc1', |
| 90 'ktx.gyp:libSkKTX', | 90 'ktx.gyp:libSkKTX', |
| 91 'shaderc.gyp:shaderc_combined', | |
|
egdaniel
2016/07/06 15:21:05
should this not be under the skia_vulkan section?
djsollen
2016/07/06 15:42:18
Done.
| |
| 91 'sksl.gyp:sksl', | 92 'sksl.gyp:sksl', |
| 92 ], | 93 ], |
| 93 'includes': [ | 94 'includes': [ |
| 94 'gpu.gypi', | 95 'gpu.gypi', |
| 95 ], | 96 ], |
| 96 'include_dirs': [ | 97 'include_dirs': [ |
| 97 '../include/gpu', | 98 '../include/gpu', |
| 98 '../include/private', | 99 '../include/private', |
| 99 '../src/core', | 100 '../src/core', |
| 100 '../src/gpu', | 101 '../src/gpu', |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 218 ], | 219 ], |
| 219 'direct_dependent_settings': { | 220 'direct_dependent_settings': { |
| 220 'include_dirs': [ | 221 'include_dirs': [ |
| 221 '<(vulkan_sdk_path)/include', | 222 '<(vulkan_sdk_path)/include', |
| 222 ], | 223 ], |
| 223 }, | 224 }, |
| 224 'link_settings': { | 225 'link_settings': { |
| 225 'library_dirs': [ '<(vulkan_sdk_path)/lib', ], | 226 'library_dirs': [ '<(vulkan_sdk_path)/lib', ], |
| 226 }, | 227 }, |
| 227 }], | 228 }], |
| 229 [ 'skia_android_framework', { | |
| 230 'include_dirs': [ | |
| 231 'frameworks/native/vulkan/include', | |
| 232 '../tools/viewer/sk_app', | |
| 233 '../tools/viewer/sk_app/android', | |
| 234 ], | |
| 235 'direct_dependent_settings': { | |
| 236 'include_dirs': [ | |
| 237 'frameworks/native/vulkan/include', | |
| 238 '../tools/viewer/sk_app', | |
| 239 '../tools/viewer/sk_app/android', | |
| 240 ], | |
| 241 }, | |
| 242 'dependencies!': [ | |
| 243 'shaderc.gyp:shaderc_combined', | |
| 244 ], | |
| 245 'sources': [ | |
| 246 # the gyp -> android.mk generator doesn't seem to like cpp files | |
| 247 # in directories outside of src, bench, or dm. Until this gets fixed | |
| 248 # I just start the path in the src directory. | |
| 249 '<(skia_src_path)/../tools/viewer/sk_app/WindowContext.cpp', | |
| 250 '<(skia_src_path)/../tools/viewer/sk_app/VulkanWindowContext.cpp ', | |
| 251 '<(skia_src_path)/../tools/viewer/sk_app/android/VulkanWindowCon text_android.cpp' | |
| 252 ], | |
| 253 }], | |
| 228 ], | 254 ], |
| 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': { | 255 'link_settings': { |
| 241 'libraries': [ '<(vulkan_lib_name)', ], | 256 'libraries': [ '<(vulkan_lib_name)', ], |
| 242 }, | 257 }, |
| 243 }, { | 258 }, { |
| 244 'sources!': [ | 259 'sources!': [ |
| 245 '<@(skgpu_vk_sources)', | 260 '<@(skgpu_vk_sources)', |
| 246 ], | 261 ], |
| 247 }], | 262 }], |
| 248 ], | 263 ], |
| 249 }, | 264 }, |
| 250 ], | 265 ], |
| 251 } | 266 } |
| OLD | NEW |