| OLD | NEW |
| 1 { | 1 { |
| 2 'target_defaults': { | 2 'target_defaults': { |
| 3 'conditions': [ | 3 'conditions': [ |
| 4 ['skia_os != "win"', { | 4 ['skia_os != "win"', { |
| 5 'sources/': [ ['exclude', '_win.(h|cpp)$'], | 5 'sources/': [ ['exclude', '_win.(h|cpp)$'], |
| 6 ], | 6 ], |
| 7 }], | 7 }], |
| 8 ['skia_os != "mac"', { | 8 ['skia_os != "mac"', { |
| 9 'sources/': [ ['exclude', '_mac.(h|cpp|m|mm)$'], | 9 'sources/': [ ['exclude', '_mac.(h|cpp|m|mm)$'], |
| 10 ], | 10 ], |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 ], | 110 ], |
| 111 }], | 111 }], |
| 112 ], | 112 ], |
| 113 'include_dirs': [ | 113 'include_dirs': [ |
| 114 '../include/gpu', | 114 '../include/gpu', |
| 115 ], | 115 ], |
| 116 }, | 116 }, |
| 117 }, | 117 }, |
| 118 'targets': [ | 118 'targets': [ |
| 119 { | 119 { |
| 120 'target_name': 'skgr', | 120 'target_name': 'skgpu', |
| 121 'product_name': 'skia_skgr', | 121 'product_name': 'skia_skgpu', |
| 122 'type': 'static_library', | 122 'type': 'static_library', |
| 123 'standalone_static_library': 1, | 123 'standalone_static_library': 1, |
| 124 'includes': [ | 124 'includes': [ |
| 125 'gpu.gypi', | 125 'gpu.gypi', |
| 126 ], | 126 ], |
| 127 'include_dirs': [ | 127 'include_dirs': [ |
| 128 '../include/config', | 128 '../include/config', |
| 129 '../include/core', | 129 '../include/core', |
| 130 '../include/utils', | 130 '../include/utils', |
| 131 '../src/core', | 131 '../src/core', |
| 132 '../include/gpu', | 132 '../include/gpu', |
| 133 '../src/gpu', | 133 '../src/gpu', |
| 134 ], | 134 ], |
| 135 'dependencies': [ | 135 'dependencies': [ |
| 136 'angle.gyp:*', | 136 'angle.gyp:*', |
| 137 ], | 137 ], |
| 138 'export_dependent_settings': [ | 138 'export_dependent_settings': [ |
| 139 'angle.gyp:*', | 139 'angle.gyp:*', |
| 140 ], | 140 ], |
| 141 'sources': [ | 141 'sources': [ |
| 142 '<@(skgr_sources)', | 142 '<@(skgpu_sources)', |
| 143 '<@(skgr_native_gl_sources)', | 143 '<@(skgpu_native_gl_sources)', |
| 144 '<@(skgr_angle_gl_sources)', | 144 '<@(skgpu_angle_gl_sources)', |
| 145 '<@(skgr_mesa_gl_sources)', | 145 '<@(skgpu_mesa_gl_sources)', |
| 146 '<@(skgr_debug_gl_sources)', | 146 '<@(skgpu_debug_gl_sources)', |
| 147 '<@(skgr_null_gl_sources)', | 147 '<@(skgpu_null_gl_sources)', |
| 148 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the bui
ld). | |
| 149 ], | |
| 150 'conditions': [ | |
| 151 [ 'not skia_mesa', { | |
| 152 'sources!': [ | |
| 153 '../src/gpu/gl/mesa/SkMesaGLContext.cpp', | |
| 154 ], | |
| 155 }], | |
| 156 [ 'skia_mesa and skia_os == "mac"', { | |
| 157 'include_dirs': [ | |
| 158 '/opt/X11/include/', | |
| 159 ], | |
| 160 }], | |
| 161 [ 'not skia_angle', { | |
| 162 'sources!': [ | |
| 163 '<@(skgr_angle_gl_sources)', | |
| 164 ], | |
| 165 'dependencies!': [ | |
| 166 'angle.gyp:*', | |
| 167 ], | |
| 168 'export_dependent_settings!': [ | |
| 169 'angle.gyp:*', | |
| 170 ], | |
| 171 }], | |
| 172 ], | |
| 173 }, | |
| 174 { | |
| 175 'target_name': 'gr', | |
| 176 'product_name': 'skia_gr', | |
| 177 'type': 'static_library', | |
| 178 'standalone_static_library': 1, | |
| 179 'includes': [ | |
| 180 'gpu.gypi', | |
| 181 ], | |
| 182 'include_dirs': [ | |
| 183 '../include/core', | |
| 184 '../include/config', | |
| 185 '../include/utils', | |
| 186 '../include/gpu', | |
| 187 '../src/core', # SkRasterClip.h | |
| 188 '../src/gpu' | |
| 189 ], | |
| 190 'dependencies': [ | |
| 191 'angle.gyp:*', | |
| 192 ], | |
| 193 'export_dependent_settings': [ | |
| 194 'angle.gyp:*', | |
| 195 ], | |
| 196 'sources': [ | |
| 197 '<@(gr_sources)', | |
| 198 '<@(gr_native_gl_sources)', | |
| 199 '<@(gr_angle_gl_sources)', | |
| 200 '<@(gr_mesa_gl_sources)', | |
| 201 '<@(gr_debug_gl_sources)', | |
| 202 '<@(gr_null_gl_sources)', | |
| 203 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the bui
ld). | 148 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the bui
ld). |
| 204 ], | 149 ], |
| 205 'defines': [ | 150 'defines': [ |
| 206 'GR_IMPLEMENTATION=1', | 151 'GR_IMPLEMENTATION=1', |
| 207 ], | 152 ], |
| 208 'conditions': [ | 153 'conditions': [ |
| 209 [ 'skia_nv_path_rendering', { | 154 [ 'skia_nv_path_rendering', { |
| 210 'defines': [ | 155 'defines': [ |
| 211 'GR_GL_USE_NV_PATH_RENDERING=1', | 156 'GR_GL_USE_NV_PATH_RENDERING=1', |
| 212 ], | 157 ], |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 'link_settings': { | 208 'link_settings': { |
| 264 'libraries': [ | 209 'libraries': [ |
| 265 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', | 210 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
| 266 ], | 211 ], |
| 267 }, | 212 }, |
| 268 'sources!': [ | 213 'sources!': [ |
| 269 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', | 214 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', |
| 270 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', | 215 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', |
| 271 ], | 216 ], |
| 272 }], | 217 }], |
| 218 [ 'not skia_mesa', { |
| 219 'sources!': [ |
| 220 '../src/gpu/gl/mesa/SkMesaGLContext.cpp', |
| 221 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp', |
| 222 ], |
| 223 }], |
| 273 [ 'skia_mesa and skia_os == "mac"', { | 224 [ 'skia_mesa and skia_os == "mac"', { |
| 274 'link_settings': { | 225 'link_settings': { |
| 275 'libraries': [ | 226 'libraries': [ |
| 276 '/opt/X11/lib/libOSMesa.dylib', | 227 '/opt/X11/lib/libOSMesa.dylib', |
| 277 ], | 228 ], |
| 278 }, | 229 }, |
| 279 'include_dirs': [ | 230 'include_dirs': [ |
| 280 '/opt/X11/include/', | 231 '/opt/X11/include/', |
| 281 ], | 232 ], |
| 282 }], | 233 }], |
| 283 [ 'not skia_mesa', { | |
| 284 'sources!': [ | |
| 285 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp', | |
| 286 ], | |
| 287 }], | |
| 288 [ 'skia_os in ["win", "ios"]', { | 234 [ 'skia_os in ["win", "ios"]', { |
| 289 'sources!': [ | 235 'sources!': [ |
| 290 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', | 236 '../src/gpu/gl/GrGLDefaultInterface_none.cpp', |
| 291 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', | 237 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp', |
| 292 ], | 238 ], |
| 293 }], | 239 }], |
| 294 [ 'not skia_angle', { | 240 [ 'not skia_angle', { |
| 295 'sources!': [ | 241 'sources!': [ |
| 296 '<@(gr_angle_gl_sources)', | 242 '<@(skgpu_angle_gl_sources)', |
| 297 ], | 243 ], |
| 298 'dependencies!': [ | 244 'dependencies!': [ |
| 299 'angle.gyp:*', | 245 'angle.gyp:*', |
| 300 ], | 246 ], |
| 301 'export_dependent_settings!': [ | 247 'export_dependent_settings!': [ |
| 302 'angle.gyp:*', | 248 'angle.gyp:*', |
| 303 ], | 249 ], |
| 304 }], | 250 }], |
| 305 [ 'skia_os == "android"', { | 251 [ 'skia_os == "android"', { |
| 306 'sources!': [ | 252 'sources!': [ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 317 ], | 263 ], |
| 318 }, | 264 }, |
| 319 ], | 265 ], |
| 320 } | 266 } |
| 321 | 267 |
| 322 # Local Variables: | 268 # Local Variables: |
| 323 # tab-width:2 | 269 # tab-width:2 |
| 324 # indent-tabs-mode:nil | 270 # indent-tabs-mode:nil |
| 325 # End: | 271 # End: |
| 326 # vim: set expandtab tabstop=2 shiftwidth=2: | 272 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |