2015-05-22 16:59:33 +02:00
|
|
|
OPT=--compilation_level SIMPLE_OPTIMIZATIONS
|
2015-05-27 10:44:31 +02:00
|
|
|
|
|
|
|
ifeq ($(TYPE),RELEASE)
|
2015-06-30 15:13:49 +02:00
|
|
|
CLOSURE=java -jar ../utils/closure-compiler/closure-compiler.jar
|
2015-05-27 10:44:31 +02:00
|
|
|
else
|
2015-06-30 15:13:49 +02:00
|
|
|
CLOSURE=../utils/simple-compiler/compiler.sh
|
2015-05-27 10:44:31 +02:00
|
|
|
endif
|
2015-05-22 16:59:33 +02:00
|
|
|
|
2015-06-22 09:41:59 +02:00
|
|
|
all: List ListTest Socket Three Stats ThreeTools Bouncing Multisphere StreamingSimulator PrototypeTools PrototypeReplay PrototypeInteractive Tutorial
|
2015-06-09 17:36:21 +02:00
|
|
|
|
|
|
|
Socket:
|
|
|
|
cp socket.io/socket.io.min.js ../static/js
|
|
|
|
$(CLOSURE) $(OPT) \
|
2015-06-17 11:09:15 +02:00
|
|
|
--js ProgressiveLoaderGeometry.js \
|
2015-06-09 17:36:21 +02:00
|
|
|
--js ProgressiveLoader.js >> ../static/js/socket.io.min.js
|
2015-05-22 16:59:33 +02:00
|
|
|
|
2015-06-10 17:24:07 +02:00
|
|
|
List:
|
|
|
|
$(CLOSURE) $(OPT) \
|
|
|
|
--js List.js \
|
|
|
|
--js_output_file ../static/js/List.min.js
|
|
|
|
|
|
|
|
ListTest:
|
|
|
|
$(CLOSURE) $(OPT) \
|
|
|
|
--js ListTest.js \
|
|
|
|
--js_output_file ../static/js/ListTest.min.js
|
|
|
|
|
|
|
|
|
2015-05-22 16:59:33 +02:00
|
|
|
Three:
|
|
|
|
cp three/three.min.js ../static/js/
|
2015-05-28 16:10:47 +02:00
|
|
|
$(CLOSURE) $(OPT) \
|
|
|
|
--js three/threex.transparency.js >> ../static/js/three.min.js
|
2015-05-22 16:59:33 +02:00
|
|
|
|
|
|
|
Stats:
|
|
|
|
cp three/stats.min.js ../static/js/
|
|
|
|
|
|
|
|
ThreeTools:
|
|
|
|
$(CLOSURE) $(OPT) \
|
|
|
|
--js three/DDSLoader.js \
|
|
|
|
--js three/MTLLoader.js \
|
|
|
|
--js three/OBJMTLLoader.js \
|
|
|
|
--js three/OBJLoader.js \
|
|
|
|
--js three/OrbitControls.js \
|
|
|
|
--js Tools.js \
|
|
|
|
--js_output_file ../static/js/threetools.min.js
|
|
|
|
|
|
|
|
Bouncing:
|
|
|
|
$(CLOSURE) $(OPT) \
|
|
|
|
--js Camera.js \
|
|
|
|
--js Cube.js \
|
|
|
|
--js BouncingCube.js \
|
|
|
|
--js bouncing/BouncingMain.js \
|
|
|
|
--js_output_file ../static/js/bouncing.min.js
|
|
|
|
|
|
|
|
Multisphere:
|
|
|
|
$(CLOSURE) $(OPT) \
|
|
|
|
--js Camera.js \
|
|
|
|
--js Cube.js \
|
|
|
|
--js multisphere/MultiSphere.js \
|
|
|
|
--js_output_file ../static/js/multisphere.min.js
|
|
|
|
|
|
|
|
StreamingSimulator:
|
|
|
|
$(CLOSURE) $(OPT) \
|
|
|
|
--js Camera.js \
|
|
|
|
--js Cube.js \
|
|
|
|
--js ProgressiveSphere.js \
|
|
|
|
--js stream/main.js \
|
|
|
|
--js_output_file ../static/js/streamingsimulator.min.js
|
|
|
|
|
|
|
|
PrototypeTools:
|
|
|
|
$(CLOSURE) $(OPT) \
|
2015-06-23 15:31:23 +02:00
|
|
|
--js History.js \
|
2015-06-25 10:56:20 +02:00
|
|
|
--js StartCanvas.js \
|
2015-05-22 16:59:33 +02:00
|
|
|
--js Hermite.js \
|
|
|
|
--js Camera.js \
|
|
|
|
--js PointerCamera.js \
|
|
|
|
--js CameraContainer.js \
|
2015-06-19 17:45:52 +02:00
|
|
|
--js MousePointer.js \
|
2015-05-22 16:59:33 +02:00
|
|
|
--js prototype/ArrowCamera.js \
|
|
|
|
--js prototype/FixedCamera.js \
|
|
|
|
--js prototype/OldFixedCamera.js \
|
|
|
|
--js prototype/ReverseCamera.js \
|
|
|
|
--js prototype/ReplayCamera.js \
|
|
|
|
--js prototype/initScene.js \
|
|
|
|
--js prototype/raycasterTools.js \
|
|
|
|
--js prototype/Previewer.js \
|
|
|
|
--js prototype/ButtonManager.js \
|
|
|
|
--js prototype/Coin.js \
|
|
|
|
--js Logger.js \
|
|
|
|
--js_output_file ../static/js/prototypetools.min.js
|
|
|
|
|
|
|
|
PrototypeInteractive:
|
|
|
|
$(CLOSURE) $(OPT) \
|
|
|
|
--js prototype/main.js \
|
|
|
|
--js_output_file ../static/js/prototypeinteractive.min.js
|
|
|
|
|
|
|
|
PrototypeReplay:
|
|
|
|
$(CLOSURE) $(OPT) \
|
|
|
|
--js prototype/replay.js \
|
|
|
|
--js_output_file ../static/js/replay.min.js
|
|
|
|
|
2015-05-26 11:49:24 +02:00
|
|
|
Tutorial:
|
|
|
|
$(CLOSURE) $(OPT) \
|
2015-05-27 10:44:31 +02:00
|
|
|
--js TutoCamera.js \
|
|
|
|
--js prototype/TutorialSteps.js \
|
2015-05-26 11:49:24 +02:00
|
|
|
--js prototype/tutorial.js \
|
|
|
|
--js_output_file ../static/js/tutorial.min.js
|
|
|
|
|
2015-05-22 16:59:33 +02:00
|
|
|
clean:
|
2015-05-22 18:00:09 +02:00
|
|
|
rm -rf ../static/js/*
|