forked from Bam4d/Griddly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.sh
More file actions
executable file
·36 lines (30 loc) · 782 Bytes
/
configure.sh
File metadata and controls
executable file
·36 lines (30 loc) · 782 Bytes
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
#!/bin/bash
cd "$(dirname "$0")"
PLATFORM="x86_64"
BUILD="Debug"
CONAN_BUILD="missing"
for i in "$@"; do
case $i in
-p=*|--platform=*)
PLATFORM="${i#*=}"
shift # past argument=value
;;
-b=*|--build-type=*)
BUILD="${i#*=}"
shift # past argument=value
;;
-f|--force-rebuild)
CONAN_BUILD="all"
shift # past argument=value
;;
esac
done
echo $BUILD
echo $CONAN_BUILD
echo $PLATFORM
if [[ $PLATFORM == "WASM" ]]
then
conan install deps/wasm/conanfile_wasm.txt -pr:h=deps/wasm/emscripten.profile -pr:b=default -s build_type=$BUILD --build missing -if build_wasm
else
conan install deps/conanfile.txt -pr:b=default -pr:h=default -pr:h=deps/build.profile -s build_type=$BUILD --build $CONAN_BUILD -if build
fi