-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
remake.sh
executable file
·48 lines (45 loc) · 1.44 KB
/
remake.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# compilation can also be achieved and sea lion by setting the target wasp.wasm in a Run/Debug Configuration.
# THEN in the "Edit Configurations" drop down next to ▶️ one can chose the CMake Profile WASM / WASM Runtime
# which should be created under preferences -> build / executions / deployment -> cmake
# IF cmake fails to traverse to subdirectories:
# echo cmake TODO MESSES WITH CLions CMAKE config!!
# changed all cmake . && make || ninja -v => make || ninja -v
cd cmake-build-wasm-runtime/
# cmake . && make
make || ninja -v
cp wasp.wasm wasp-runtime.wasm
cp wasp.wasm ../bin/wasp-runtime.wasm
cd -
cd cmake-build-release/
make || ninja -v
cd -
cd cmake-build-debug/
make || ninja -v
cd -
# cd cmake-build-default/
# make || ninja -v
# cd -
cd cmake-build-release/
make || ninja -v
cp wasp.wasm ../bin/mac/wasp
cp wasp.wasm ../bin/mac/arm/wasp
cd -
cd cmake-build-wasm/
make || ninja -v
cp wasp.wasm wasp-debug.wasm
cp wasp.wasm ../bin/wasp-debug.wasm
cd -
cd cmake-build-wasm-release/
make || ninja -v
cp wasp.wasm wasp-compiler.wasm
cp wasp.wasm ../bin/wasp-compiler.wasm
cd -
ln -s cmake-build-debug/wasp .
# IF cmake fails to traverse to subdirectories:
# echo cmake TODO MESSES WITH CLions CMAKE config!!
# changed all cmake . && make || ninja -v => make || ninja -v
cd cmake-build-wasm-runtime/
# cmake . && make
make || ninja -v
cp wasp-runtime.wasm ../wasp-runtime.wasm
cp wasp-runtime.wasm ../bin/wasp-runtime.wasm