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

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

Issue 718793003: Revert of Move from libstlport to libc++ for Android framework builds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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 """Code for generating Android.mk for a tool.""" 8 """Code for generating Android.mk for a tool."""
9 9
10 10
(...skipping 16 matching lines...) Expand all
27 f.write(makefile_writer.AUTOGEN_WARNING) 27 f.write(makefile_writer.AUTOGEN_WARNING)
28 28
29 makefile_writer.write_local_path(f) 29 makefile_writer.write_local_path(f)
30 makefile_writer.write_clear_vars(f) 30 makefile_writer.write_clear_vars(f)
31 31
32 makefile_writer.write_local_vars(f, var_dict, False, None) 32 makefile_writer.write_local_vars(f, var_dict, False, None)
33 33
34 makefile_writer.write_group(f, 'LOCAL_PICKUP_FILES', 34 makefile_writer.write_group(f, 'LOCAL_PICKUP_FILES',
35 ['$(LOCAL_PATH)/../resources'], False) 35 ['$(LOCAL_PATH)/../resources'], False)
36 36
37 makefile_writer.write_include_stlport(f)
38
37 f.write('include $(BUILD_NATIVE_TEST)\n') 39 f.write('include $(BUILD_NATIVE_TEST)\n')
38 40
39 41
40 def generate_tool(gyp_dir, target_file, skia_trunk, dest_dir, 42 def generate_tool(gyp_dir, target_file, skia_trunk, dest_dir,
41 skia_lib_var_dict, local_module_name, local_module_tags, 43 skia_lib_var_dict, local_module_name, local_module_tags,
42 desired_targets): 44 desired_targets):
43 """Common steps for building one of the skia tools. 45 """Common steps for building one of the skia tools.
44 46
45 Parse a gyp file and create an Android.mk for this tool. 47 Parse a gyp file and create an Android.mk for this tool.
46 48
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 full_dest = os.path.join(skia_trunk, dest_dir) 90 full_dest = os.path.join(skia_trunk, dest_dir)
89 else: 91 else:
90 full_dest = dest_dir 92 full_dest = dest_dir
91 93
92 # If the path does not exist, create it. This will happen during testing, 94 # If the path does not exist, create it. This will happen during testing,
93 # where there is no subdirectory for each tool (just a temporary folder). 95 # where there is no subdirectory for each tool (just a temporary folder).
94 if not os.path.exists(full_dest): 96 if not os.path.exists(full_dest):
95 os.mkdir(full_dest) 97 os.mkdir(full_dest)
96 98
97 write_tool_android_mk(target_dir=full_dest, var_dict=var_dict) 99 write_tool_android_mk(target_dir=full_dest, var_dict=var_dict)
OLDNEW
« no previous file with comments | « platform_tools/android/gyp_gen/makefile_writer.py ('k') | platform_tools/android/tests/expectations/Android.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698