File tree Expand file tree Collapse file tree 5 files changed +44
-39
lines changed
Expand file tree Collapse file tree 5 files changed +44
-39
lines changed Original file line number Diff line number Diff line change @@ -34,28 +34,17 @@ jobs:
3434 cache : true
3535
3636 - uses : actions/checkout@v4
37- - uses : lukka/run-vcpkg@v11
3837
39- # build uibase
40- - uses : actions/checkout@v4
41- with :
42- repository : ModOrganizer2/modorganizer-uibase
43- ref : dev/vcpkg
44- path : uibase
45-
46- - name : Build UIBase
38+ - name : " Set environmental variables"
39+ shell : bash
4740 run : |
48- cmake --preset vs2022-windows `
49- "-DCMAKE_PREFIX_PATH=${env:QT_ROOT_DIR}\msvc2019_64" `
50- "-DCMAKE_INSTALL_PREFIX=install"
51- cmake --build vsbuild --config RelWithDebInfo --target INSTALL
52- working-directory : uibase
41+ echo "VCPKG_ROOT=$VCPKG_INSTALLATION_ROOT" >> $GITHUB_ENV
5342
5443 - name : Configure Plugin Python build
5544 shell : pwsh
5645 run : |
57- cmake --preset vs2022-windows `
58- "-DCMAKE_PREFIX_PATH=${env:QT_ROOT_DIR}\msvc2019_64;${{ github.workspace }}\uibase\install\lib\cmake " `
46+ cmake --preset vs2022-windows-standalone `
47+ "-DCMAKE_PREFIX_PATH=${env:QT_ROOT_DIR}\msvc2019_64" `
5948 -DPLUGIN_PYTHON_TESTING=ON
6049
6150 - name : Build Plugin Python
Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ cmake_policy(SET CMP0144 NEW)
44
55project (plugin_python CXX)
66
7- find_package ( mo2-cmake CONFIG REQUIRED)
8-
7+ # find Python before include mo2-cmake, otherwise this will trigger a bunch of CMP0111
8+ # due to the imported configuration mapping variables defined in mo2.cmake
99find_package (Python ${MO2_PYTHON_VERSION} COMPONENTS Interpreter Development REQUIRED)
1010find_package (pybind11 CONFIG REQUIRED)
1111
12+ find_package (mo2-cmake CONFIG REQUIRED)
13+
1214get_filename_component (Python_HOME ${Python_EXECUTABLE} PATH )
1315set (Python_DLL_DIR "${Python_HOME} /DLLs" )
1416set (Python_LIB_DIR "${Python_HOME} /Lib" )
Original file line number Diff line number Diff line change 5050 "inherits" : [" cmake-dev" , " vcpkg-dev" ],
5151 "name" : " vs2022-windows" ,
5252 "toolset" : " v143"
53+ },
54+ {
55+ "cacheVariables" : {
56+ "VCPKG_MANIFEST_FEATURES" : {
57+ "type" : " STRING" ,
58+ "value" : " standalone;testing"
59+ }
60+ },
61+ "inherits" : " vs2022-windows" ,
62+ "name" : " vs2022-windows-standalone"
5363 }
5464 ],
5565 "buildPresets" : [
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 44 "testing" : {
55 "description" : " Build Plugin Python tests." ,
66 "dependencies" : [" gtest" ]
7+ },
8+ "standalone" : {
9+ "description" : " Build Standalone." ,
10+ "dependencies" : [" mo2-uibase" ]
711 }
12+ },
13+ "vcpkg-configuration" : {
14+ "default-registry" : {
15+ "kind" : " git" ,
16+ "repository" : " https://github.com/Microsoft/vcpkg" ,
17+ "baseline" : " f61a294e765b257926ae9e9d85f96468a0af74e7"
18+ },
19+ "registries" : [
20+ {
21+ "kind" : " git" ,
22+ "repository" : " https://github.com/Microsoft/vcpkg" ,
23+ "baseline" : " f61a294e765b257926ae9e9d85f96468a0af74e7" ,
24+ "packages" : [" boost*" , " boost-*" ]
25+ },
26+ {
27+ "kind" : " git" ,
28+ "repository" : " https://github.com/ModOrganizer2/vcpkg-registry" ,
29+ "baseline" : " 70c0aacd6962073dae6e46c2e810c91aa755d2e2" ,
30+ "packages" : [" mo2-*" , " pybind11" , " spdlog" ]
31+ }
32+ ]
833 }
934}
You can’t perform that action at this time.
0 commit comments