2013-03-19 17:21:01 +08:00
|
|
|
<?xml version="1.0"?>
|
2013-04-06 22:00:52 +08:00
|
|
|
<project name="Javascript compress project" basedir="$PATH_TO_COCOS2D" default="compile">
|
2013-03-19 17:21:01 +08:00
|
|
|
|
|
|
|
<taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask"
|
|
|
|
classpath="$PATH_TO_COMPILER"/>
|
|
|
|
|
|
|
|
<target name="compile">
|
|
|
|
<!--advanced / simple-->
|
|
|
|
<jscomp compilationLevel="advanced" warning="quiet"
|
2013-03-19 23:53:01 +08:00
|
|
|
debug="false" output="$PATH_TO_OUTPUT">
|
2013-04-06 22:00:52 +08:00
|
|
|
<externs dir="$PATH_TO_EXCLUSIONS">
|
2013-03-19 17:21:01 +08:00
|
|
|
<file name="obfuscate_exclude_cocos2d.js"/>
|
|
|
|
<file name="obfuscate_exclude_chipmunk.js"/>
|
|
|
|
</externs>
|
2013-04-06 22:00:52 +08:00
|
|
|
<sources dir="$PATH_TO_JS_FRAMEWORK">
|
|
|
|
<file name="jsb_cocos2d_constants.js"/>
|
|
|
|
<file name="jsb_cocos2d.js"/>
|
|
|
|
<file name="jsb_cocos2d_extension.js"/>
|
|
|
|
<file name="jsb_chipmunk_constants.js"/>
|
|
|
|
<file name="jsb_chipmunk.js"/>
|
|
|
|
<file name="jsb_opengl_constants.js"/>
|
|
|
|
<file name="jsb_opengl.js"/>
|
|
|
|
<file name="jsb_cocosbuilder.js"/>
|
|
|
|
<file name="jsb_sys.js"/>
|
|
|
|
</sources>
|
|
|
|
<sources dir="$PATH_TO_JS_SOURCES">
|
|
|
|
$JS_SOURCES
|
2013-03-19 17:21:01 +08:00
|
|
|
</sources>
|
|
|
|
</jscomp>
|
|
|
|
</target>
|
|
|
|
</project>
|