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

Unified Diff: compiler/generate_source_list.py

Issue 13982010: Use intermediate file containing javac arguments to overcome windows limitations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiler/.gitignore ('k') | compiler/scripts/generate_my_projects.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/generate_source_list.py
diff --git a/compiler/generate_source_list.py b/compiler/generate_source_list.py
index 4fe72a54a2c29a5999e6f348f3a9d3483c5af392..d0dfa5bae16c47b8904a9c2ac953ccc2145e1591 100644
--- a/compiler/generate_source_list.py
+++ b/compiler/generate_source_list.py
@@ -57,6 +57,10 @@ class Generator:
out.write(''' r'%s/%s',%s''' % (self.path, filename,'\n'))
out.write(" ],\n")
+ def _print_txt_files(self, out, files):
+ for filename in files:
+ out.write('%s\n' % os.path.join(self.path, filename))
+
def _print_ant_files(self, out, name, files):
out.write(" <filelist id='%s' dir='%s'>\n" % (name, self.path))
for filename in files:
@@ -89,6 +93,7 @@ class Generator:
def generate(self):
self._list_files()
+
file_name = self.output + '.gypi';
gypi = self._make_output(file_name)
gypi.write("{\n 'variables': {\n")
@@ -96,6 +101,7 @@ class Generator:
self._print_gypi_files(gypi, self.name + '_resources', self.resources)
gypi.write(" },\n}\n")
self._close(file_name, gypi)
+
file_name = self.output + '.xml'
ant = self._make_output(file_name)
ant.write("<project>\n")
@@ -104,6 +110,11 @@ class Generator:
ant.write("</project>\n")
self._close(file_name, ant)
+ file_name = self.output + '.txt';
+ txt = self._make_output(file_name)
+ self._print_txt_files(txt, self.sources)
+ self._close(file_name, txt)
+
def Main(script_name = None, name = None, output = None, path = None,
*rest):
« no previous file with comments | « compiler/.gitignore ('k') | compiler/scripts/generate_my_projects.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698