Runtime configuration system for skia. This will allow developers to control settings at launch time without relying on compile-time flags or recompilation. It can be used to turn features on and off, as well as to control numeric quantities to 'tune' algorithms. Once I make sure it's working across all platforms I'll send out a quick tutorial on its use.
Review URL: https://codereview.appspot.com/7098051
git-svn-id: http://skia.googlecode.com/svn/trunk@7158 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gyp/common.gypi b/gyp/common.gypi
index 7dc27da..810a0f8 100644
--- a/gyp/common.gypi
+++ b/gyp/common.gypi
@@ -82,6 +82,7 @@
'defines': [
'SK_DEBUG',
'GR_DEBUG=1',
+ 'SK_DEVELOPER=1',
],
},
'Release': {
@@ -90,6 +91,12 @@
'GR_RELEASE=1',
],
},
+ 'Release_Developer': {
+ 'inherit_from': ['Release'],
+ 'defines': [
+ 'SK_DEVELOPER=1',
+ ],
+ },
},
}, # end 'target_defaults'
}