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

Side by Side Diff: gyp/common_variables.gypi

Issue 971243003: Build the Android version of PNG on Android. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 'skia_arch_type%': '<(skia_arch_type)', 69 'skia_arch_type%': '<(skia_arch_type)',
70 'arm_version%': '<(arm_version)', 70 'arm_version%': '<(arm_version)',
71 'arm_neon%': '<(arm_neon)', 71 'arm_neon%': '<(arm_neon)',
72 'skia_egl%': '<(skia_egl)', 72 'skia_egl%': '<(skia_egl)',
73 73
74 'conditions': [ 74 'conditions': [
75 [ 'skia_android_framework == 1', { 75 [ 'skia_android_framework == 1', {
76 'skia_os%': 'android', 76 'skia_os%': 'android',
77 'skia_chrome_utils%': 0, 77 'skia_chrome_utils%': 0,
78 'skia_use_system_json%': 1, 78 'skia_use_system_json%': 1,
79 # skia_libpng_static - instead of linking libpng with '-lpng' and
80 # including the headers from '/usr/include/png.h', compile and
81 # statically link the version of libpng in
82 # third_party/externals/libpng.
83 'skia_libpng_static%': '0',
84 }, { 79 }, {
85 'skia_os%': '<(skia_os)', 80 'skia_os%': '<(skia_os)',
86 'skia_chrome_utils%': 1, 81 'skia_chrome_utils%': 1,
87 'skia_use_system_json%': 0, 82 'skia_use_system_json%': 0,
88 'skia_libpng_static%': '1',
89 }], 83 }],
90 [ 'skia_os == "win"', { 84 [ 'skia_os == "win"', {
91 'os_posix%': 0, 85 'os_posix%': 0,
92 }, { 86 }, {
93 'os_posix%': 1, 87 'os_posix%': 1,
94 }], 88 }],
95 [ 'skia_os in ["linux"]', { 89 [ 'skia_os in ["linux"]', {
96 'skia_poppler_enabled%': 1, 90 'skia_poppler_enabled%': 1,
97 }, { 91 }, {
98 'skia_poppler_enabled%': 0, 92 'skia_poppler_enabled%': 0,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 168
175 # This variable allows the user to customize the optimization level used 169 # This variable allows the user to customize the optimization level used
176 # by the compiler. The user should be aware that this has different 170 # by the compiler. The user should be aware that this has different
177 # meanings for different compilers and should exercise caution when 171 # meanings for different compilers and should exercise caution when
178 # overriding it. 172 # overriding it.
179 [ 'skia_os == "win"', { 173 [ 'skia_os == "win"', {
180 'skia_release_optimization_level%': '<(skia_default_vs_optimization_leve l)', 174 'skia_release_optimization_level%': '<(skia_default_vs_optimization_leve l)',
181 }, { 175 }, {
182 'skia_release_optimization_level%': '<(skia_default_gcc_optimization_lev el)', 176 'skia_release_optimization_level%': '<(skia_default_gcc_optimization_lev el)',
183 }], 177 }],
178 [ 'skia_os == "android"', {
179 # skia_libpng_static - instead of linking libpng with '-lpng' and
180 # including the headers from '/usr/include/png.h', compile and
181 # statically link the version of libpng in
182 # third_party/externals/libpng.
183 'skia_libpng_static%': '0',
184 }, {
185 'skia_libpng_static%': '0',
186 }],
184 [ 'skia_sanitizer', { 187 [ 'skia_sanitizer', {
185 'skia_clang_build': 1, 188 'skia_clang_build': 1,
186 'skia_keep_frame_pointer': 1, 189 'skia_keep_frame_pointer': 1,
187 }, { 190 }, {
188 'skia_clang_build%': 0, 191 'skia_clang_build%': 0,
189 'skia_keep_frame_pointer%': 0, 192 'skia_keep_frame_pointer%': 0,
190 }], 193 }],
191 [ 'skia_shared_lib or skia_sanitizer or skia_os == "android"', { 194 [ 'skia_shared_lib or skia_sanitizer or skia_os == "android"', {
192 'skia_pic%' : 1, 195 'skia_pic%' : 1,
193 }, { 196 }, {
194 'skia_pic%' : 0, 197 'skia_pic%' : 0,
195 } 198 }
196 ], 199 ],
197 ], 200 ],
198 201
199 # Re-define all variables defined within the level-2 'variables' dict, 202 # Re-define all variables defined within the level-2 'variables' dict,
200 # so that siblings of the level-1 'variables' dict can see them. 203 # so that siblings of the level-1 'variables' dict can see them.
201 'arm_version%': '<(arm_version)', 204 'arm_version%': '<(arm_version)',
202 'arm_neon%': '<(arm_neon)', 205 'arm_neon%': '<(arm_neon)',
203 'arm_neon_optional%': 0, 206 'arm_neon_optional%': 0,
204 'mips_arch_variant%': 'mips32', 207 'mips_arch_variant%': 'mips32',
205 'mips_dsp%': 0, 208 'mips_dsp%': 0,
206 'skia_os%': '<(skia_os)', 209 'skia_os%': '<(skia_os)',
207 'os_posix%': '<(os_posix)', 210 'os_posix%': '<(os_posix)',
208 211
209 'skia_freetype_static%': '<(skia_freetype_static)', 212 'skia_freetype_static%': '<(skia_freetype_static)',
210 'skia_giflib_static%': '<(skia_giflib_static)', 213 'skia_giflib_static%': '<(skia_giflib_static)',
211 'skia_libpng_static%': '<(skia_libpng_static)',
212 'skia_no_fontconfig%': '<(skia_no_fontconfig)', 214 'skia_no_fontconfig%': '<(skia_no_fontconfig)',
213 'skia_sanitizer%': '<(skia_sanitizer)', 215 'skia_sanitizer%': '<(skia_sanitizer)',
214 'skia_scalar%': '<(skia_scalar)', 216 'skia_scalar%': '<(skia_scalar)',
215 'skia_mesa%': '<(skia_mesa)', 217 'skia_mesa%': '<(skia_mesa)',
216 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', 218 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)',
217 'skia_android_framework%': '<(skia_android_framework)', 219 'skia_android_framework%': '<(skia_android_framework)',
218 'skia_use_system_json%': '<(skia_use_system_json)', 220 'skia_use_system_json%': '<(skia_use_system_json)',
219 'skia_android_path_rendering%': '<(skia_android_path_rendering)', 221 'skia_android_path_rendering%': '<(skia_android_path_rendering)',
220 'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)', 222 'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)',
221 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)', 223 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)',
(...skipping 19 matching lines...) Expand all
241 'skia_moz2d%': 0, 243 'skia_moz2d%': 0,
242 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEAD LESS\', 0)")', 244 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEAD LESS\', 0)")',
243 'skia_egl%': '<(skia_egl)', 245 'skia_egl%': '<(skia_egl)',
244 246
245 # These are referenced by our .gypi files that list files (e.g. core.gypi) 247 # These are referenced by our .gypi files that list files (e.g. core.gypi)
246 # 248 #
247 'skia_src_path%': '../src', 249 'skia_src_path%': '../src',
248 'skia_include_path%': '../include', 250 'skia_include_path%': '../include',
249 }, 251 },
250 } 252 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698