Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,5 @@ compile_commands.json | |
.vscode | ||
.clangd | ||
.cache | ||
Qt/** | ||
aqtinstall.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
param( | ||
[string] | ||
$vcpkg_exe_path = "C:\Program Files\vcpkg\vcpkg.exe", | ||
|
||
[string] | ||
$python_exe_path = "$($HOME)\AppData\Local\Programs\Python\Python39\python.exe" | ||
) | ||
|
||
if (!(Test-Path $python_exe_path)) { | ||
throw "python exe path not found please update to your path to python"; | ||
} | ||
|
||
if (!(Test-Path $vcpkg_exe_path)) { | ||
throw "vcpkg exe path not found please update to your path to vcpkg and/or install vcpkg first"; | ||
} | ||
|
||
& $vcpkg_exe_path install --triplet x64-windows boost-algorithm boost-date-time boost-endian boost-functional boost-iostreams boost-rational boost-signals2 boost-stacktrace doctest minizip nlohmann-json pugixml; | ||
|
||
& $python_exe_path -m pip install setuptools wheel py7zr==0.20.*; | ||
|
||
& $python_exe_path -m pip install aqtinstall==3.1.*; | ||
|
||
& $python_exe_path -m aqt install-qt windows desktop 5.15.2 win64_msvc2019_64 --outputdir "$($PSScriptRoot)\..\Qt"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
param( | ||
[string] | ||
$vcpkg_dir = "C:\Program Files\vcpkg\", | ||
|
||
[string] | ||
$qt_path = "$($PSScriptRoot)/../Qt" | ||
) | ||
|
||
if (!(Test-Path "$vcpkg_dir")) { | ||
throw "could not find the vcpkg directory please update this value with your path to vcpkg directory"; | ||
} | ||
|
||
if (!(Test-Path "$qt_path")) { | ||
throw "Qt dependency is not installed yet, for this script to work install Qt to this project's root directory or change the path to your Qt installation"; | ||
} | ||
|
||
$qt5_widgets_cmake_path = "$($qt_path)/5.15.2/msvc2019_64/lib/cmake/Qt5Widgets/"; | ||
$qt5_network_cmake_path = "$($qt_path)/5.15.2/msvc2019_64/lib/cmake/Qt5Network/"; | ||
$qt5_printsupport_cmake_path = "$($qt_path)/5.15.2/msvc2019_64/lib/cmake/Qt5PrintSupport/"; | ||
$qt5_linguisttools_cmake_path = "$($qt_path)/5.15.2/msvc2019_64/lib/cmake/Qt5LinguistTools"; | ||
|
||
<# | ||
https://cmake.org/cmake/help/latest/envvar/CMAKE_PREFIX_PATH.html#envvar:CMAKE_PREFIX_PATH | ||
#> | ||
$cmake_prefix_path = $( | ||
@( | ||
$qt5_widgets_cmake_path, | ||
$qt5_network_cmake_path, | ||
$qt5_printsupport_cmake_path, | ||
$qt5_linguisttools_cmake_path | ||
# probably a unix system as per cmake documentation are colon separated | ||
) -join $(if ($env:OS -match "Windows") {";"} else {":"}) | ||
); | ||
|
||
|
||
cmake ` | ||
-A x64 ` | ||
-B ./build ` | ||
-DPTE_ENABLE_PCH=1 ` | ||
-DCMAKE_TOOLCHAIN_FILE="$($vcpkg_dir)/scripts/buildsystems/vcpkg.cmake" ` | ||
-DCMAKE_PREFIX_PATH="$($cmake_prefix_path)" |