OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |