axmol/tools/jsbcc/README

11 lines
505 B
Plaintext
Raw Normal View History

2013-04-30 14:03:54 +08:00
jsbcc stands for JavasSript Byte Code Compiler.
2013-05-08 17:59:18 +08:00
It compiles javascript files to SpiderMonkey byte code files. It supports Mac and win32 now.
2013-04-30 14:03:54 +08:00
Usage:
jsbcc input_js_file [byte_code_file]
2013-05-08 17:59:18 +08:00
Note: it also supports pipeline on Mac, so you can use it like this:
2013-04-30 14:03:54 +08:00
ls *.js | jsbcc
2013-05-08 17:59:18 +08:00
Furthermore, 2 scripts supplied to help: "jsbcc.sh" on Mac and "jsbcc.bat" on win32
jsbcc.sh/jsbcc.bat js_root_dir
js_root_dir is the root directory of js source files. The scripts search and compile js source files recrusively.