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

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

Issue 2359793002: Add mips dsp arch variants to gyp_to_android.py. (Closed)
Patch Set: Created 4 years, 2 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 #!/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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 261
262 # update the provided LOCAL_MODULE with a _static suffix 262 # update the provided LOCAL_MODULE with a _static suffix
263 local_module = common['LOCAL_MODULE'][0] 263 local_module = common['LOCAL_MODULE'][0]
264 static_local_module = local_module + '_static' 264 static_local_module = local_module + '_static'
265 common['LOCAL_MODULE'].reset() 265 common['LOCAL_MODULE'].reset()
266 common['LOCAL_MODULE'].add(static_local_module) 266 common['LOCAL_MODULE'].add(static_local_module)
267 267
268 write_local_vars(f, common, False, None) 268 write_local_vars(f, common, False, None)
269 269
270 for data in deviations_from_common: 270 for data in deviations_from_common:
271 if data.condition: 271 if data.name == 'mips':
272 f.write('ifeq ($(%s), true)\n' % data.condition) 272 if data.condition =='mips32r2dspr2-fp' :
273 write_local_vars(f, data.vars_dict, True, data.name) 273 f.write('ifeq ($(TARGET_ARCH_VARIANT), %s)\n' % (data.condition))
274 if data.condition: 274 write_local_vars(f, data.vars_dict, True, data.name)
275 f.write('endif\n\n') 275 elif data.condition =='mips32r2dsp-fp' :
276 f.write('else ifeq ($(TARGET_ARCH_VARIANT), %s)\n' % (data.condition))
277 write_local_vars(f, data.vars_dict, True, data.name)
278 else :
279 f.write('else\n')
280 write_local_vars(f, data.vars_dict, True, data.name)
281 f.write('endif\n\n')
282 else :
283 if data.condition:
284 f.write('ifeq ($(%s), true)\n' % data.condition)
285 write_local_vars(f, data.vars_dict, True, data.name)
286 if data.condition:
287 f.write('endif\n\n')
276 288
277 f.write('LOCAL_MODULE_CLASS := STATIC_LIBRARIES\n') 289 f.write('LOCAL_MODULE_CLASS := STATIC_LIBRARIES\n')
278 f.write('include $(BUILD_STATIC_LIBRARY)\n\n') 290 f.write('include $(BUILD_STATIC_LIBRARY)\n\n')
279 291
280 f.write(SHARED_HEADER) 292 f.write(SHARED_HEADER)
281 f.write(CLEAR_VARS) 293 f.write(CLEAR_VARS)
282 f.write('LOCAL_MODULE_CLASS := SHARED_LIBRARIES\n') 294 f.write('LOCAL_MODULE_CLASS := SHARED_LIBRARIES\n')
283 f.write('LOCAL_MODULE := %s\n' % local_module) 295 f.write('LOCAL_MODULE := %s\n' % local_module)
284 f.write('LOCAL_WHOLE_STATIC_LIBRARIES := %s\n' % static_local_module) 296 f.write('LOCAL_WHOLE_STATIC_LIBRARIES := %s\n' % static_local_module)
285 write_group(f, 'LOCAL_EXPORT_C_INCLUDE_DIRS', 297 write_group(f, 'LOCAL_EXPORT_C_INCLUDE_DIRS',
286 common['LOCAL_EXPORT_C_INCLUDE_DIRS'], False) 298 common['LOCAL_EXPORT_C_INCLUDE_DIRS'], False)
287 f.write('include $(BASE_PATH)/skia_static_deps.mk\n') 299 f.write('include $(BASE_PATH)/skia_static_deps.mk\n')
288 f.write('include $(BUILD_SHARED_LIBRARY)\n') 300 f.write('include $(BUILD_SHARED_LIBRARY)\n')
289 301
290 f.write(SKIA_TOOLS) 302 f.write(SKIA_TOOLS)
291 303
OLDNEW
« no previous file with comments | « platform_tools/android/gyp_gen/android_framework_gyp.py ('k') | platform_tools/android/gyp_gen/tool_makefile_writer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698