axmol/tools/jsbcc
sunzhuoshi 4a25684292 Merge branch 'master' of https://github.com/cocos2d/cocos2d-x into cocos2d-master
Conflicts:
	tools/jsbcc/src/main.cpp
2013-05-08 18:22:18 +08:00
..
jsbcc.xcodeproj Added support for javascript byte code 2013-04-30 03:29:56 +08:00
src Merge branch 'master' of https://github.com/cocos2d/cocos2d-x into cocos2d-master 2013-05-08 18:22:18 +08:00
README Updated README 2013-05-08 17:59:18 +08:00
jsbcc-vc2010.vcxproj Added win32 support 2013-05-08 17:22:58 +08:00
jsbcc-vc2010.vcxproj.filters Added win32 support 2013-05-08 17:22:58 +08:00

README

jsbcc stands for JavasSript Byte Code Compiler. 
It compiles javascript files to SpiderMonkey byte code files. It supports Mac and win32 now.
Usage:
	jsbcc input_js_file [byte_code_file]
Note: it also supports pipeline on Mac, so you can use it like this:
	ls *.js | jsbcc

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.