File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments