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

Side by Side Diff: platform_tools/android/gyp_gen/makefile_writer.py

Issue 1103313002: Eliminate the check for ANDROID_LARGE_MEMORY in jpeg decoders (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Never overwrite default memory Created 5 years, 7 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 | platform_tools/android/tests/expectations/Android.mk » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright 2014 Google Inc. 3 # Copyright 2014 Google Inc.
4 # 4 #
5 # Use of this source code is governed by a BSD-style license that can be 5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file. 6 # found in the LICENSE file.
7 7
8 """ 8 """
9 Functions for creating an Android.mk from already created dictionaries. 9 Functions for creating an Android.mk from already created dictionaries.
10 """ 10 """
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 # need flags to enable feedback driven optimization (FDO) when requested 189 # need flags to enable feedback driven optimization (FDO) when requested
190 # by the build system. 190 # by the build system.
191 f.write('LOCAL_FDO_SUPPORT := true\n') 191 f.write('LOCAL_FDO_SUPPORT := true\n')
192 f.write('ifneq ($(strip $(TARGET_FDO_CFLAGS)),)\n') 192 f.write('ifneq ($(strip $(TARGET_FDO_CFLAGS)),)\n')
193 f.write('\t# This should be the last -Oxxx specified in LOCAL_CFLAGS\n') 193 f.write('\t# This should be the last -Oxxx specified in LOCAL_CFLAGS\n')
194 f.write('\tLOCAL_CFLAGS += -O2\n') 194 f.write('\tLOCAL_CFLAGS += -O2\n')
195 f.write('endif\n\n') 195 f.write('endif\n\n')
196 196
197 f.write('LOCAL_ARM_MODE := thumb\n') 197 f.write('LOCAL_ARM_MODE := thumb\n')
198 198
199 # need a flag to tell the C side when we're on devices with large memory
200 # budgets (i.e. larger than the low-end devices that initially shipped)
201 # On arm, only define the flag if it has VFP. For all other architectures,
202 # always define the flag.
203 f.write('ifeq ($(TARGET_ARCH),arm)\n')
204 f.write('\tifeq ($(ARCH_ARM_HAVE_VFP),true)\n')
205 f.write('\t\tLOCAL_CFLAGS += -DANDROID_LARGE_MEMORY_DEVICE\n')
206 f.write('\tendif\n')
207 f.write('else\n')
208 f.write('\tLOCAL_CFLAGS += -DANDROID_LARGE_MEMORY_DEVICE\n')
209 f.write('endif\n\n')
210
211 f.write('# used for testing\n') 199 f.write('# used for testing\n')
212 f.write('#LOCAL_CFLAGS += -g -O0\n\n') 200 f.write('#LOCAL_CFLAGS += -g -O0\n\n')
213 201
214 f.write('ifeq ($(NO_FALLBACK_FONT),true)\n') 202 f.write('ifeq ($(NO_FALLBACK_FONT),true)\n')
215 f.write('\tLOCAL_CFLAGS += -DNO_FALLBACK_FONT\n') 203 f.write('\tLOCAL_CFLAGS += -DNO_FALLBACK_FONT\n')
216 f.write('endif\n\n') 204 f.write('endif\n\n')
217 205
218 write_local_vars(f, common, False, None) 206 write_local_vars(f, common, False, None)
219 207
220 for data in deviations_from_common: 208 for data in deviations_from_common:
221 if data.condition: 209 if data.condition:
222 f.write('ifeq ($(%s), true)\n' % data.condition) 210 f.write('ifeq ($(%s), true)\n' % data.condition)
223 write_local_vars(f, data.vars_dict, True, data.name) 211 write_local_vars(f, data.vars_dict, True, data.name)
224 if data.condition: 212 if data.condition:
225 f.write('endif\n\n') 213 f.write('endif\n\n')
226 214
227 f.write('include $(BUILD_SHARED_LIBRARY)\n') 215 f.write('include $(BUILD_SHARED_LIBRARY)\n')
228 f.write(SKIA_TOOLS) 216 f.write(SKIA_TOOLS)
229 217
OLDNEW
« no previous file with comments | « no previous file | platform_tools/android/tests/expectations/Android.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698