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

Side by Side Diff: gyp/common_variables.gypi

Issue 406613003: Introduce skia_pic gyp variable. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Set fPIE and pie for executables except on Android. Created 6 years, 5 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 | « gyp/common_conditions.gypi ('k') | 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 }, { 173 }, {
174 'skia_release_optimization_level%': '<(skia_default_gcc_optimization_lev el)', 174 'skia_release_optimization_level%': '<(skia_default_gcc_optimization_lev el)',
175 }], 175 }],
176 [ 'skia_sanitizer', { 176 [ 'skia_sanitizer', {
177 'skia_clang_build': 1, 177 'skia_clang_build': 1,
178 'skia_keep_frame_pointer': 1, 178 'skia_keep_frame_pointer': 1,
179 }, { 179 }, {
180 'skia_clang_build%': 0, 180 'skia_clang_build%': 0,
181 'skia_keep_frame_pointer%': 0, 181 'skia_keep_frame_pointer%': 0,
182 }], 182 }],
183 [ 'skia_shared_lib or skia_sanitizer or skia_os == "android"', {
184 'skia_pic%' : 1,
185 }, {
186 'skia_pic%' : 0,
187 }
188 ],
183 ], 189 ],
184 190
185 # Re-define all variables defined within the level-2 'variables' dict, 191 # Re-define all variables defined within the level-2 'variables' dict,
186 # so that siblings of the level-1 'variables' dict can see them. 192 # so that siblings of the level-1 'variables' dict can see them.
187 'arm_version%': '<(arm_version)', 193 'arm_version%': '<(arm_version)',
188 'arm_neon%': '<(arm_neon)', 194 'arm_neon%': '<(arm_neon)',
189 'arm_neon_optional%': 0, 195 'arm_neon_optional%': 0,
190 'mips_arch_variant%': 'mips32', 196 'mips_arch_variant%': 'mips32',
191 'mips_dsp%': 0, 197 'mips_dsp%': 0,
192 'skia_os%': '<(skia_os)', 198 'skia_os%': '<(skia_os)',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 'skia_moz2d%': 0, 234 'skia_moz2d%': 0,
229 'skia_crash_handler%': 235 'skia_crash_handler%':
230 '<!(python -c "import os; print os.environ.get(\'CHROME_HEADLESS\', 0)") ', 236 '<!(python -c "import os; print os.environ.get(\'CHROME_HEADLESS\', 0)") ',
231 237
232 # These are referenced by our .gypi files that list files (e.g. core.gypi) 238 # These are referenced by our .gypi files that list files (e.g. core.gypi)
233 # 239 #
234 'skia_src_path%': '../src', 240 'skia_src_path%': '../src',
235 'skia_include_path%': '../include', 241 'skia_include_path%': '../include',
236 }, 242 },
237 } 243 }
OLDNEW
« no previous file with comments | « gyp/common_conditions.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698