Effects Bug Fix
Certain compilers in an effort to optimize code chop off files that are never
used. By adding a flag to common conditions and variables we can force skia to
recompile with global static initializers off. By making a call to
SkGraphics::Init we now register all those functions that had been previously
automatically excluded by the compiler.
Review URL: https://codereview.appspot.com/6443112
git-svn-id: http://skia.googlecode.com/svn/trunk@5057 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gyp/common_variables.gypi b/gyp/common_variables.gypi
index f738b8a..fd2c7e7 100644
--- a/gyp/common_variables.gypi
+++ b/gyp/common_variables.gypi
@@ -72,6 +72,7 @@
'skia_arch_type%': 'x86',
'android_make_apk%': 1,
'skia_gpu%': 1,
+ 'skia_static_initializers%': 1,
},
# Re-define all variables defined within the level-2 'variables' dict,
@@ -86,7 +87,8 @@
'skia_arch_width%': '<(skia_arch_width)',
'android_make_apk%': '<(android_make_apk)',
'skia_gpu%': '<(skia_gpu)',
-
+ 'skia_static_initializers%': '<(skia_static_initializers)',
+
# These are referenced by our .gypi files that list files (e.g. core.gypi)
#
'skia_src_path%': '../src',