| OLD | NEW |
| 1 # GYP for building gpu |
| 1 { | 2 { |
| 2 'target_defaults': { | 3 'target_defaults': { |
| 3 'conditions': [ | 4 'conditions': [ |
| 4 ['skia_os != "win"', { | 5 ['skia_os != "win"', { |
| 5 'sources/': [ ['exclude', '_win.(h|cpp)$'], | 6 'sources/': [ ['exclude', '_win.(h|cpp)$'], |
| 6 ], | 7 ], |
| 7 }], | 8 }], |
| 8 ['skia_os != "mac"', { | 9 ['skia_os != "mac"', { |
| 9 'sources/': [ ['exclude', '_mac.(h|cpp|m|mm)$'], | 10 'sources/': [ ['exclude', '_mac.(h|cpp|m|mm)$'], |
| 10 ], | 11 ], |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 ], | 75 ], |
| 75 }, | 76 }, |
| 76 }, | 77 }, |
| 77 'targets': [ | 78 'targets': [ |
| 78 { | 79 { |
| 79 'target_name': 'skgpu', | 80 'target_name': 'skgpu', |
| 80 'product_name': 'skia_skgpu', | 81 'product_name': 'skia_skgpu', |
| 81 'type': 'static_library', | 82 'type': 'static_library', |
| 82 'standalone_static_library': 1, | 83 'standalone_static_library': 1, |
| 83 'dependencies': [ | 84 'dependencies': [ |
| 84 'angle.gyp:*', | |
| 85 'core.gyp:*', | 85 'core.gyp:*', |
| 86 'edtaa.gyp:*', | 86 'edtaa.gyp:*', |
| 87 'utils.gyp:*', | 87 'utils.gyp:*', |
| 88 ], | 88 ], |
| 89 'includes': [ | 89 'includes': [ |
| 90 'gpu.gypi', | 90 'gpu.gypi', |
| 91 ], | 91 ], |
| 92 'include_dirs': [ | 92 'include_dirs': [ |
| 93 '../include/gpu', | 93 '../include/gpu', |
| 94 '../src/core', | 94 '../src/core', |
| 95 '../src/gpu', | 95 '../src/gpu', |
| 96 ], | 96 ], |
| 97 'export_dependent_settings': [ | |
| 98 'angle.gyp:*', | |
| 99 ], | |
| 100 'sources': [ | 97 'sources': [ |
| 101 '<@(skgpu_sources)', | 98 '<@(skgpu_sources)', |
| 102 '<@(skgpu_native_gl_sources)', | 99 '<@(skgpu_native_gl_sources)', |
| 103 '<@(skgpu_angle_gl_sources)', | 100 '<@(skgpu_angle_gl_sources)', |
| 104 '<@(skgpu_mesa_gl_sources)', | 101 '<@(skgpu_mesa_gl_sources)', |
| 105 '<@(skgpu_debug_gl_sources)', | 102 '<@(skgpu_debug_gl_sources)', |
| 106 '<@(skgpu_null_gl_sources)', | 103 '<@(skgpu_null_gl_sources)', |
| 107 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the bui
ld). | 104 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the bui
ld). |
| 108 ], | 105 ], |
| 109 'conditions': [ | 106 'conditions': [ |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 'include_dirs': [ | 198 'include_dirs': [ |
| 202 '/opt/X11/include/', | 199 '/opt/X11/include/', |
| 203 ], | 200 ], |
| 204 }], | 201 }], |
| 205 [ 'skia_os in ["win", "ios"]', { | 202 [ 'skia_os in ["win", "ios"]', { |
| 206 'sources!': [ | 203 'sources!': [ |
| 207 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', | 204 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', |
| 208 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', | 205 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', |
| 209 ], | 206 ], |
| 210 }], | 207 }], |
| 211 [ 'not skia_angle', { | 208 [ 'skia_angle', { |
| 209 'dependencies': [ |
| 210 'angle.gyp:*', |
| 211 ], |
| 212 'export_dependent_settings': [ |
| 213 'angle.gyp:*', |
| 214 ], |
| 215 }, { # not skia_angle |
| 212 'sources!': [ | 216 'sources!': [ |
| 213 '<@(skgpu_angle_gl_sources)', | 217 '<@(skgpu_angle_gl_sources)', |
| 214 ], | 218 ], |
| 215 'dependencies!': [ | |
| 216 'angle.gyp:*', | |
| 217 ], | |
| 218 'export_dependent_settings!': [ | |
| 219 'angle.gyp:*', | |
| 220 ], | |
| 221 }], | 219 }], |
| 222 [ 'skia_os == "android"', { | 220 [ 'skia_os == "android"', { |
| 223 'sources!': [ | 221 'sources!': [ |
| 224 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', | 222 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', |
| 225 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', | 223 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', |
| 226 ], | 224 ], |
| 227 'link_settings': { | 225 'link_settings': { |
| 228 'libraries': [ | 226 'libraries': [ |
| 229 '-lGLESv2', | 227 '-lGLESv2', |
| 230 '-lEGL', | 228 '-lEGL', |
| 231 ], | 229 ], |
| 232 }, | 230 }, |
| 233 }], | 231 }], |
| 234 ], | 232 ], |
| 235 }, | 233 }, |
| 236 ], | 234 ], |
| 237 } | 235 } |
| OLD | NEW |