Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Extensions #1848

Open
wants to merge 26 commits into
base: dev/vcpkg
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
bb4f3fd
Move to VCPKG.
Holt59 Jul 8, 2024
d0d0a98
Switch VersionInfo -> Version for ModOrganizer2. (#2063)
Holt59 Aug 5, 2024
54a7e93
Move mo2-cmake to standalone feature.
Holt59 Oct 13, 2024
1d5a407
Start implementing the theme manager.
Holt59 May 20, 2022
f8ea6de
Implement theme extensions.
Holt59 May 20, 2022
17e54ba
Implement translation manager.
Holt59 May 20, 2022
9d93701
Fix after uibase changes.
Holt59 May 23, 2022
646723c
Load themes and translations from extensions/.
Holt59 May 23, 2022
1993fee
Update plugin manager.
Holt59 May 24, 2022
62fe0a4
Remove plugin container from source group.
Holt59 May 24, 2022
a02fabc
Update for extensions.
Holt59 May 24, 2022
64f9c99
Track the master plugin in a plugin group.
Holt59 May 26, 2022
d35ffb9
Setup theme extensions properly.
Holt59 Jul 16, 2023
c6516af
Recurse folders to find Qt plugins.
Holt59 Jul 16, 2023
28f134c
Add IExtensionList implementation.
Holt59 Jul 22, 2023
0d699bd
Remove unused fileMapping() overload.
Holt59 Jul 22, 2023
af52b77
Update theme extensions.
Holt59 Jul 22, 2023
20711bd
Start working on extensions tab in settings.
Holt59 Jul 22, 2023
c9f5920
Fix after rebase.
Holt59 Aug 5, 2024
5061ff5
Default icon for extension.
Holt59 Aug 9, 2024
5c264af
Minor fixes.
Holt59 Aug 9, 2024
17a2e5e
Start implementing extension info side.
Holt59 Aug 10, 2024
ee6624f
Use MO2_INSTALL_BIN from mo2-cmake instead of custom CMake variable.
Holt59 Aug 10, 2024
263eb6a
Minor updates of themes.
Holt59 Aug 10, 2024
890bee5
Refactor and clean plugin settings stuff.
Holt59 Aug 10, 2024
8006988
Start updating the settings tab for extension.
Holt59 Aug 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 39 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,47 @@ on:
pull_request:
types: [opened, synchronize, reopened]

env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"

jobs:
build:
runs-on: windows-2022
steps:
- name: Build ModOrganizer 2
uses: ModOrganizer2/build-with-mob-action@master
# https://learn.microsoft.com/en-us/vcpkg/consume/binary-caching-github-actions-cache
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 6.7.1
modules: qtpositioning qtwebchannel qtwebengine qtwebsockets
cache: true

- uses: actions/checkout@v4

- name: "Set environmental variables"
shell: bash
run: |
echo "VCPKG_ROOT=$VCPKG_INSTALLATION_ROOT" >> $GITHUB_ENV

- name: Configure ModOrganizer
shell: pwsh
run: |
cmake --preset vs2022-windows-standalone `
"-DCMAKE_PREFIX_PATH=${env:QT_ROOT_DIR}\msvc2019_64" `
"-DCMAKE_INSTALL_PREFIX=install"

- name: Build ModOrganizer
run: cmake --build vsbuild --config RelWithDebInfo --target INSTALL

- name: Package ModOrganizer
uses: actions/upload-artifact@master
with:
qt-modules: qtpositioning qtwebchannel qtwebengine qtwebsockets
mo2-third-parties:
7z zlib gtest libbsarch libloot openssl bzip2 python lz4 spdlog
boost boost-di sip pyqt pybind11 ss licenses explorerpp DirectXTex
mo2-dependencies: usvfs cmake_common uibase githubpp bsatk esptk archive lootcli game_gamebryo
name: modorganizer
path: ./install
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ edit
/msbuild.log
/*std*.log
/*build
.vscode

/src/version.aps
46 changes: 0 additions & 46 deletions .hgignore

This file was deleted.

21 changes: 11 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
cmake_minimum_required(VERSION 3.16)

# TODO: move these to cmake_common?
set(OPENSSL_USE_STATIC_LIBS FALSE CACHE STRING "" FORCE)
set(MySQL_INCLUDE_DIRS CACHE STRING "" FORCE)

if(DEFINED DEPENDENCIES_DIR)
include(${DEPENDENCIES_DIR}/modorganizer_super/cmake_common/mo2.cmake)
else()
include(${CMAKE_CURRENT_LIST_DIR}/../cmake_common/mo2.cmake)
endif()
# TODO: clean include directives
set(MO2_CMAKE_DEPRECATED_UIBASE_INCLUDE ON)

project(organizer)

find_package(mo2-cmake CONFIG REQUIRED)

set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1)

add_subdirectory(src)
add_subdirectory(themes)

set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT organizer)

install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dump_running_process.bat DESTINATION bin)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dump_running_process.bat DESTINATION ${MO2_INSTALL_BIN})
59 changes: 59 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"configurePresets": [
{
"errors": {
"deprecated": true
},
"hidden": true,
"name": "cmake-dev",
"warnings": {
"deprecated": true,
"dev": true
}
},
{
"cacheVariables": {
"VCPKG_MANIFEST_NO_DEFAULT_FEATURES": {
"type": "BOOL",
"value": "ON"
}
},
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"hidden": true,
"name": "vcpkg"
},
{
"binaryDir": "${sourceDir}/vsbuild",
"architecture": {
"strategy": "set",
"value": "x64"
},
"cacheVariables": {
"CMAKE_CXX_FLAGS": "/EHsc /MP /W3",
"VCPKG_TARGET_TRIPLET": {
"type": "STRING",
"value": "x64-windows-static-md"
}
},
"generator": "Visual Studio 17 2022",
"inherits": ["cmake-dev", "vcpkg"],
"name": "vs2022-windows",
"toolset": "v143"
},
{
"cacheVariables": {
"VCPKG_MANIFEST_FEATURES": {
"type": "STRING",
"value": "standalone"
},
"MO2_INSTALL_IS_BIN": {
"type": "BOOL",
"value": "ON"
}
},
"inherits": "vs2022-windows",
"name": "vs2022-windows-standalone"
}
],
"version": 4
}
Loading
Loading