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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 '../include/gpu', | 96 '../include/gpu', |
97 '../include/private', | 97 '../include/private', |
98 '../src/core', | 98 '../src/core', |
99 '../src/gpu', | 99 '../src/gpu', |
100 '../src/image/', | 100 '../src/image/', |
101 ], | 101 ], |
102 'sources': [ | 102 'sources': [ |
103 '<@(skgpu_sources)', | 103 '<@(skgpu_sources)', |
104 '<@(skgpu_native_gl_sources)', | 104 '<@(skgpu_native_gl_sources)', |
105 '<@(skgpu_angle_gl_sources)', | 105 '<@(skgpu_angle_gl_sources)', |
| 106 '<@(skgpu_command_buffer_gl_sources)', |
106 '<@(skgpu_mesa_gl_sources)', | 107 '<@(skgpu_mesa_gl_sources)', |
107 '<@(skgpu_debug_gl_sources)', | 108 '<@(skgpu_debug_gl_sources)', |
108 '<@(skgpu_null_gl_sources)', | 109 '<@(skgpu_null_gl_sources)', |
109 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the bui
ld). | 110 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the bui
ld). |
110 ], | 111 ], |
111 'conditions': [ | 112 'conditions': [ |
112 [ 'skia_gpu_extra_dependency_path', { | 113 [ 'skia_gpu_extra_dependency_path', { |
113 'dependencies' : [ | 114 'dependencies' : [ |
114 '<(skia_gpu_extra_dependency_path):*', | 115 '<(skia_gpu_extra_dependency_path):*', |
115 ], | 116 ], |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 'angle.gyp:*', | 205 'angle.gyp:*', |
205 ], | 206 ], |
206 'export_dependent_settings': [ | 207 'export_dependent_settings': [ |
207 'angle.gyp:*', | 208 'angle.gyp:*', |
208 ], | 209 ], |
209 }, { # not skia_angle | 210 }, { # not skia_angle |
210 'sources!': [ | 211 'sources!': [ |
211 '<@(skgpu_angle_gl_sources)', | 212 '<@(skgpu_angle_gl_sources)', |
212 ], | 213 ], |
213 }], | 214 }], |
| 215 [ 'skia_command_buffer', { |
| 216 }, { # not skia_command_buffer |
| 217 'sources!': [ |
| 218 '<@(skgpu_command_buffer_gl_sources)', |
| 219 ], |
| 220 }], |
214 [ 'skia_os == "android"', { | 221 [ 'skia_os == "android"', { |
215 'sources!': [ | 222 'sources!': [ |
216 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', | 223 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', |
217 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', | 224 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', |
218 ], | 225 ], |
219 'defines': [ | 226 'defines': [ |
220 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1', | 227 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1', |
221 ], | 228 ], |
222 'link_settings': { | 229 'link_settings': { |
223 'libraries': [ | 230 'libraries': [ |
224 '-lGLESv2', | 231 '-lGLESv2', |
225 '-lEGL', | 232 '-lEGL', |
226 ], | 233 ], |
227 }, | 234 }, |
228 }], | 235 }], |
229 ], | 236 ], |
230 }, | 237 }, |
231 ], | 238 ], |
232 } | 239 } |
OLD | NEW |