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

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

Issue 210173002: Add tools to generated Android.mk (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 9 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 | « no previous file | 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 """ 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 """ 64 """
65 ############################################################################### 65 ###############################################################################
66 # 66 #
67 # THIS FILE IS AUTOGENERATED BY GYP_TO_ANDROID.PY. DO NOT EDIT. 67 # THIS FILE IS AUTOGENERATED BY GYP_TO_ANDROID.PY. DO NOT EDIT.
68 # 68 #
69 ############################################################################### 69 ###############################################################################
70 70
71 """ 71 """
72 ) 72 )
73 73
74
75 DEBUGGING_HELP = ( 74 DEBUGGING_HELP = (
76 """ 75 """
77 ############################################################################### 76 ###############################################################################
78 # 77 #
79 # PROBLEMS WITH SKIA DEBUGGING?? READ THIS... 78 # PROBLEMS WITH SKIA DEBUGGING?? READ THIS...
80 # 79 #
81 # The debug build results in changes to the Skia headers. This means that those 80 # The debug build results in changes to the Skia headers. This means that those
82 # using libskia must also be built with the debug version of the Skia headers. 81 # using libskia must also be built with the debug version of the Skia headers.
83 # There are a few scenarios where this comes into play: 82 # There are a few scenarios where this comes into play:
84 # 83 #
85 # (1) You're building debug code that depends on libskia. 84 # (1) You're building debug code that depends on libskia.
86 # (a) If libskia is built in release, then define SK_RELEASE when building 85 # (a) If libskia is built in release, then define SK_RELEASE when building
87 # your sources. 86 # your sources.
88 # (b) If libskia is built with debugging (see step 2), then no changes are 87 # (b) If libskia is built with debugging (see step 2), then no changes are
89 # needed since your sources and libskia have been built with SK_DEBUG. 88 # needed since your sources and libskia have been built with SK_DEBUG.
90 # (2) You're building libskia in debug mode. 89 # (2) You're building libskia in debug mode.
91 # (a) RECOMMENDED: You can build the entire system in debug mode. Do this by 90 # (a) RECOMMENDED: You can build the entire system in debug mode. Do this by
92 # updating your build/config.mk to include -DSK_DEBUG on the line that 91 # updating your build/config.mk to include -DSK_DEBUG on the line that
93 # defines COMMON_GLOBAL_CFLAGS 92 # defines COMMON_GLOBAL_CFLAGS
94 # (b) You can update all the users of libskia to define SK_DEBUG when they are 93 # (b) You can update all the users of libskia to define SK_DEBUG when they are
95 # building their sources. 94 # building their sources.
96 # 95 #
97 # NOTE: If neither SK_DEBUG or SK_RELEASE are defined then Skia checks NDEBUG to 96 # NOTE: If neither SK_DEBUG or SK_RELEASE are defined then Skia checks NDEBUG to
98 # determine which build type to use. 97 # determine which build type to use.
99 ############################################################################### 98 ###############################################################################
100 99
101 """ 100 """
102 ) 101 )
103 102
103 SKIA_TOOLS = (
104 """
105 #############################################################
106 # Build the skia tools
107 #
108
109 # benchmark (timings)
110 #include $(BASE_PATH)/bench/Android.mk
111
112 # golden-master (fidelity / regression test)
113 #include $(BASE_PATH)/gm/Android.mk
114
115 # unit-tests
116 #include $(BASE_PATH)/tests/Android.mk
117
118 # pathOps unit-tests
119 # TODO include those sources!
120 """
121 )
122
123
104 class VarsDictData(object): 124 class VarsDictData(object):
105 """ 125 """
106 Helper class for keeping a VarsDict along with a name and an optional 126 Helper class for keeping a VarsDict along with a name and an optional
107 condition. 127 condition.
108 """ 128 """
109 def __init__(self, vars_dict, name, condition=None): 129 def __init__(self, vars_dict, name, condition=None):
110 """ 130 """
111 Create a new VarsDictData. 131 Create a new VarsDictData.
112 @param vars_dict A VarsDict. Can be accessed via self.vars_dict. 132 @param vars_dict A VarsDict. Can be accessed via self.vars_dict.
113 @param name Name associated with the VarsDict. Can be accessed via 133 @param name Name associated with the VarsDict. Can be accessed via
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 for data in deviations_from_common: 192 for data in deviations_from_common:
173 if data.condition: 193 if data.condition:
174 f.write('ifeq ($(%s), true)\n' % data.condition) 194 f.write('ifeq ($(%s), true)\n' % data.condition)
175 write_local_vars(f, data.vars_dict, True, data.name) 195 write_local_vars(f, data.vars_dict, True, data.name)
176 if data.condition: 196 if data.condition:
177 f.write('endif\n\n') 197 f.write('endif\n\n')
178 198
179 f.write('include external/stlport/libstlport.mk\n') 199 f.write('include external/stlport/libstlport.mk\n')
180 f.write('LOCAL_MODULE:= libskia\n') 200 f.write('LOCAL_MODULE:= libskia\n')
181 f.write('include $(BUILD_SHARED_LIBRARY)\n') 201 f.write('include $(BUILD_SHARED_LIBRARY)\n')
202 f.write(SKIA_TOOLS)
182 203
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698