summaryrefslogtreecommitdiff
path: root/tools/js2c.py
diff options
context:
space:
mode:
authorTom Hughes <tom.hughes@palm.com>2010-11-22 10:31:40 -0600
committerRyan Dahl <ry@tinyclouds.org>2010-11-22 13:32:49 -0800
commit446beebd79d52b24bd8d9e0a44f6378a711f32b9 (patch)
tree021d60bfdb825519ab102213c65efb5299e6a2db /tools/js2c.py
parentb52b4196ab22227aea7afef100c4ca8e2f1b8729 (diff)
downloadandroid-node-v8-446beebd79d52b24bd8d9e0a44f6378a711f32b9.tar.gz
android-node-v8-446beebd79d52b24bd8d9e0a44f6378a711f32b9.tar.bz2
android-node-v8-446beebd79d52b24bd8d9e0a44f6378a711f32b9.zip
Add cmake build support.
Squashed commit of ca128f7dcd28cbcfba154c8577ed54d4aa71dd02 with contributions from Mark Constable (markc@renta.net) and Daniel Gröber (darklord@darkboxed.org).
Diffstat (limited to 'tools/js2c.py')
-rwxr-xr-xtools/js2c.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/js2c.py b/tools/js2c.py
index db4885553b..880ac529d4 100755
--- a/tools/js2c.py
+++ b/tools/js2c.py
@@ -351,3 +351,11 @@ def JS2C(source, target):
'get_script_name_cases': "".join(get_script_name_cases)
})
output.close()
+
+def main():
+ natives = sys.argv[1]
+ source_files = sys.argv[2:]
+ JS2C(source_files, [natives])
+
+if __name__ == "__main__":
+ main()