Skip to content

Commit

Permalink
Keep "build" directory naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Grey committed Jul 18, 2019
1 parent 4603d65 commit 1f9ffc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions bin/create_all_releases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ make_release()
PLATFORM=$2
shift 2

rm -r hyperion.ng-${RELEASE}
mkdir -p hyperion.ng-${RELEASE}
rm -r build-${RELEASE}
mkdir -p build-${RELEASE}
rm -r deploy/${RELEASE}
mkdir -p deploy/${RELEASE}

cd hyperion.ng-${RELEASE}
cd build-${RELEASE}
cmake -DCMAKE_INSTALL_PREFIX=/usr -DPLATFORM=${PLATFORM} $@ -DCMAKE_BUILD_TYPE=Release -Wno-dev .. || exit 1
make -j $(nproc) || exit 1
#strip bin/*
Expand All @@ -25,8 +25,8 @@ make_release()
bin/create_release.sh . ${RELEASE}
}

CMAKE_PROTOC_FLAG="-DIMPORT_PROTOC=../hyperion.ng-x86x64/protoc_export.cmake"
CMAKE_FLATC_FLAG="-DIMPORT_FLATC=../hyperion.ng-x86x64/flatc_export.cmake"
CMAKE_PROTOC_FLAG="-DIMPORT_PROTOC=../build-x86x64/protoc_export.cmake"
CMAKE_FLATC_FLAG="-DIMPORT_FLATC=../build-x86x64/flatc_export.cmake"

make_release x86x64 x86
#make_release x32 x86 -DCMAKE_TOOLCHAIN_FILE="../cmake/Toolchain-x32.cmake" ${CMAKE_PROTOC_FLAG} ${CMAKE_FLATC_FLAG}
Expand Down
2 changes: 1 addition & 1 deletion bin/create_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fi

repodir="$1"
buildid="$2"
builddir=$repodir/hyperion.ng-$buildid
builddir=$repodir/build-$buildid
echo build directory = $builddir
echo repository root directory = $repodir
if ! [ -d "$builddir" ]; then
Expand Down

0 comments on commit 1f9ffc9

Please sign in to comment.