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

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

Issue 1688383005: Use a statically linked libhwui for testing. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 | « gyp/tests.gypi ('k') | 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 """Code for generating Android.mk for a tool.""" 8 """Code for generating Android.mk for a tool."""
9 9
10 10
(...skipping 24 matching lines...) Expand all
35 with open(target_file, 'w') as f: 35 with open(target_file, 'w') as f:
36 f.write(makefile_writer.AUTOGEN_WARNING) 36 f.write(makefile_writer.AUTOGEN_WARNING)
37 37
38 f.write(makefile_writer.LOCAL_PATH) 38 f.write(makefile_writer.LOCAL_PATH)
39 f.write(makefile_writer.CLEAR_VARS) 39 f.write(makefile_writer.CLEAR_VARS)
40 40
41 makefile_writer.write_local_vars(f, var_dict, False, None) 41 makefile_writer.write_local_vars(f, var_dict, False, None)
42 42
43 f.write(SKIA_RESOURCES) 43 f.write(SKIA_RESOURCES)
44 f.write('include $(LOCAL_PATH)/../skia_static_deps.mk\n') 44 f.write('include $(LOCAL_PATH)/../skia_static_deps.mk\n')
45 if 'libhwui_static' in var_dict['LOCAL_STATIC_LIBRARIES']:
46 f.write('include frameworks/base/libs/hwui/hwui_static_deps.mk\n')
45 f.write('include $(BUILD_NATIVE_TEST)\n') 47 f.write('include $(BUILD_NATIVE_TEST)\n')
46 48
47 49
48 def generate_tool(gyp_dir, target_file, skia_trunk, dest_dir, 50 def generate_tool(gyp_dir, target_file, skia_trunk, dest_dir,
49 skia_lib_var_dict, local_module_name, local_module_tags, 51 skia_lib_var_dict, local_module_name, local_module_tags,
50 desired_targets, gyp_source_dir=None): 52 desired_targets, gyp_source_dir=None):
51 """Common steps for building one of the skia tools. 53 """Common steps for building one of the skia tools.
52 54
53 Parse a gyp file and create an Android.mk for this tool. 55 Parse a gyp file and create an Android.mk for this tool.
54 56
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 full_dest = os.path.join(skia_trunk, dest_dir) 100 full_dest = os.path.join(skia_trunk, dest_dir)
99 else: 101 else:
100 full_dest = dest_dir 102 full_dest = dest_dir
101 103
102 # If the path does not exist, create it. This will happen during testing, 104 # If the path does not exist, create it. This will happen during testing,
103 # where there is no subdirectory for each tool (just a temporary folder). 105 # where there is no subdirectory for each tool (just a temporary folder).
104 if not os.path.exists(full_dest): 106 if not os.path.exists(full_dest):
105 os.mkdir(full_dest) 107 os.mkdir(full_dest)
106 108
107 write_tool_android_mk(target_dir=full_dest, var_dict=var_dict) 109 write_tool_android_mk(target_dir=full_dest, var_dict=var_dict)
OLDNEW
« no previous file with comments | « gyp/tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698