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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gyp/common_conditions.gypi ('k') | gyp/core.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 The Android Open Source Project 1 # Copyright 2012 The Android Open Source Project
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 { 6 {
7 # Get ready for the ugly... 7 # Get ready for the ugly...
8 # 8 #
9 # - We have to nest our variables dictionaries multiple levels deep, so that 9 # - We have to nest our variables dictionaries multiple levels deep, so that
10 # this and other gyp files can rely on previously-set variable values in 10 # this and other gyp files can rely on previously-set variable values in
(...skipping 27 matching lines...) Expand all
38 'variables': { # level 1 38 'variables': { # level 1
39 'variables': { # level 2 39 'variables': { # level 2
40 40
41 # Variables needed by conditions list within the level-2 variables dict. 41 # Variables needed by conditions list within the level-2 variables dict.
42 'variables': { # level 3 42 'variables': { # level 3
43 # We use 'skia_os' instead of 'OS' throughout our gyp files, to allow 43 # We use 'skia_os' instead of 'OS' throughout our gyp files, to allow
44 # for cross-compilation (e.g. building for either MacOS or iOS on Mac). 44 # for cross-compilation (e.g. building for either MacOS or iOS on Mac).
45 # We set it automatically based on 'OS' (the host OS), but allow the 45 # We set it automatically based on 'OS' (the host OS), but allow the
46 # user to override it via GYP_DEFINES if they like. 46 # user to override it via GYP_DEFINES if they like.
47 'skia_os%': '<(OS)', 47 'skia_os%': '<(OS)',
48
49 'skia_android_framework%': 0,
48 }, 50 },
49 51
50 # Re-define all variables defined within the level-3 'variables' dict, 52 # Re-define all variables defined within the level-3 'variables' dict,
51 # so that siblings of the level-2 'variables' dict can see them. 53 # so that siblings of the level-2 'variables' dict can see them.
52 'skia_os%': '<(skia_os)', 54 # (skia_os will depend on skia_android_framework.)
55 'skia_android_framework%': '<(skia_android_framework)',
53 56
54 'conditions': [ 57 'conditions': [
58 [ 'skia_android_framework == 1', {
59 'skia_os%': 'android',
60 }, {
61 'skia_os%': '<(skia_os)',
62 }],
55 [ 'skia_os == "win"', { 63 [ 'skia_os == "win"', {
56 'os_posix%': 0, 64 'os_posix%': 0,
57 }, { 65 }, {
58 'os_posix%': 1, 66 'os_posix%': 1,
59 }], 67 }],
60 [ 'skia_os in ["linux", "win"]', { 68 [ 'skia_os in ["linux", "win"]', {
61 'skia_poppler_enabled%': 1, 69 'skia_poppler_enabled%': 1,
62 }, { 70 }, {
63 'skia_poppler_enabled%': 0, 71 'skia_poppler_enabled%': 0,
64 }], 72 }],
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 'skia_distancefield_fonts%': 0, 110 'skia_distancefield_fonts%': 0,
103 111
104 # These variables determine the default optimization level for different 112 # These variables determine the default optimization level for different
105 # compilers. 113 # compilers.
106 'skia_default_vs_optimization_level': 3, # full (/Ox) 114 'skia_default_vs_optimization_level': 3, # full (/Ox)
107 'skia_default_gcc_optimization_level': 3, # -O3 115 'skia_default_gcc_optimization_level': 3, # -O3
108 }, 116 },
109 117
110 'conditions': [ 118 'conditions': [
111 [ 'skia_os == "win" and skia_arch_width == 32 or ' 119 [ 'skia_os == "win" and skia_arch_width == 32 or '
112 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android"] or ' 120 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android"] '
121 'and skia_android_framework == 0 or '
113 'skia_os == "mac" and skia_arch_width == 32', { 122 'skia_os == "mac" and skia_arch_width == 32', {
114 'skia_warnings_as_errors%': 1, 123 'skia_warnings_as_errors%': 1,
115 }, { 124 }, {
116 'skia_warnings_as_errors%': 0, 125 'skia_warnings_as_errors%': 0,
117 }], 126 }],
118 127
119 # This variable allows the user to customize the optimization level used 128 # This variable allows the user to customize the optimization level used
120 # by the compiler. The user should be aware that this has different 129 # by the compiler. The user should be aware that this has different
121 # meanings for different compilers and should exercise caution when 130 # meanings for different compilers and should exercise caution when
122 # overriding it. 131 # overriding it.
(...skipping 15 matching lines...) Expand all
138 # so that siblings of the level-1 'variables' dict can see them. 147 # so that siblings of the level-1 'variables' dict can see them.
139 'arm_version%': '<(arm_version)', 148 'arm_version%': '<(arm_version)',
140 'arm_neon%': '<(arm_neon)', 149 'arm_neon%': '<(arm_neon)',
141 'arm_neon_optional%': 0, 150 'arm_neon_optional%': 0,
142 'skia_os%': '<(skia_os)', 151 'skia_os%': '<(skia_os)',
143 'os_posix%': '<(os_posix)', 152 'os_posix%': '<(os_posix)',
144 'skia_sanitizer%': '<(skia_sanitizer)', 153 'skia_sanitizer%': '<(skia_sanitizer)',
145 'skia_scalar%': '<(skia_scalar)', 154 'skia_scalar%': '<(skia_scalar)',
146 'skia_mesa%': '<(skia_mesa)', 155 'skia_mesa%': '<(skia_mesa)',
147 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', 156 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)',
157 'skia_android_framework%': '<(skia_android_framework)',
148 'skia_android_path_rendering%': '<(skia_android_path_rendering)', 158 'skia_android_path_rendering%': '<(skia_android_path_rendering)',
149 'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)', 159 'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)',
150 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)', 160 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)',
151 'skia_angle%': '<(skia_angle)', 161 'skia_angle%': '<(skia_angle)',
152 'skia_poppler_enabled%': '<(skia_poppler_enabled)', 162 'skia_poppler_enabled%': '<(skia_poppler_enabled)',
153 'skia_arch_width%': '<(skia_arch_width)', 163 'skia_arch_width%': '<(skia_arch_width)',
154 'skia_arch_type%': '<(skia_arch_type)', 164 'skia_arch_type%': '<(skia_arch_type)',
155 'skia_chrome_utils%': '<(skia_chrome_utils)', 165 'skia_chrome_utils%': '<(skia_chrome_utils)',
156 'skia_directwrite%': '<(skia_directwrite)', 166 'skia_directwrite%': '<(skia_directwrite)',
157 'skia_gpu%': '<(skia_gpu)', 167 'skia_gpu%': '<(skia_gpu)',
158 'skia_win_exceptions%': 0, 168 'skia_win_exceptions%': 0,
159 'skia_osx_deployment_target%': '<(skia_osx_deployment_target)', 169 'skia_osx_deployment_target%': '<(skia_osx_deployment_target)',
160 'skia_profile_enabled%': '<(skia_profile_enabled)', 170 'skia_profile_enabled%': '<(skia_profile_enabled)',
161 'skia_shared_lib%': '<(skia_shared_lib)', 171 'skia_shared_lib%': '<(skia_shared_lib)',
162 'skia_opencl%': '<(skia_opencl)', 172 'skia_opencl%': '<(skia_opencl)',
163 'skia_distancefield_fonts%': '<(skia_distancefield_fonts)', 173 'skia_distancefield_fonts%': '<(skia_distancefield_fonts)',
164 'skia_static_initializers%': '<(skia_static_initializers)', 174 'skia_static_initializers%': '<(skia_static_initializers)',
165 'ios_sdk_version%': '6.0', 175 'ios_sdk_version%': '6.0',
166 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', 176 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)',
167 'skia_run_pdfviewer_in_gm%': 0, 177 'skia_run_pdfviewer_in_gm%': 0,
168 178
169 # These are referenced by our .gypi files that list files (e.g. core.gypi) 179 # These are referenced by our .gypi files that list files (e.g. core.gypi)
170 # 180 #
171 'skia_src_path%': '../src', 181 'skia_src_path%': '../src',
172 'skia_include_path%': '../include', 182 'skia_include_path%': '../include',
173 }, 183 },
174 } 184 }
OLDNEW
« 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