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

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

Issue 420803003: Add ability to generate/use FDO profiles for Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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 #!/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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 if target_dir: 191 if target_dir:
192 target_file = os.path.join(target_dir, target_file) 192 target_file = os.path.join(target_dir, target_file)
193 with open(target_file, 'w') as f: 193 with open(target_file, 'w') as f:
194 f.write(AUTOGEN_WARNING) 194 f.write(AUTOGEN_WARNING)
195 f.write('BASE_PATH := $(call my-dir)\n') 195 f.write('BASE_PATH := $(call my-dir)\n')
196 write_local_path(f) 196 write_local_path(f)
197 197
198 f.write(DEBUGGING_HELP) 198 f.write(DEBUGGING_HELP)
199 199
200 write_clear_vars(f) 200 write_clear_vars(f)
201 f.write('LOCAL_FDO_SUPPORT := true\n')
201 f.write('LOCAL_ARM_MODE := thumb\n') 202 f.write('LOCAL_ARM_MODE := thumb\n')
202 203
203 # need a flag to tell the C side when we're on devices with large memory 204 # need a flag to tell the C side when we're on devices with large memory
204 # budgets (i.e. larger than the low-end devices that initially shipped) 205 # budgets (i.e. larger than the low-end devices that initially shipped)
205 # On arm, only define the flag if it has VFP. For all other architectures, 206 # On arm, only define the flag if it has VFP. For all other architectures,
206 # always define the flag. 207 # always define the flag.
207 f.write('ifeq ($(TARGET_ARCH),arm)\n') 208 f.write('ifeq ($(TARGET_ARCH),arm)\n')
208 f.write('\tifeq ($(ARCH_ARM_HAVE_VFP),true)\n') 209 f.write('\tifeq ($(ARCH_ARM_HAVE_VFP),true)\n')
209 f.write('\t\tLOCAL_CFLAGS += -DANDROID_LARGE_MEMORY_DEVICE\n') 210 f.write('\t\tLOCAL_CFLAGS += -DANDROID_LARGE_MEMORY_DEVICE\n')
210 f.write('\tendif\n') 211 f.write('\tendif\n')
(...skipping 14 matching lines...) Expand all
225 if data.condition: 226 if data.condition:
226 f.write('ifeq ($(%s), true)\n' % data.condition) 227 f.write('ifeq ($(%s), true)\n' % data.condition)
227 write_local_vars(f, data.vars_dict, True, data.name) 228 write_local_vars(f, data.vars_dict, True, data.name)
228 if data.condition: 229 if data.condition:
229 f.write('endif\n\n') 230 f.write('endif\n\n')
230 231
231 write_include_stlport(f) 232 write_include_stlport(f)
232 f.write('include $(BUILD_SHARED_LIBRARY)\n') 233 f.write('include $(BUILD_SHARED_LIBRARY)\n')
233 f.write(SKIA_TOOLS) 234 f.write(SKIA_TOOLS)
234 235
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