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

Unified Diff: tools/json_schema_compiler/create_externs.sh

Issue 511943003: Generate externs automatically from json/idl files: minor changes. Base URL: https://chromium.googlesource.com/chromium/src.git@true_master
Patch Set: Created 6 years, 4 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: tools/json_schema_compiler/create_externs.sh
diff --git a/tools/json_schema_compiler/create_externs.sh b/tools/json_schema_compiler/create_externs.sh
new file mode 100755
index 0000000000000000000000000000000000000000..f86bcbc6d545d163d24d042e70636a3e5638445b
--- /dev/null
+++ b/tools/json_schema_compiler/create_externs.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+schema_compiler_dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
+chromium_src_dir="${schema_compiler_dir}/../.."
+
+set -e
+
+for f in ${chromium_src_dir}/chrome/common/extensions/api/*.idl; do
+ "${schema_compiler_dir}/compiler.py" "${f}" \
+ --root=${chromium_src_dir} \
+ --generator=externs
+ # Just printing to stdout for now
Tyler Breisacher (Chromium) 2015/02/25 00:17:23 Let's remove this and just make it part of the off
+done

Powered by Google App Engine
This is Rietveld 408576698