OLD | NEW |
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 # | 117 # |
118 | 118 |
119 # benchmark (timings) | 119 # benchmark (timings) |
120 include $(BASE_PATH)/bench/Android.mk | 120 include $(BASE_PATH)/bench/Android.mk |
121 | 121 |
122 # golden-master (fidelity / regression test) | 122 # golden-master (fidelity / regression test) |
123 include $(BASE_PATH)/gm/Android.mk | 123 include $(BASE_PATH)/gm/Android.mk |
124 | 124 |
125 # unit-tests | 125 # unit-tests |
126 include $(BASE_PATH)/tests/Android.mk | 126 include $(BASE_PATH)/tests/Android.mk |
| 127 |
| 128 # diamond-master (one test to rule them all) |
| 129 include $(BASE_PATH)/dm/Android.mk |
127 """ | 130 """ |
128 ) | 131 ) |
129 | 132 |
130 | 133 |
131 class VarsDictData(object): | 134 class VarsDictData(object): |
132 """Helper class to keep a VarsDict along with a name and optional condition. | 135 """Helper class to keep a VarsDict along with a name and optional condition. |
133 """ | 136 """ |
134 def __init__(self, vars_dict, name, condition=None): | 137 def __init__(self, vars_dict, name, condition=None): |
135 """Create a new VarsDictData. | 138 """Create a new VarsDictData. |
136 | 139 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 if data.condition: | 224 if data.condition: |
222 f.write('ifeq ($(%s), true)\n' % data.condition) | 225 f.write('ifeq ($(%s), true)\n' % data.condition) |
223 write_local_vars(f, data.vars_dict, True, data.name) | 226 write_local_vars(f, data.vars_dict, True, data.name) |
224 if data.condition: | 227 if data.condition: |
225 f.write('endif\n\n') | 228 f.write('endif\n\n') |
226 | 229 |
227 write_include_stlport(f) | 230 write_include_stlport(f) |
228 f.write('include $(BUILD_SHARED_LIBRARY)\n') | 231 f.write('include $(BUILD_SHARED_LIBRARY)\n') |
229 f.write(SKIA_TOOLS) | 232 f.write(SKIA_TOOLS) |
230 | 233 |
OLD | NEW |