diff options
author | Tom Hughes <tom.hughes@palm.com> | 2010-11-22 10:31:40 -0600 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-11-22 13:32:49 -0800 |
commit | 446beebd79d52b24bd8d9e0a44f6378a711f32b9 (patch) | |
tree | 021d60bfdb825519ab102213c65efb5299e6a2db /tools/js2c.py | |
parent | b52b4196ab22227aea7afef100c4ca8e2f1b8729 (diff) | |
download | android-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-x | tools/js2c.py | 8 |
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() |