Add dist directory for gathering builds

This commit is contained in:
Gary Talent 2017-05-16 00:17:22 -05:00
parent 2c43777477
commit 6ca6ae82ba
4 changed files with 10 additions and 5 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@ build/current
build/gba
build/*-release
build/*-debug
dist
tags
nostalgia.gba
nostalgia.sav

View File

@ -53,7 +53,7 @@ shell:
release:
${ENV_RUN} rm -rf build/${HOST_ENV}-release
${ENV_RUN} ./scripts/setup_build ${HOST_ENV}
${ENV_RUN} ./scripts/setup_build ${HOST_ENV} release
${ENV_RUN} rm -f build/current
${ENV_RUN} ln -s ${HOST_ENV}-release build/current

View File

@ -15,15 +15,17 @@ fi
if [[ $BUILD_TYPE == debug ]]; then
buildTypeArgs="-DUSE_ASAN=ON -DCMAKE_BUILD_TYPE=Debug"
buildDir="build/${TARGET}-debug"
else
elif [[ $BUILD_TYPE == release ]]; then
buildTypeArgs="-DCMAKE_BUILD_TYPE=Release"
buildDir="build/${TARGET}-release"
fi
buildDir="build/${TARGET}-${BUILD_TYPE}"
distDir="../../dist/${TARGET}-${BUILD_TYPE}"
mkdir -p $buildDir
pushd $buildDir
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_INSTALL_PREFIX="$distDir" \
$buildTypeArgs \
$toolchain \
$project

View File

@ -11,6 +11,7 @@ add_library(
json_write.cpp
wizard.cpp
oxfstreeview.cpp
plugin.cpp
project.cpp
)
@ -35,8 +36,9 @@ install(
json_err.hpp
json_read.hpp
json_write.hpp
newwizard.hpp
wizard.hpp
oxfstreeview.hpp
plugin.hpp
project.hpp
DESTINATION
include/nostalgia/studio/lib