Skip to content

Commit 27b5ae4

Browse files
author
Dan Dees
committed
doit - build
1 parent 7c284e9 commit 27b5ae4

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

doit

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
declare -r SRCDIR="${r3}/MemoryModulePP"
2+
declare -r BUILDDIR="${SRCDIR}/build"
3+
declare -r INSTALLDIR="i:/af/ports/vs17-64/memorymodulepp"
4+
5+
# rm -rf ${BUILD}
6+
7+
declare meth="vs"
8+
if [ "${meth}" = 'ninja' ] ; then
9+
declare -a CMD=(
10+
cmake -GNinja -Wno-dev
11+
-DCMAKE_INSTALL_PREFIX="${INSTALLDIR}"
12+
-B "${BUILDDIR}"
13+
-S "${SRCDIR}"
14+
)
15+
"${CMD[@]}"
16+
17+
# build
18+
cd ${BUILDDIR}
19+
ninja
20+
21+
# run
22+
declare -r PROG="${BUILDDIR}/test/MemoryModulePP.exe"
23+
if [ -f ${PROG} ] ; then
24+
echo "done"
25+
${PROG}
26+
fi
27+
else
28+
declare -a CMD=(
29+
cmake -G "Visual Studio 17 2022" -A 'x64' -Wno-dev
30+
-DCMAKE_INSTALL_PREFIX="${INSTALLDIR}"
31+
-B "${BUILDDIR}"
32+
-S "${SRCDIR}"
33+
)
34+
"${CMD[@]}"
35+
fi

0 commit comments

Comments
 (0)