2015-05-22 15:59:33 +01:00
|
|
|
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-05-22 15:59:33 +01:00
|
|
|
|
2016-01-08 15:05:09 +00:00
|
|
|
all: L3D L3DP Socket Three Stats Bouncing Multisphere StreamingSimulator PrototypeReplay PrototypeInteractive Tutorial TestList CoinCreator CoinViewer CoinChecker StarRating Test
|
2015-07-27 15:59:53 +01:00
|
|
|
|
|
|
|
StarRating:
|
|
|
|
cp star-rating.min.js ../static/js/
|
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 15:31:43 +01:00
|
|
|
--js l3d/src/l3d.js \
|
2015-07-01 14:03:11 +01:00
|
|
|
--js l3d/src/math/Tools.js \
|
|
|
|
--js l3d/src/math/Hermite.js \
|
2015-07-06 10:14:42 +01:00
|
|
|
--js l3d/src/utils/List.js \
|
2015-07-08 14:09:33 +01:00
|
|
|
--js l3d/src/utils/ObjectClicker.js \
|
2015-07-01 14:03:11 +01:00
|
|
|
--js l3d/src/utils/Logger.js \
|
|
|
|
--js l3d/src/utils/Objects.js \
|
|
|
|
--js l3d/src/utils/History.js \
|
|
|
|
--js l3d/src/canvases/StartCanvas.js \
|
2015-10-02 15:29:20 +01:00
|
|
|
--js l3d/src/canvases/LoadingCanvas.js \
|
2015-07-01 14:03:11 +01:00
|
|
|
--js l3d/src/canvases/MousePointer.js \
|
|
|
|
--js l3d/src/canvases/Previewer.js \
|
|
|
|
--js l3d/src/loaders/ProgressiveLoader.js \
|
2015-07-01 15:34:03 +01:00
|
|
|
--js l3d/src/recommendations/BaseRecommendation.js \
|
|
|
|
--js l3d/src/recommendations/ArrowRecommendation.js \
|
2015-10-01 16:36:19 +01:00
|
|
|
--js l3d/src/recommendations/ViewportRecommendation.js \
|
2015-07-01 15:34:03 +01:00
|
|
|
--js l3d/src/recommendations/ReverseRecommendation.js \
|
2015-07-01 14:03:11 +01:00
|
|
|
--js l3d/src/cameras/ReplayCamera.js \
|
|
|
|
--js l3d/src/cameras/Camera.js \
|
2015-07-06 16:18:08 +01:00
|
|
|
--js l3d/src/cameras/FixedCamera.js \
|
2015-07-01 14:03:11 +01:00
|
|
|
--js l3d/src/cameras/PointerCamera.js \
|
2015-07-20 13:41:59 +01:00
|
|
|
--js l3d/src/scenes/createCoins.js \
|
2016-01-11 15:45:05 +00:00
|
|
|
--js l3d/src/scenes/initScene.js \
|
2015-07-01 14:03:11 +01:00
|
|
|
--js_output_file ../static/js/l3d.min.js
|
|
|
|
|
2015-07-06 10:14:42 +01:00
|
|
|
TestList:
|
|
|
|
$(CLOSURE) $(OPT) \
|
|
|
|
--js l3d/src/l3d.js \
|
|
|
|
--js l3d/src/utils/List.js \
|
|
|
|
--js l3d/src/utils/ListTest.js \
|
|
|
|
--js_output_file ../static/js/ListTest.min.js
|
|
|
|
|
2015-07-01 14:03:11 +01:00
|
|
|
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 \
|
2016-01-08 15:05:09 +00:00
|
|
|
--js l3d/apps/prototype/Coin2.js \
|
|
|
|
--js l3d/apps/prototype/CoinCanvas.js \
|
2015-07-08 17:28:45 +01:00
|
|
|
--js l3d/apps/prototype/GlobalFunctions.js \
|
2016-01-08 15:05:09 +00:00
|
|
|
--js l3d/src/scenes/Scene.js \
|
|
|
|
--js l3d/src/scenes/SceneWithCoins.js \
|
|
|
|
--js l3d/src/scenes/PeachScene.js \
|
|
|
|
--js l3d/src/scenes/BobombScene.js \
|
|
|
|
--js l3d/src/scenes/MountainScene.js \
|
|
|
|
--js l3d/src/scenes/WhompScene.js \
|
|
|
|
--js l3d/src/scenes/SponzaScene.js \
|
|
|
|
--js l3d/src/scenes/Coins.js \
|
|
|
|
--js l3d/src/scenes/Recommendations.js \
|
2015-07-01 14:03:11 +01:00
|
|
|
--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
|
|
|
|
2015-05-22 15:59:33 +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/
|
2015-05-22 15:59:33 +01:00
|
|
|
|
|
|
|
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 \
|
2015-05-22 15:59:33 +01:00
|
|
|
--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 \
|
2015-05-22 15:59:33 +01:00
|
|
|
--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 \
|
2015-05-22 15:59:33 +01:00
|
|
|
--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 \
|
2015-05-22 15:59:33 +01:00
|
|
|
--js_output_file ../static/js/prototypeinteractive.min.js
|
|
|
|
|
2015-07-17 10:32:57 +01:00
|
|
|
CoinCreator:
|
|
|
|
$(CLOSURE) $(OPT) \
|
|
|
|
--js l3d/apps/prototype/coin-creator/main.js \
|
|
|
|
--js_output_file ../static/js/coincreator.min.js
|
|
|
|
|
2015-07-20 14:48:44 +01:00
|
|
|
CoinViewer:
|
|
|
|
$(CLOSURE) $(OPT) \
|
|
|
|
--js l3d/apps/prototype/coin-viewer/main.js \
|
|
|
|
--js_output_file ../static/js/coinviewer.min.js
|
|
|
|
|
2015-08-24 16:13:14 +01:00
|
|
|
CoinChecker:
|
|
|
|
$(CLOSURE) $(OPT) \
|
|
|
|
--js l3d/apps/prototype/coin-checker/main.js \
|
|
|
|
--js_output_file ../static/js/coinchecker.min.js
|
|
|
|
|
2015-05-22 15:59:33 +01:00
|
|
|
PrototypeReplay:
|
|
|
|
$(CLOSURE) $(OPT) \
|
2015-07-01 14:03:11 +01:00
|
|
|
--js l3d/apps/prototype/ButtonManager.js \
|
2016-01-08 15:05:09 +00:00
|
|
|
\ # --js l3d/apps/prototype/Coin.js \
|
2015-07-01 14:03:11 +01:00
|
|
|
--js l3d/apps/prototype/replay/main.js \
|
2015-05-22 15:59:33 +01:00
|
|
|
--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 \
|
2016-01-08 15:05:09 +00:00
|
|
|
--js l3d/apps/prototype/Coin2.js \
|
2015-07-01 14:03:11 +01:00
|
|
|
--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
|
|
|
|
|
2016-01-08 15:05:09 +00:00
|
|
|
Test:
|
|
|
|
$(CLOSURE) $(OPT) \
|
|
|
|
--js l3d/apps/prototype/test/main.js \
|
|
|
|
--js_output_file ../static/js/test.min.js
|
|
|
|
|
2015-05-22 15:59:33 +01:00
|
|
|
clean:
|
2015-05-22 17:00:09 +01:00
|
|
|
rm -rf ../static/js/*
|