build modif
This commit is contained in:
@@ -25,4 +25,7 @@ tools.build:compiler_executables={"c": "clang", "cpp": "clang++"}
|
||||
tools.cmake.cmaketoolchain:generator=Ninja
|
||||
|
||||
[tool_requires]
|
||||
!cmake/*: cmake/[>=4.2]
|
||||
!cmake/*: cmake/4.3.2
|
||||
|
||||
[buildenv]
|
||||
CCACHE_NOHASHDIR=1
|
||||
@@ -16,5 +16,10 @@ tools.meson.mesontoolchain:extra_machine_files+={{profile_dir}}/../Toolchains/ip
|
||||
tools.build:cflags=["/Zc:preprocessor", "/Zc:__STDC__", "/D_CRT_DECLARE_NONSTDC_NAMES=1"]
|
||||
tools.build:cxxflags=["/Zc:preprocessor", "/permissive-", "/Zc:__cplusplus", "/Zc:enumTypes", "/Zc:templateScope"]
|
||||
|
||||
tools.env.virtualenv:powershell=powershell.exe
|
||||
|
||||
[tool_requires]
|
||||
!cmake/*: cmake/[>=4.2]
|
||||
!cmake/*: cmake/4.3.2
|
||||
|
||||
[buildenv]
|
||||
CCACHE_NOHASHDIR=1
|
||||
@@ -27,7 +27,10 @@ tools.build:compiler_executables={"c": "clang", "cpp": "clang++"}
|
||||
tools.cmake.cmaketoolchain:generator=Ninja
|
||||
|
||||
[tool_requires]
|
||||
!cmake/*: cmake/[>=4.2]
|
||||
!cmake/*: cmake/4.3.2
|
||||
|
||||
[options]
|
||||
bigfoot/*:build_tests=True
|
||||
bigfoot/*:build_tests=True
|
||||
|
||||
[buildenv]
|
||||
CCACHE_NOHASHDIR=1
|
||||
@@ -26,8 +26,11 @@ tools.cmake.cmaketoolchain:generator=Ninja
|
||||
tools.build:compiler_executables={"c": "clang", "cpp": "clang++"}
|
||||
|
||||
[tool_requires]
|
||||
!cmake/*: cmake/[>=4.2]
|
||||
!cmake/*: cmake/4.3.2
|
||||
|
||||
[options]
|
||||
bigfoot/*:asan=True
|
||||
bigfoot/*:build_tests=True
|
||||
bigfoot/*:build_tests=True
|
||||
|
||||
[buildenv]
|
||||
CCACHE_NOHASHDIR=1
|
||||
@@ -25,8 +25,11 @@ tools.cmake.cmaketoolchain:generator=Ninja
|
||||
tools.build:compiler_executables={"c": "clang", "cpp": "clang++"}
|
||||
|
||||
[tool_requires]
|
||||
!cmake/*: cmake/[>=4.2]
|
||||
!cmake/*: cmake/4.3.2
|
||||
|
||||
[options]
|
||||
bigfoot/*:build_tests=True
|
||||
bigfoot/*:coverage=True
|
||||
|
||||
[buildenv]
|
||||
CCACHE_NOHASHDIR=1
|
||||
@@ -18,8 +18,13 @@ tools.build:cxxflags=["/Zc:preprocessor", "/permissive-", "/Zc:__cplusplus", "/Z
|
||||
|
||||
tools.build:defines=["_HAS_EXCEPTIONS=0"]
|
||||
|
||||
tools.env.virtualenv:powershell=powershell.exe
|
||||
|
||||
[tool_requires]
|
||||
!cmake/*: cmake/[>=4.2]
|
||||
!cmake/*: cmake/4.3.2
|
||||
|
||||
[options]
|
||||
bigfoot/*:build_tests=True
|
||||
bigfoot/*:build_tests=True
|
||||
|
||||
[buildenv]
|
||||
CCACHE_NOHASHDIR=1
|
||||
@@ -16,9 +16,14 @@ tools.build:cxxflags=["/Zc:preprocessor", "/permissive-", "/Zc:__cplusplus", "/Z
|
||||
|
||||
tools.build:defines=["_HAS_EXCEPTIONS=0"]
|
||||
|
||||
tools.env.virtualenv:powershell=powershell.exe
|
||||
|
||||
[tool_requires]
|
||||
!cmake/*: cmake/[>=4.2]
|
||||
!cmake/*: cmake/4.3.2
|
||||
|
||||
[options]
|
||||
bigfoot/*:asan=True
|
||||
bigfoot/*:build_tests=True
|
||||
|
||||
[buildenv]
|
||||
CCACHE_NOHASHDIR=1
|
||||
|
||||
@@ -1 +1,60 @@
|
||||
cmake -S . -B build --toolchain build/generators/conan_toolchain.cmake --graphviz=graphviz/graph.dot
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
REM ─── Validate argument ───────────────────────────────────────────────────────
|
||||
if "%~1"=="force" set "build_option=--build=*" & goto :start
|
||||
if "%~1"=="missing" set "build_option=--build=missing" & goto :start
|
||||
|
||||
echo Usage: %~n0 [force^|missing]
|
||||
echo force - Rebuild all packages from source
|
||||
echo missing - Only build packages not already cached
|
||||
exit /b 1
|
||||
|
||||
:start
|
||||
REM ─── Register remote (skip if already registered) ────────────────────────────
|
||||
conan remote list | findstr /i "bigfootpackages" >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo Adding Conan remote: bigfootpackages
|
||||
conan remote add bigfootpackages https://conan.romainboullard.com/artifactory/api/conan/BigfootPackages
|
||||
if errorlevel 1 (
|
||||
echo ERROR: Failed to add Conan remote.
|
||||
exit /b 1
|
||||
)
|
||||
) else (
|
||||
echo Conan remote 'bigfootpackages' already registered, skipping.
|
||||
)
|
||||
|
||||
REM ─── Shared flags ────────────────────────────────────────────────────────────
|
||||
set "conan_common=--remote=bigfootpackages -pr:h=./ConanProfiles/msvc -pr:b=./ConanProfiles/Tools/msvc -of build -o bigfoot/*:build_tests=True -o bigfoot/*:tracy=True -o bigfoot/*:vulkan=True"
|
||||
|
||||
REM ─── Install dependencies for each build type ────────────────────────────────
|
||||
for %%C in (Release RelWithDebInfo Debug) do (
|
||||
echo.
|
||||
echo [%%C] Installing dependencies...
|
||||
conan install . %conan_common% %build_option% -s:h build_type=%%C
|
||||
if errorlevel 1 (
|
||||
echo ERROR: conan install failed for build type %%C
|
||||
exit /b 1
|
||||
)
|
||||
echo [%%C] Done.
|
||||
)
|
||||
|
||||
echo.
|
||||
echo All build types installed successfully.
|
||||
|
||||
REM ─── Activate build environment and run CMake ────────────────────────────────
|
||||
echo.
|
||||
echo Activating build environment and configuring CMake...
|
||||
mkdir graphviz 2>nul
|
||||
|
||||
powershell -ExecutionPolicy Bypass -Command "& 'build/build/generators/conanbuild.ps1'; cmake -S . -B build --toolchain build/build/generators/conan_toolchain.cmake --graphviz=graphviz/graph.dot; if ($LASTEXITCODE -ne 0) { Write-Host 'ERROR: CMake configuration failed'; exit 1 }"
|
||||
|
||||
if errorlevel 1 (
|
||||
echo ERROR: Build environment or CMake step failed.
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo CMake configuration successful.
|
||||
|
||||
endlocal
|
||||
@@ -1,30 +0,0 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
REM Check if the correct number of arguments is provided
|
||||
if "%~1"=="" (
|
||||
echo Usage: %0 "[force|missing]"
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Set the build option based on the argument
|
||||
set build_option=
|
||||
if "%~1"=="force" (
|
||||
set build_option=--build="*"
|
||||
) else if "%~1"=="missing" (
|
||||
set build_option=--build=missing
|
||||
) else (
|
||||
echo Invalid argument: %~1
|
||||
echo Usage: %0 "[force|missing]"
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Add the remote
|
||||
conan remote add bigfootpackages https://conan.romainboullard.com/artifactory/api/conan/BigfootPackages
|
||||
|
||||
REM Install dependencies with the specified build option
|
||||
conan install . --remote=bigfootpackages -pr:h=./ConanProfiles/msvc -pr:b=./ConanProfiles/Tools/msvc %build_option% -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/msvc -pr:b=./ConanProfiles/Tools/msvc %build_option% -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/msvc -pr:b=./ConanProfiles/Tools/msvc %build_option% -of build -s build_type=Debug -o bigfoot/*:build_tests=True -o bigfoot/*:tracy=True -o bigfoot/*:vulkan=True
|
||||
|
||||
endlocal
|
||||
@@ -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