Adds make aot target to compile everything.

This commit is contained in:
Michael Bebenita 2014-12-19 12:23:55 -08:00
Родитель bda1440778
Коммит 25874807f2
2 изменённых файлов: 13 добавлений и 4 удалений

Просмотреть файл

@ -35,11 +35,12 @@ build/jsc.js: jsc.ts build/j2me.js
j2me: build/j2me.js build/jsc.js
lib: java j2me
js build/jsc.js -cp java/classes.jar -d -jf java/classes.jar > build/classes.jar.js
js build/jsc.js -cp java/classes.jar tests/tests.jar -d -jf tests/tests.jar > build/tests.jar.js
aot: java j2me
js build/jsc.js -cp java/classes.jar -d -jf java/classes.jar -cff classes.txt > build/classes.jar.js
js build/jsc.js -cp java/classes.jar program.jar -d -jf java/classes.jar -cff classes.txt > build/program.jar.js
java -jar tools/closure.jar --formatting PRETTY_PRINT -O SIMPLE build/classes.jar.js > build/classes.jar.cc.js
java -jar tools/closure.jar --formatting PRETTY_PRINT -O SIMPLE build/tests.jar.js > build/tests.jar.cc.js
java -jar tools/closure.jar --formatting PRETTY_PRINT -O SIMPLE build/program.jar.js > build/program.jar.cc.js
shumway: $(SHUMWAY_SRCS)
node tools/tsc.js --sourcemap --target ES5 shumway/references.ts --out build/shumway.js

Просмотреть файл

@ -57,6 +57,14 @@
<script type="text/javascript" src="compatibility.js" defer></script>
<script type="text/javascript" src="main.js" defer></script>
<script type="text/javascript" src="midlet.js" defer></script>
<!-- run make aot to generate these -->
<script type="text/javascript" src="build/classes.jar.js" defer></script>
<script type="text/javascript" src="build/program.jar.js" defer></script>
<!-- run make aot to generate these and wait for closure to finish -->
<!--<script type="text/javascript" src="build/classes.jar.cc.js" defer></script>-->
<!--<script type="text/javascript" src="build/program.jar.cc.js" defer></script>-->
</head>
<body>