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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 'defines/': [ | 58 'defines/': [ |
59 ['exclude', '.*'], | 59 ['exclude', '.*'], |
60 ], | 60 ], |
61 'include_dirs/': [ | 61 'include_dirs/': [ |
62 ['exclude', '.*'], | 62 ['exclude', '.*'], |
63 ], | 63 ], |
64 }, | 64 }, |
65 }], | 65 }], |
66 ], | 66 ], |
67 'direct_dependent_settings': { | 67 'direct_dependent_settings': { |
68 'conditions': [ | |
69 [ 'skia_os == "win"', { | |
70 'defines': [ | |
71 'GR_GL_FUNCTION_TYPE=__stdcall', | |
72 ], | |
73 }], | |
74 ], | |
75 'include_dirs': [ | 68 'include_dirs': [ |
76 '../include/gpu', | 69 '../include/gpu', |
77 ], | 70 ], |
78 }, | 71 }, |
79 }, | 72 }, |
80 'targets': [ | 73 'targets': [ |
81 { | 74 { |
82 'target_name': 'skgpu', | 75 'target_name': 'skgpu', |
83 'product_name': 'skia_skgpu', | 76 'product_name': 'skia_skgpu', |
84 'type': 'static_library', | 77 'type': 'static_library', |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 '../tools/viewer/sk_app/android', | 237 '../tools/viewer/sk_app/android', |
245 ], | 238 ], |
246 }, | 239 }, |
247 'dependencies!': [ | 240 'dependencies!': [ |
248 'shaderc.gyp:shaderc_combined', | 241 'shaderc.gyp:shaderc_combined', |
249 ], | 242 ], |
250 'sources': [ | 243 'sources': [ |
251 # the gyp -> android.mk generator doesn't seem to like cpp files | 244 # 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 | 245 # in directories outside of src, bench, or dm. Until this gets
fixed |
253 # I just start the path in the src directory. | 246 # I just start the path in the src directory. |
254 '<(skia_src_path)/../tools/viewer/sk_app/WindowContext.cpp', | 247 '<(skia_src_path)/../tools/viewer/sk_app/WindowContext.cpp', |
255 '<(skia_src_path)/../tools/viewer/sk_app/VulkanWindowContext.cpp
', | 248 '<(skia_src_path)/../tools/viewer/sk_app/VulkanWindowContext.cpp
', |
256 '<(skia_src_path)/../tools/viewer/sk_app/android/VulkanWindowCon
text_android.cpp' | 249 '<(skia_src_path)/../tools/viewer/sk_app/android/VulkanWindowCon
text_android.cpp' |
257 ], | 250 ], |
258 }], | 251 }], |
259 ], | 252 ], |
260 }, { | 253 }, { |
261 'sources!': [ | 254 'sources!': [ |
262 '<@(skgpu_vk_sources)', | 255 '<@(skgpu_vk_sources)', |
263 ], | 256 ], |
264 }], | 257 }], |
265 ], | 258 ], |
266 }, | 259 }, |
267 ], | 260 ], |
268 } | 261 } |
OLD | NEW |