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',
78 'GR_COMPRESS_ALPHA_MASK=0',
83 'target_name': 'skgpu',
84 'product_name': 'skia_skgpu',
85 'type': 'static_library',
86 'standalone_static_library': 1,
103 '<@(skgpu_native_gl_sources)',
104 '<@(skgpu_angle_gl_sources)',
105 '<@(skgpu_mesa_gl_sources)',
106 '<@(skgpu_debug_gl_sources)',
107 '<@(skgpu_null_gl_sources)',
108 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
111 [ 'skia_stroke_path_rendering', {
113 '../experimental/StrokePathRenderer/GrStrokePathRenderer.h',
114 '../experimental/StrokePathRenderer/GrStrokePathRenderer.cpp',
117 'GR_STROKE_PATH_RENDERING=1',
120 [ 'skia_android_path_rendering', {
122 '../experimental/AndroidPathRenderer/GrAndroidPathRenderer.cpp',
123 '../experimental/AndroidPathRenderer/GrAndroidPathRenderer.h',
124 '../experimental/AndroidPathRenderer/AndroidPathRenderer.cpp',
125 '../experimental/AndroidPathRenderer/AndroidPathRenderer.h',
126 '../experimental/AndroidPathRenderer/Vertex.h',
129 'GR_ANDROID_PATH_RENDERING=1',
132 [ 'skia_chrome_utils', {
134 '../experimental/ChromeUtils/SkBorder.cpp',
135 '../experimental/ChromeUtils/SkBorder.h',
141 [ 'skia_os == "linux" or skia_os == "chromeos"', {
143 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
144 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
154 [ 'skia_os == "nacl"', {
161 [ 'skia_mesa and skia_os == "linux"', {
168 [ 'skia_os == "mac"', {
171 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
175 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
176 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
181 '../src/gpu/gl/mesa/SkMesaGLContext.cpp',
182 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
185 [ 'skia_mesa and skia_os == "mac"', {
188 '/opt/X11/lib/libOSMesa.dylib',
195 [ 'skia_os in ["win", "ios"]', {
197 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
198 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
205 'export_dependent_settings': [
208 }, { # not skia_angle
210 '<@(skgpu_angle_gl_sources)',
213 [ 'skia_os == "android"', {
215 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
216 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',