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

Unified Diff: gyp/common_variables.gypi

Issue 154053002: Reland "Gyp file changes for the android framework." (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix android build. Created 6 years, 10 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 | « gyp/common_conditions.gypi ('k') | gyp/core.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/common_variables.gypi
diff --git a/gyp/common_variables.gypi b/gyp/common_variables.gypi
index c06666d89a50fa6477f19084f887ad4fe85f5df8..26b9961be457195471c80dc668288f355d1a33fc 100644
--- a/gyp/common_variables.gypi
+++ b/gyp/common_variables.gypi
@@ -45,13 +45,21 @@
# We set it automatically based on 'OS' (the host OS), but allow the
# user to override it via GYP_DEFINES if they like.
'skia_os%': '<(OS)',
+
+ 'skia_android_framework%': 0,
},
# Re-define all variables defined within the level-3 'variables' dict,
# so that siblings of the level-2 'variables' dict can see them.
- 'skia_os%': '<(skia_os)',
+ # (skia_os will depend on skia_android_framework.)
+ 'skia_android_framework%': '<(skia_android_framework)',
'conditions': [
+ [ 'skia_android_framework == 1', {
+ 'skia_os%': 'android',
+ }, {
+ 'skia_os%': '<(skia_os)',
+ }],
[ 'skia_os == "win"', {
'os_posix%': 0,
}, {
@@ -109,7 +117,8 @@
'conditions': [
[ 'skia_os == "win" and skia_arch_width == 32 or '
- 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android"] or '
+ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android"] '
+ 'and skia_android_framework == 0 or '
'skia_os == "mac" and skia_arch_width == 32', {
'skia_warnings_as_errors%': 1,
}, {
@@ -145,6 +154,7 @@
'skia_scalar%': '<(skia_scalar)',
'skia_mesa%': '<(skia_mesa)',
'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)',
+ 'skia_android_framework%': '<(skia_android_framework)',
'skia_android_path_rendering%': '<(skia_android_path_rendering)',
'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)',
'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)',
« no previous file with comments | « gyp/common_conditions.gypi ('k') | gyp/core.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698