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

Side by Side Diff: pylib/gyp/generator/android.py

Issue 11230031: Android: replace NONE module class with GYP. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | test/lib/TestGyp.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 Google Inc. All rights reserved. 1 # Copyright (c) 2012 Google Inc. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Notes: 5 # Notes:
6 # 6 #
7 # This generates makefiles suitable for inclusion into the Android build system 7 # This generates makefiles suitable for inclusion into the Android build system
8 # via an Android.mk file. It is based on make.py, the standard makefile 8 # via an Android.mk file. It is based on make.py, the standard makefile
9 # generator. 9 # generator.
10 # 10 #
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 self.toolset = spec['toolset'] 156 self.toolset = spec['toolset']
157 157
158 deps, link_deps = self.ComputeDeps(spec) 158 deps, link_deps = self.ComputeDeps(spec)
159 159
160 # Some of the generation below can add extra output, sources, or 160 # Some of the generation below can add extra output, sources, or
161 # link dependencies. All of the out params of the functions that 161 # link dependencies. All of the out params of the functions that
162 # follow use names like extra_foo. 162 # follow use names like extra_foo.
163 extra_outputs = [] 163 extra_outputs = []
164 extra_sources = [] 164 extra_sources = []
165 165
166 self.android_class = MODULE_CLASSES.get(self.type, 'NONE') 166 self.android_class = MODULE_CLASSES.get(self.type, 'GYP')
Nico 2012/10/22 17:15:22 'GYP' is fairly general. Maybe 'GYP_NONE'?
Torne 2012/10/23 09:54:03 That would go back to having two directories, thou
167 self.android_module = self.ComputeAndroidModule(spec) 167 self.android_module = self.ComputeAndroidModule(spec)
168 (self.android_stem, self.android_suffix) = self.ComputeOutputParts(spec) 168 (self.android_stem, self.android_suffix) = self.ComputeOutputParts(spec)
169 self.output = self.output_binary = self.ComputeOutput(spec) 169 self.output = self.output_binary = self.ComputeOutput(spec)
170 170
171 # Standard header. 171 # Standard header.
172 self.WriteLn('include $(CLEAR_VARS)\n') 172 self.WriteLn('include $(CLEAR_VARS)\n')
173 173
174 # Module class and name. 174 # Module class and name.
175 self.WriteLn('LOCAL_MODULE_CLASS := ' + self.android_class) 175 self.WriteLn('LOCAL_MODULE_CLASS := ' + self.android_class)
176 self.WriteLn('LOCAL_MODULE := ' + self.android_module) 176 self.WriteLn('LOCAL_MODULE := ' + self.android_module)
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 for include_file in sorted(include_list): 1083 for include_file in sorted(include_list):
1084 root_makefile.write('include $(LOCAL_PATH)/' + include_file + '\n') 1084 root_makefile.write('include $(LOCAL_PATH)/' + include_file + '\n')
1085 root_makefile.write('\n') 1085 root_makefile.write('\n')
1086 1086
1087 if generator_flags.get('auto_regeneration', True): 1087 if generator_flags.get('auto_regeneration', True):
1088 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files) 1088 WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files)
1089 1089
1090 root_makefile.write(SHARED_FOOTER) 1090 root_makefile.write(SHARED_FOOTER)
1091 1091
1092 root_makefile.close() 1092 root_makefile.close()
OLDNEW
« no previous file with comments | « no previous file | test/lib/TestGyp.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698