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', '_unix.(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 # nullify the targets in this gyp file if skia_gpu is 0
45 'direct_dependent_settings': {
54 [ 'skia_resource_cache_mb_limit != 0', {
56 'GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT=<(skia_resource_cache_mb_limit)',
59 [ 'skia_resource_cache_count_limit != 0', {
61 'GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT=<(skia_resource_cache_count_limit)',
65 'direct_dependent_settings': {
67 [ 'skia_os == "win"', {
69 'GR_GL_FUNCTION_TYPE=__stdcall',
80 'target_name': 'skgpu',
81 'product_name': 'skia_skgpu',
82 'type': 'static_library',
83 'standalone_static_library': 1,
100 '<@(skgpu_native_gl_sources)',
101 '<@(skgpu_angle_gl_sources)',
102 '<@(skgpu_mesa_gl_sources)',
103 '<@(skgpu_debug_gl_sources)',
104 '<@(skgpu_null_gl_sources)',
105 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
108 [ 'skia_stroke_path_rendering', {
110 '../experimental/StrokePathRenderer/GrStrokePathRenderer.h',
111 '../experimental/StrokePathRenderer/GrStrokePathRenderer.cpp',
114 'GR_STROKE_PATH_RENDERING=1',
117 [ 'skia_android_path_rendering', {
119 '../experimental/AndroidPathRenderer/GrAndroidPathRenderer.cpp',
120 '../experimental/AndroidPathRenderer/GrAndroidPathRenderer.h',
121 '../experimental/AndroidPathRenderer/AndroidPathRenderer.cpp',
122 '../experimental/AndroidPathRenderer/AndroidPathRenderer.h',
123 '../experimental/AndroidPathRenderer/Vertex.h',
126 'GR_ANDROID_PATH_RENDERING=1',
129 [ 'skia_chrome_utils', {
131 '../experimental/ChromeUtils/SkBorder.cpp',
132 '../experimental/ChromeUtils/SkBorder.h',
138 [ 'skia_os == "linux" or skia_os == "chromeos"', {
140 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
141 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
151 [ 'skia_os == "nacl"', {
158 [ 'skia_mesa and skia_os == "linux"', {
165 [ 'skia_os == "mac"', {
168 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
172 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
173 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
178 '../src/gpu/gl/mesa/SkMesaGLContext.cpp',
179 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
182 [ 'skia_mesa and skia_os == "mac"', {
185 '/opt/X11/lib/libOSMesa.dylib',
192 [ 'skia_os in ["win", "ios"]', {
194 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
195 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
202 'export_dependent_settings': [
205 }, { # not skia_angle
207 '<@(skgpu_angle_gl_sources)',
210 [ 'skia_os == "android"', {
212 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
213 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
216 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1',