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

Unified Diff: components/wug/generator/gen_sources.py

Issue 928163002: Initial implementation of WebUI generator (WUG) toolkit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed problems with component build. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: components/wug/generator/gen_sources.py
diff --git a/components/wug/generator/gen_sources.py b/components/wug/generator/gen_sources.py
new file mode 100644
index 0000000000000000000000000000000000000000..1068ff349087b79d54d83cd974c6b3f087977af2
--- /dev/null
+++ b/components/wug/generator/gen_sources.py
@@ -0,0 +1,22 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import os
+import os.path
+
+from declaration import Declaration
+import export_h
+import view_model
+import web_ui_view
+import util
+
+args = util.CreateArgumentParser().parse_args()
+declaration_path = os.path.relpath(args.declaration, args.root)
+destination = os.path.relpath(args.destination, args.root)
+os.chdir(args.root)
+declaration = Declaration(declaration_path)
Nikita (slow) 2015/02/25 18:21:59 Add file name to exception message.
dzhioev (left Google) 2015/02/26 14:01:39 Done.
+view_model.Gen(declaration, destination)
+web_ui_view.Gen(declaration, destination)
+export_h.Gen(declaration, destination)
+

Powered by Google App Engine
This is Rietveld 408576698