Skip to content

Commit

Permalink
update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Jul 8, 2024
1 parent 8efccda commit f1c8ae7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
10 changes: 5 additions & 5 deletions scripts/install/install.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ if %ERRORLEVEL% neq 0 (
:: Get cmake_install_prefix
echo "Get cmake_install_prefix..."
if exist "build" rd /S /Q "build"
mkdir build
if not exist "build" mkdir build
cd build
mkdir cmake_install_prefix
if not exist "cmake_install_prefix" mkdir cmake_install_prefix
cd cmake_install_prefix
cmake ..\..\scripts\install\cmake_install_prefix %*
cd ..
Expand All @@ -47,9 +47,9 @@ echo cmake_install_prefix_base="%cmake_install_prefix_base%"
::______________________________________________________________________________
:: Check and install wxWidgets
echo "Checks wxWidgets..."
mkdir build
if not exist "build" mkdir build
cd build
mkdir test_wxwidgets
if not exist "test_wxwidgets" mkdir test_wxwidgets
cd test_wxwidgets
set /p cmake_install_prefix=%cmake_install_prefix_base%\wxwidgets
cmake ..\..\scripts\install\test_wxwidgets %*
Expand All @@ -73,7 +73,7 @@ if not exist "build\test_wxwidgets\wxwidgets.lck" (
::______________________________________________________________________________
:: Generate, build and install xtd
echo Installing xtd...
mkdir build
if not exist "build" mkdir build
cd build
set /p cmake_install_prefix=%cmake_install_prefix_base%\xtd
cmake .. -DXTD_BUILD_CPP_STANDARD="17" %*
Expand Down
12 changes: 8 additions & 4 deletions scripts/install/install_wxwidgets.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ if %ERRORLEVEL% neq 0 (
::______________________________________________________________________________
:: Download, generate, build and install wxWidgets
echo Downloading and installing wxwidgets...
mkdir build\3rdparty
cd build\3rdparty
if not exist "build" mkdir build
cd build
if not exist "3rdparty" mkdir 3rdparty
cd 3rdparty
git clone https://github.com/wxWidgets/wxWidgets.git -b %wxwidgets_version% --depth 1
cd wxwidgets
git submodule update --init
cd..
mkdir wxwidgets\build_cmake
cd wxwidgets\build_cmake
if not exist "wxwidgets mkdir wxwidgets
cd wxwidgets
if not exist "build_cmake mkdir build_cmake
cd build_cmake
cmake .. -DwxBUILD_SHARED=OFF %*
cmake --build . --target install --config Debug
cmake --build . --target install --config Release
Expand Down

0 comments on commit f1c8ae7

Please sign in to comment.