build modif
This commit is contained in:
@@ -1,25 +1,45 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if the correct number of arguments is provided
|
||||
if [ -z "$1" ]; then
|
||||
# ─── Validate argument ───────────────────────────────────────────────────────
|
||||
usage() {
|
||||
echo "Usage: $0 [force|missing]"
|
||||
echo " force - Rebuild all packages from source"
|
||||
echo " missing - Only build packages not already cached"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Add the remote
|
||||
conan remote add bigfootpackages https://conan.romainboullard.com/artifactory/api/conan/BigfootPackages
|
||||
|
||||
# Set the build option based on the argument
|
||||
if [ "$1" == "force" ]; then
|
||||
conan install . --remote=bigfootpackages -pr:h=./ConanProfiles/clang -pr:b=./ConanProfiles/Tools/clang --build='*' -of build -s build_type=Release -o bigfoot/*:build_tests=True -o bigfoot/*:tracy=True -o bigfoot/*:vulkan=True
|
||||
conan install . --remote=bigfootpackages -pr:h=./ConanProfiles/clang -pr:b=./ConanProfiles/Tools/clang --build='*' -of build -s build_type=RelWithDebInfo -o bigfoot/*:build_tests=True -o bigfoot/*:tracy=True -o bigfoot/*:vulkan=True
|
||||
conan install . --remote=bigfootpackages -pr:h=./ConanProfiles/clang -pr:b=./ConanProfiles/Tools/clang --build='*' -of build -s build_type=Debug -o bigfoot/*:build_tests=True -o bigfoot/*:tracy=True -o bigfoot/*:vulkan=True
|
||||
if [ -z "$1" ]; then
|
||||
usage
|
||||
elif [ "$1" == "force" ]; then
|
||||
build_option="--build=*"
|
||||
elif [ "$1" == "missing" ]; then
|
||||
conan install . --remote=bigfootpackages -pr:h=./ConanProfiles/clang -pr:b=./ConanProfiles/Tools/clang --build=missing -of build -s build_type=Release -o bigfoot/*:build_tests=True -o bigfoot/*:tracy=True -o bigfoot/*:vulkan=True
|
||||
conan install . --remote=bigfootpackages -pr:h=./ConanProfiles/clang -pr:b=./ConanProfiles/Tools/clang --build=missing -of build -s build_type=RelWithDebInfo -o bigfoot/*:build_tests=True -o bigfoot/*:tracy=True -o bigfoot/*:vulkan=True
|
||||
conan install . --remote=bigfootpackages -pr:h=./ConanProfiles/clang -pr:b=./ConanProfiles/Tools/clang --build=missing -of build -s build_type=Debug -o bigfoot/*:build_tests=True -o bigfoot/*:tracy=True -o bigfoot/*:vulkan=True
|
||||
build_option="--build=missing"
|
||||
else
|
||||
echo "Invalid argument: $1"
|
||||
echo "Usage: $0 [force|missing]"
|
||||
exit 1
|
||||
usage
|
||||
fi
|
||||
|
||||
# ─── Register remote (skip if already registered) ────────────────────────────
|
||||
if ! conan remote list | grep -qi "bigfootpackages"; then
|
||||
echo "Adding Conan remote: bigfootpackages"
|
||||
conan remote add bigfootpackages https://conan.romainboullard.com/artifactory/api/conan/BigfootPackages || exit 1
|
||||
else
|
||||
echo "Conan remote 'bigfootpackages' already registered, skipping."
|
||||
fi
|
||||
|
||||
# ─── Shared flags ────────────────────────────────────────────────────────────
|
||||
conan_common="--remote=bigfootpackages -pr:h=./ConanProfiles/clang -pr:b=./ConanProfiles/Tools/clang -of build -o bigfoot/*:build_tests=True -o bigfoot/*:tracy=True -o bigfoot/*:vulkan=True"
|
||||
|
||||
# ─── Install dependencies for each build type ────────────────────────────────
|
||||
for build_type in Release RelWithDebInfo Debug; do
|
||||
echo ""
|
||||
echo "[$build_type] Installing dependencies..."
|
||||
conan install . $conan_common $build_option -s build_type=$build_type || {
|
||||
echo "ERROR: conan install failed for build type $build_type"
|
||||
exit 1
|
||||
}
|
||||
echo "[$build_type] Done."
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "All build types installed successfully."
|
||||
Reference in New Issue
Block a user