Setup scripts should be runnable from any directory

This commit is contained in:
Dan Paulat 2025-05-25 14:56:26 -05:00
parent 102650e936
commit 6667f46c53
7 changed files with 11 additions and 11 deletions

View file

@ -1,26 +1,26 @@
@set script_dir=%~dp0 @set script_dir=%~dp0
:: Import common paths :: Import common paths
@call lib\common-paths.bat @call %script_dir%\common-paths.bat
:: Install Python packages :: Install Python packages
pip install --upgrade -r "%script_dir%\..\..\requirements.txt" pip install --upgrade -r "%script_dir%\..\..\requirements.txt"
@if defined build_type ( @if defined build_type (
:: Install Conan profile and packages :: Install Conan profile and packages
call lib\setup-conan.bat call %script_dir%\setup-conan.bat
) else ( ) else (
:: Install Conan profile and debug packages :: Install Conan profile and debug packages
set build_type=Debug set build_type=Debug
call lib\setup-conan.bat call %script_dir%\setup-conan.bat
:: Install Conan profile and release packages :: Install Conan profile and release packages
set build_type=Release set build_type=Release
call lib\setup-conan.bat call %script_dir%\setup-conan.bat
:: Unset build_type :: Unset build_type
set build_type= set build_type=
) )
:: Run CMake Configure :: Run CMake Configure
@call lib\run-cmake-configure.bat @call %script_dir%\run-cmake-configure.bat

View file

@ -11,6 +11,6 @@
@if not "%~1"=="" set build_dir=%~1 @if not "%~1"=="" set build_dir=%~1
:: Perform common setup :: Perform common setup
@call lib\setup-common.bat @call %script_dir%\lib\setup-common.bat
@pause @pause

View file

@ -11,6 +11,6 @@
@if not "%~1"=="" set build_dir=%~1 @if not "%~1"=="" set build_dir=%~1
:: Perform common setup :: Perform common setup
@call lib\setup-common.bat @call %script_dir%\lib\setup-common.bat
@pause @pause

View file

@ -10,6 +10,6 @@
@if not "%~1"=="" set build_dir=%~1 @if not "%~1"=="" set build_dir=%~1
:: Perform common setup :: Perform common setup
@call lib\setup-common.bat @call %script_dir%\lib\setup-common.bat
@pause @pause

View file

@ -10,6 +10,6 @@
@if not "%~1"=="" set build_dir=%~1 @if not "%~1"=="" set build_dir=%~1
:: Perform common setup :: Perform common setup
@call lib\setup-common.bat @call %script_dir%\lib\setup-common.bat
@pause @pause

View file

@ -11,6 +11,6 @@
@if not "%~1"=="" set build_dir=%~1 @if not "%~1"=="" set build_dir=%~1
:: Perform common setup :: Perform common setup
@call lib\setup-common.bat @call %script_dir%\lib\setup-common.bat
@pause @pause

View file

@ -11,6 +11,6 @@
@if not "%~1"=="" set build_dir=%~1 @if not "%~1"=="" set build_dir=%~1
:: Perform common setup :: Perform common setup
@call lib\setup-common.bat @call %script_dir%\lib\setup-common.bat
@pause @pause