Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(580)

Unified Diff: gyp/gpu.gyp

Issue 17101010: Fuse skgr & gr targets in gyp files (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gyp/gpu.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/gpu.gyp
===================================================================
--- gyp/gpu.gyp (revision 9650)
+++ gyp/gpu.gyp (working copy)
@@ -117,8 +117,8 @@
},
'targets': [
{
- 'target_name': 'skgr',
- 'product_name': 'skia_skgr',
+ 'target_name': 'skgpu',
+ 'product_name': 'skia_skgpu',
'type': 'static_library',
'standalone_static_library': 1,
'includes': [
@@ -139,69 +139,14 @@
'angle.gyp:*',
],
'sources': [
- '<@(skgr_sources)',
- '<@(skgr_native_gl_sources)',
- '<@(skgr_angle_gl_sources)',
- '<@(skgr_mesa_gl_sources)',
- '<@(skgr_debug_gl_sources)',
- '<@(skgr_null_gl_sources)',
+ '<@(skgpu_sources)',
+ '<@(skgpu_native_gl_sources)',
+ '<@(skgpu_angle_gl_sources)',
+ '<@(skgpu_mesa_gl_sources)',
+ '<@(skgpu_debug_gl_sources)',
+ '<@(skgpu_null_gl_sources)',
'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
],
- 'conditions': [
- [ 'not skia_mesa', {
- 'sources!': [
- '../src/gpu/gl/mesa/SkMesaGLContext.cpp',
- ],
- }],
- [ 'skia_mesa and skia_os == "mac"', {
- 'include_dirs': [
- '/opt/X11/include/',
- ],
- }],
- [ 'not skia_angle', {
- 'sources!': [
- '<@(skgr_angle_gl_sources)',
- ],
- 'dependencies!': [
- 'angle.gyp:*',
- ],
- 'export_dependent_settings!': [
- 'angle.gyp:*',
- ],
- }],
- ],
- },
- {
- 'target_name': 'gr',
- 'product_name': 'skia_gr',
- 'type': 'static_library',
- 'standalone_static_library': 1,
- 'includes': [
- 'gpu.gypi',
- ],
- 'include_dirs': [
- '../include/core',
- '../include/config',
- '../include/utils',
- '../include/gpu',
- '../src/core', # SkRasterClip.h
- '../src/gpu'
- ],
- 'dependencies': [
- 'angle.gyp:*',
- ],
- 'export_dependent_settings': [
- 'angle.gyp:*',
- ],
- 'sources': [
- '<@(gr_sources)',
- '<@(gr_native_gl_sources)',
- '<@(gr_angle_gl_sources)',
- '<@(gr_mesa_gl_sources)',
- '<@(gr_debug_gl_sources)',
- '<@(gr_null_gl_sources)',
- 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
- ],
'defines': [
'GR_IMPLEMENTATION=1',
],
@@ -270,6 +215,12 @@
'../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
],
}],
+ [ 'not skia_mesa', {
+ 'sources!': [
+ '../src/gpu/gl/mesa/SkMesaGLContext.cpp',
+ '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
+ ],
+ }],
[ 'skia_mesa and skia_os == "mac"', {
'link_settings': {
'libraries': [
@@ -280,11 +231,6 @@
'/opt/X11/include/',
],
}],
- [ 'not skia_mesa', {
- 'sources!': [
- '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
- ],
- }],
[ 'skia_os in ["win", "ios"]', {
'sources!': [
'../src/gpu/gl/GrGLDefaultInterface_none.cpp',
@@ -293,7 +239,7 @@
}],
[ 'not skia_angle', {
'sources!': [
- '<@(gr_angle_gl_sources)',
+ '<@(skgpu_angle_gl_sources)',
],
'dependencies!': [
'angle.gyp:*',
« no previous file with comments | « no previous file | gyp/gpu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698