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

Side by Side Diff: gyp/common_variables.gypi

Issue 1032253003: Enable both static and dynamically linked libpng (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
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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 # This variable allows the user to customize the optimization level used 165 # This variable allows the user to customize the optimization level used
166 # by the compiler. The user should be aware that this has different 166 # by the compiler. The user should be aware that this has different
167 # meanings for different compilers and should exercise caution when 167 # meanings for different compilers and should exercise caution when
168 # overriding it. 168 # overriding it.
169 [ 'skia_os == "win"', { 169 [ 'skia_os == "win"', {
170 'skia_release_optimization_level%': '<(skia_default_vs_optimization_leve l)', 170 'skia_release_optimization_level%': '<(skia_default_vs_optimization_leve l)',
171 }, { 171 }, {
172 'skia_release_optimization_level%': '<(skia_default_gcc_optimization_lev el)', 172 'skia_release_optimization_level%': '<(skia_default_gcc_optimization_lev el)',
173 }], 173 }],
174 [ 'skia_os == "android"', {
175 # skia_libpng_static - instead of linking libpng with '-lpng' and
176 # including the headers from '/usr/include/png.h', compile and
177 # statically link the version of libpng in
178 # third_party/externals/libpng.
179 'skia_libpng_static%': '0',
180 }, {
181 'skia_libpng_static%': '1',
182 }],
183 [ 'skia_sanitizer', { 174 [ 'skia_sanitizer', {
184 'skia_clang_build': 1, 175 'skia_clang_build': 1,
185 'skia_keep_frame_pointer': 1, 176 'skia_keep_frame_pointer': 1,
186 }, { 177 }, {
187 'skia_clang_build%': 0, 178 'skia_clang_build%': 0,
188 'skia_keep_frame_pointer%': 0, 179 'skia_keep_frame_pointer%': 0,
189 }], 180 }],
190 [ 'skia_shared_lib or skia_sanitizer or skia_os == "android"', { 181 [ 'skia_shared_lib or skia_sanitizer or skia_os == "android"', {
191 'skia_pic%' : 1, 182 'skia_pic%' : 1,
192 }, { 183 }, {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 'skia_moz2d%': 0, 230 'skia_moz2d%': 0,
240 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEAD LESS\', 0)")', 231 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEAD LESS\', 0)")',
241 'skia_egl%': '<(skia_egl)', 232 'skia_egl%': '<(skia_egl)',
242 233
243 # These are referenced by our .gypi files that list files (e.g. core.gypi) 234 # These are referenced by our .gypi files that list files (e.g. core.gypi)
244 # 235 #
245 'skia_src_path%': '../src', 236 'skia_src_path%': '../src',
246 'skia_include_path%': '../include', 237 'skia_include_path%': '../include',
247 }, 238 },
248 } 239 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698