3d-interface/js/Makefile

98 lines
2.9 KiB
Makefile
Raw Normal View History

OPT=--compilation_level SIMPLE_OPTIMIZATIONS
2015-05-27 09:44:31 +01:00
ifeq ($(TYPE),RELEASE)
2015-06-30 14:13:49 +01:00
CLOSURE=java -jar ../utils/closure-compiler/closure-compiler.jar
2015-05-27 09:44:31 +01:00
else
2015-06-30 14:13:49 +01:00
CLOSURE=../utils/simple-compiler/compiler.sh
2015-05-27 09:44:31 +01:00
endif
2015-07-01 14:03:11 +01:00
all: L3D L3DP Socket Three Stats Bouncing Multisphere StreamingSimulator PrototypeReplay PrototypeInteractive Tutorial
2015-06-09 16:36:21 +01:00
2015-07-01 14:03:11 +01:00
L3D:
2015-06-09 16:36:21 +01:00
$(CLOSURE) $(OPT) \
2015-07-01 14:03:11 +01:00
--js l3d/src/math/Tools.js \
--js l3d/src/math/Hermite.js \
--js l3d/src/utils/List.js \
--js l3d/src/utils/ListTest.js \
--js l3d/src/utils/CameraSelecter.js \
--js l3d/src/utils/Logger.js \
--js l3d/src/utils/Objects.js \
--js l3d/src/utils/History.js \
--js l3d/src/canvases/StartCanvas.js \
--js l3d/src/canvases/MousePointer.js \
--js l3d/src/canvases/Previewer.js \
--js l3d/src/loaders/ProgressiveLoaderGeometry.js \
--js l3d/src/loaders/ProgressiveLoader.js \
--js l3d/src/recommendations/OldFixedCamera.js \
--js l3d/src/recommendations/ArrowCamera.js \
--js l3d/src/recommendations/FixedCamera.js \
--js l3d/src/recommendations/ReverseCamera.js \
--js l3d/src/cameras/ReplayCamera.js \
--js l3d/src/cameras/Camera.js \
--js l3d/src/cameras/PointerCamera.js \
--js l3d/src/cameras/CameraContainer.js \
--js l3d/src/scenes/initScene.js \
--js_output_file ../static/js/l3d.min.js
L3DP:
2015-06-10 16:24:07 +01:00
$(CLOSURE) $(OPT) \
2015-07-01 14:03:11 +01:00
--js l3d/apps/prototype/ButtonManager.js \
--js l3d/apps/prototype/Coin.js \
--js_output_file ../static/js/l3dp.min.js
2015-06-10 16:24:07 +01:00
2015-07-01 14:03:11 +01:00
Socket:
cp socket.io/socket.io.min.js ../static/js
2015-06-10 16:24:07 +01:00
Three:
cp three/three.min.js ../static/js/
$(CLOSURE) $(OPT) \
--js three/DDSLoader.js \
--js three/MTLLoader.js \
--js three/OBJMTLLoader.js \
--js three/OBJLoader.js \
--js three/OrbitControls.js \
2015-07-01 14:03:11 +01:00
--js three/threex.transparency.js >> ../static/js/three.min.js
Stats:
cp three/stats.min.js ../static/js/
Bouncing:
$(CLOSURE) $(OPT) \
2015-07-01 14:03:11 +01:00
--js l3d/apps/bouncing-cube/BouncingCube.js \
--js l3d/apps/bouncing-cube/main.js \
--js_output_file ../static/js/bouncing.min.js
Multisphere:
$(CLOSURE) $(OPT) \
2015-07-01 14:03:11 +01:00
--js l3d/apps/multisphere/main.js \
--js_output_file ../static/js/multisphere.min.js
StreamingSimulator:
$(CLOSURE) $(OPT) \
2015-07-01 14:03:11 +01:00
--js l3d/apps/stream-demo/main.js \
--js_output_file ../static/js/streamingsimulator.min.js
PrototypeInteractive:
$(CLOSURE) $(OPT) \
2015-07-01 14:03:11 +01:00
--js l3d/apps/prototype/interactive/main.js \
--js_output_file ../static/js/prototypeinteractive.min.js
PrototypeReplay:
$(CLOSURE) $(OPT) \
2015-07-01 14:03:11 +01:00
--js l3d/apps/prototype/ButtonManager.js \
--js l3d/apps/prototype/Coin.js \
--js l3d/apps/prototype/replay/main.js \
--js_output_file ../static/js/replay.min.js
2015-05-26 10:49:24 +01:00
Tutorial:
$(CLOSURE) $(OPT) \
2015-07-01 14:03:11 +01:00
--js l3d/apps/prototype/ButtonManager.js \
--js l3d/apps/prototype/Coin.js \
--js l3d/apps/prototype/tutorial/TutoCamera.js \
--js l3d/apps/prototype/tutorial/TutorialSteps.js \
--js l3d/apps/prototype/tutorial/main.js \
2015-05-26 10:49:24 +01:00
--js_output_file ../static/js/tutorial.min.js
clean:
2015-05-22 17:00:09 +01:00
rm -rf ../static/js/*