-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconan-fix.sh
More file actions
executable file
·22 lines (15 loc) · 833 Bytes
/
conan-fix.sh
File metadata and controls
executable file
·22 lines (15 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
BASEDIR=$(dirname "$0")
mkdir -p build
# Download the most recent
curl "https://raw.githubusercontent.com/bincrafters/community/main/recipes/sdl2/all/conanfile.py" > "${BASEDIR}/build/conan_sdl2.py"
curl "https://raw.githubusercontent.com/bincrafters/community/main/recipes/sdl2_ttf/all/conanfile.py" > "${BASEDIR}/build/conan_sdl2ttf.py"
conan remote add bincrafters "https://api.bintray.com/conan/bincrafters/public-conan"
conan install sdl2/2.0.14@bincrafters/stable
conan install sdl2_ttf/2.0.15@bincrafters/stable
\cp ${BASEDIR}/build/conan_sdl2.py ~/.conan/data/sdl2/2.0.14/bincrafters/stable/export/conanfile.py
cmake -H. -Bbuild -GNinja
\cp ${BASEDIR}/build/conan_sdl2ttf.py ~/.conan/data/sdl2_ttf/2.0.15/bincrafters/stable/export/conanfile.py
cmake -H. -Bbuild -GNinja
cd ${BASEDIR}/build
ninja