-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-dev.sh
More file actions
executable file
·34 lines (27 loc) · 868 Bytes
/
setup-dev.sh
File metadata and controls
executable file
·34 lines (27 loc) · 868 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
#!/bin/sh
set -e
cd $(dirname $0)
ENV_NAME="flim"
ENV_YML="env.yml"
eval "$(conda shell.bash hook)"
if ! conda env list | grep "$ENV_NAME " >/dev/null; then
echo "CREATING ENV '${ENV_NAME}' USING ENV '$ENV_YML'"
conda env create -n $ENV_NAME -f $ENV_YML
conda activate $ENV_NAME
conda env config vars set VK_LAYER_PATH=${CONDA_PREFIX}/share/vulkan/explicit_layer.d
fi
conda activate $ENV_NAME
cmake . -B build -DCMAKE_BUILD_TYPE=Debug
rm -rf compile_commands.json
rm -rf ./build/textures
ln -s $(pwd)/build/compile_commands.json compile_commands.json -f
ln -s $(pwd)/textures/ $(pwd)/build/textures -f
ln -s $(pwd)/resources/ $(pwd)/build/resources -f
echo "Setup DONE"
echo "You can now compile the project using:"
echo "\$ conda activate flim"
echo "\$ cd build"
echo "\$ make -j"
echo ""
echo "The project can then be run using:"
echo "\$ ./engine"