Skip to content

Commit

Permalink
add a script to build toywasm and an example app
Browse files Browse the repository at this point in the history
eg.
```
cd hostfunc
../build-toywasm-and-app.sh
```
  • Loading branch information
yamt committed Nov 1, 2023
1 parent 58ae563 commit 8857263
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/build-toywasm-and-app.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#! /bin/sh

set -e

ROOT=${ROOT:-build}
echo "ROOT: ${ROOT}"

BUILD_TOYWASM=${ROOT}/build-toywasm
BUILD_APP=${ROOT}/build-app

cmake -G Ninja -B ${BUILD_TOYWASM} -D CMAKE_INSTALL_PREFIX=${ROOT} ../..
cmake --build ${BUILD_TOYWASM} --target install
cmake -G Ninja -B ${BUILD_APP} -D CMAKE_PREFIX_PATH=${ROOT} .
cmake --build ${BUILD_APP}

0 comments on commit 8857263

Please sign in to comment.