aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gyp/common_conditions.gypi1
-rw-r--r--gyp/common_variables.gypi6
2 files changed, 5 insertions, 2 deletions
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi
index b9fa429f70..1256ef6760 100644
--- a/gyp/common_conditions.gypi
+++ b/gyp/common_conditions.gypi
@@ -229,7 +229,6 @@
'defines': [
'SK_BUILD_FOR_ANDROID',
'SK_BUILD_FOR_ANDROID_NDK',
- 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0',
],
'configurations': {
'Debug': {
diff --git a/gyp/common_variables.gypi b/gyp/common_variables.gypi
index 3226212ae4..0031f02873 100644
--- a/gyp/common_variables.gypi
+++ b/gyp/common_variables.gypi
@@ -62,6 +62,11 @@
}, {
'skia_arch_width%': 32,
}],
+ ['skia_os == "android"', {
+ 'skia_static_initializers%': 0,
+ }, {
+ 'skia_static_initializers%': 1,
+ }],
],
'skia_scalar%': 'float',
@@ -73,7 +78,6 @@
'android_make_apk%': 1,
'skia_nacl%': 0,
'skia_gpu%': 1,
- 'skia_static_initializers%': 1,
},
# Re-define all variables defined within the level-2 'variables' dict,