Add dist directory for gathering builds
This commit is contained in:
parent
2c43777477
commit
6ca6ae82ba
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,6 +2,7 @@ build/current
|
||||
build/gba
|
||||
build/*-release
|
||||
build/*-debug
|
||||
dist
|
||||
tags
|
||||
nostalgia.gba
|
||||
nostalgia.sav
|
||||
|
2
Makefile
2
Makefile
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user