From 04d3b12c874f4334336ee222e6ce893011c0e005 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Wed, 14 Mar 2018 20:10:05 +0800 Subject: [PATCH] Add toolcenter integration --- setup_toolcenter.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 setup_toolcenter.sh diff --git a/setup_toolcenter.sh b/setup_toolcenter.sh new file mode 100644 index 0000000..35f64cc --- /dev/null +++ b/setup_toolcenter.sh @@ -0,0 +1,36 @@ +echo "MiniEngine-ToolCenter Integration Script" + +echo "TC_ROOT is " +echo $TC_ROOT + +if [ 0"$TC_ROOT" = "0" ]; then + echo "ToolCenter not detected. Please set TC_ROOT" + exit +fi + +mkdir include +cp -r $TC_ROOT/SDL2/include/* include/ +cp -r $TC_ROOT/SDL2_image/include/* include/ +cp -r $TC_ROOT/SDL2_mixer/include/* include/ +cp -r $TC_ROOT/SDL2_ttf/include/* include/ +mkdir lib +cp -r $TC_ROOT/SDL2/lib/* lib/ +cp -r $TC_ROOT/SDL2_image/lib/* lib/ +cp -r $TC_ROOT/SDL2_mixer/lib/* lib/ +cp -r $TC_ROOT/SDL2_ttf/lib/* lib/ + +cp -r $TC_ROOT/SDL2/dll/x86/* . +cp -r $TC_ROOT/SDL2_image/dll/x86/* . +cp -r $TC_ROOT/SDL2_mixer/dll/x86/* . +cp -r $TC_ROOT/SDL2_ttf/dll/x86/* . + +echo "Paste in Visual Studio:" +echo "======================" +echo "SDL2test.lib" +echo "SDL2main.lib" +echo "SDL2.lib" +echo "SDL2_image.lib" +echo "SDL2_mixer.lib" +echo "SDL2_ttf.lib" +echo "======================" +echo "Finish." \ No newline at end of file