6 'sources/': [ ['exclude', '_win.(h|cpp)$'],
10 'sources/': [ ['exclude', '_mac.(h|cpp|m|mm)$'],
13 ['skia_os != "linux" and skia_os != "chromeos"', {
14 'sources/': [ ['exclude', '_glx.(h|cpp)$'],
17 ['skia_os != "ios"', {
18 'sources/': [ ['exclude', '_iOS.(h|cpp|m|mm)$'],
21 ['skia_os != "android"', {
22 'sources/': [ ['exclude', '_android.(h|cpp)$'],
25 ['skia_os != "nacl"', {
26 'sources/': [ ['exclude', '_nacl.(h|cpp)$'],
29 ['skia_os == "nacl" or skia_egl == 0', {
30 'sources/': [ ['exclude', '_egl.(h|cpp)$'],
33 ['skia_os == "android"', {
34 'sources/': [ ['exclude', 'GrGLCreateNativeInterface_egl.cpp'],
38 'sources/': [ ['exclude', '_glx.(h|cpp)$'],
41 # nullify the targets in this gyp file if skia_gpu is 0
57 'direct_dependent_settings': {
66 [ 'skia_resource_cache_mb_limit != 0', {
68 'GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT=<(skia_resource_cache_mb_limit)',
71 [ 'skia_resource_cache_count_limit != 0', {
73 'GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT=<(skia_resource_cache_count_limit)',
77 'direct_dependent_settings': {
79 [ 'skia_os == "win"', {
81 'GR_GL_FUNCTION_TYPE=__stdcall',
92 'target_name': 'skgpu',
93 'product_name': 'skia_skgpu',
94 'type': 'static_library',
95 'standalone_static_library': 1,
112 '<@(skgpu_native_gl_sources)',
113 '<@(skgpu_angle_gl_sources)',
114 '<@(skgpu_mesa_gl_sources)',
115 '<@(skgpu_debug_gl_sources)',
116 '<@(skgpu_null_gl_sources)',
117 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
120 [ 'skia_stroke_path_rendering', {
122 '../experimental/StrokePathRenderer/GrStrokePathRenderer.h',
123 '../experimental/StrokePathRenderer/GrStrokePathRenderer.cpp',
126 'GR_STROKE_PATH_RENDERING=1',
129 [ 'skia_android_path_rendering', {
131 '../experimental/AndroidPathRenderer/GrAndroidPathRenderer.cpp',
132 '../experimental/AndroidPathRenderer/GrAndroidPathRenderer.h',
133 '../experimental/AndroidPathRenderer/AndroidPathRenderer.cpp',
134 '../experimental/AndroidPathRenderer/AndroidPathRenderer.h',
135 '../experimental/AndroidPathRenderer/Vertex.h',
138 'GR_ANDROID_PATH_RENDERING=1',
141 [ 'skia_chrome_utils', {
143 '../experimental/ChromeUtils/SkBorder.cpp',
144 '../experimental/ChromeUtils/SkBorder.h',
150 [ 'skia_os == "linux" or skia_os == "chromeos"', {
152 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
153 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
156 [ '(skia_os == "linux" or skia_os == "chromeos") and skia_egl == 1', {
164 [ '(skia_os == "linux" or skia_os == "chromeos") and skia_egl == 0', {
173 [ 'skia_os == "nacl"', {
190 [ 'skia_mesa and skia_os == "linux"', {
197 [ 'skia_os == "mac"', {
200 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
204 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
205 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
210 '../src/gpu/gl/mesa/SkMesaGLContext.cpp',
211 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
214 [ 'skia_mesa and skia_os == "mac"', {
217 '/opt/X11/lib/libOSMesa.dylib',
224 [ 'skia_os in ["win", "ios"]', {
226 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
227 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
234 'export_dependent_settings': [
237 }, { # not skia_angle
239 '<@(skgpu_angle_gl_sources)',
242 [ 'skia_os == "android"', {
244 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
245 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
248 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1',