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

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

Issue 704393002: Add LOCAL_PICKUP_FILES to dm and bench makefiles. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Simpler approach. 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
« no previous file with comments | « no previous file | platform_tools/android/tests/expectations/tool/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 """Code for generating Android.mk for a tool.""" 8 """Code for generating Android.mk for a tool."""
9 9
10 10
(...skipping 13 matching lines...) Expand all
24 """ 24 """
25 target_file = os.path.join(target_dir, 'Android.mk') 25 target_file = os.path.join(target_dir, 'Android.mk')
26 with open(target_file, 'w') as f: 26 with open(target_file, 'w') as f:
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',
35 ['$(LOCAL_PATH)/../resources'], False)
36
34 makefile_writer.write_include_stlport(f) 37 makefile_writer.write_include_stlport(f)
35 38
36 f.write('include $(BUILD_NATIVE_TEST)\n') 39 f.write('include $(BUILD_NATIVE_TEST)\n')
37 40
38 41
39 def generate_tool(gyp_dir, target_file, skia_trunk, dest_dir, 42 def generate_tool(gyp_dir, target_file, skia_trunk, dest_dir,
40 skia_lib_var_dict, local_module_name, local_module_tags, 43 skia_lib_var_dict, local_module_name, local_module_tags,
41 desired_targets): 44 desired_targets):
42 """Common steps for building one of the skia tools. 45 """Common steps for building one of the skia tools.
43 46
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 full_dest = os.path.join(skia_trunk, dest_dir) 90 full_dest = os.path.join(skia_trunk, dest_dir)
88 else: 91 else:
89 full_dest = dest_dir 92 full_dest = dest_dir
90 93
91 # 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,
92 # 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).
93 if not os.path.exists(full_dest): 96 if not os.path.exists(full_dest):
94 os.mkdir(full_dest) 97 os.mkdir(full_dest)
95 98
96 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 | « no previous file | platform_tools/android/tests/expectations/tool/Android.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698