build: created separate bin folder for each target.

Changed build process to use an individual bin/<subfolder> for each target.
This way each target has its own data folder and its own set of dlls.
This commit is contained in:
malte_langkabel
2014-06-30 16:39:23 +02:00
parent 5ceb7a4b43
commit b38252e894
43 changed files with 46 additions and 24 deletions
+11 -5
View File
@@ -30,15 +30,21 @@ cp .git_pre_commit_hook.sh .git/hooks/pre-commit
echo -e $INFO "create build folders"
mkdir -p build
mkdir -p lib
mkdir -p bin/Debug
mkdir -p bin/Release
mkdir -p bin/app/Debug
mkdir -p bin/app/Release
mkdir -p bin/lib/Debug
mkdir -p bin/lib/Release
mkdir -p bin/test/Debug
mkdir -p bin/test/Release
# Copy necessary dynamic libraries to bin folder
if [ $PLATFORM == "Windows" ]; then
echo -e $INFO "copy dynamic libraries"
cp -u -r setup/dynamic_libraries/windows/Debug/* bin/Debug
cp -u -r setup/dynamic_libraries/windows/Release/* bin/Release
cp -u -r setup/dynamic_libraries/windows/app/Debug/* bin/app/Debug
cp -u -r setup/dynamic_libraries/windows/app/Release/* bin/app/Release
cp -u -r setup/dynamic_libraries/windows/test/Debug/* bin/test/Debug
cp -u -r setup/dynamic_libraries/windows/test/Release/* bin/test/Release
echo -e $INFO "copy test_main file"
cp -u setup/cxx_test/windows/test_main.cpp build