Compare commits

...
13 Commits
Author SHA1 Message Date
Mikaël Capelle a1970a4761 Bump VCPKG registry baseline and remove Boost dependency. 2025-05-25 19:08:53 +02:00
Mikaël Capelle 26fc784cdd Merge remote-tracking branch 'origin/master' into dev/vcpkg 2025-05-25 16:28:11 +02:00
Jeremy Rimpo 10dbfa673f Merge pull request #20 from ModOrganizer2/obvrem
Add support for the new mod directory mappings
2025-05-22 14:55:14 -05:00
Jeremy Rimpo 13143dbb80 Add fonts_cclub.swf to font config check (#19) 2025-05-22 10:49:18 +02:00
Jeremy Rimpo 9531efe2f0 Skip empty mod dirs when evaluating overwrite 2025-05-03 02:47:57 -05:00
Mikaël Capelle 8adaf060ec Move to VCPKG. 2024-10-13 13:20:49 +02:00
Mikaël Capelle 7fc98c5d4e Update translations. (#18) 2024-07-21 15:56:54 +02:00
Mikaël Capelle 3b0e5c44ed Merge pull request #16 from Liderate/SSE_InvalidFontConfig
Fix SSE check in invalidFontConfig
2024-05-25 14:32:39 +02:00
Liderate cde4731e5e Fix SSE check in invalidFontConfig 2023-11-29 14:24:14 -05:00
Mikaël Capelle 51099bed28 Merge pull request #15 from Liderate/master
Clear m_PluginChildren to prevent stale entries.
2023-10-13 18:59:06 +02:00
Liderate 5b3d2adac5 Clear m_PluginChildren to prevent stale entries. 2023-10-12 02:17:06 -04:00
Mikaël Capelle d56d51e37c Merge pull request #14 from ModOrganizer2/update-cmake-common-qt6
Update following cmake_common changes.
2022-04-28 17:55:15 +02:00
Mikaël Capelle 8d4c514c4d Update following cmake_common changes. 2022-04-19 23:30:01 +02:00
13 changed files with 448 additions and 364 deletions
+7
View File
@@ -0,0 +1,7 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.cpp text eol=crlf
*.h text eol=crlf
+20
View File
@@ -0,0 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-case-conflict
# - repo: https://github.com/pre-commit/mirrors-clang-format
# rev: v19.1.5
# hooks:
# - id: clang-format
# 'types_or': [c++, c]
ci:
autofix_commit_msg: "[pre-commit.ci] Auto fixes from pre-commit.com hooks."
autofix_prs: true
autoupdate_commit_msg: "[pre-commit.ci] Pre-commit autoupdate."
autoupdate_schedule: quarterly
submodules: false
-7
View File
@@ -1,12 +1,5 @@
cmake_minimum_required(VERSION 3.16)
project(diagnose_basic)
set(project_type plugin)
set(enable_warnings OFF)
if(DEFINED DEPENDENCIES_DIR)
include(${DEPENDENCIES_DIR}/modorganizer_super/cmake_common/project.cmake)
else()
include(../cmake_common/project.cmake)
endif()
add_subdirectory(src)
+52
View File
@@ -0,0 +1,52 @@
{
"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 /W4",
"VCPKG_TARGET_TRIPLET": {
"type": "STRING",
"value": "x64-windows-static-md"
}
},
"generator": "Visual Studio 17 2022",
"inherits": ["cmake-dev", "vcpkg"],
"name": "vs2022-windows",
"toolset": "v143"
}
],
"buildPresets": [
{
"name": "vs2022-windows",
"resolvePackageReferences": "on",
"configurePreset": "vs2022-windows"
}
],
"version": 4
}
-40
View File
@@ -1,40 +0,0 @@
version: 1.0.{build}
skip_branch_with_pr: true
image: Visual Studio 2019
environment:
WEBHOOK_URL:
secure: gOKbXaZM9ImtMD5XrYITvdyZUW/az082G9OIN1EC1Vbg57wBaeLhi49uGjxPw5GVujHku6kxN6ab89zhbS5GVeluR76GM83IbKV4Sh7udXzoYZZdg6YudtYHzdhCgUeiedpswbuczTq9ceIkkfSEWZuh/lMAAVVwvcGsJAnoPFw=
build_script:
- pwsh: >-
$ErrorActionPreference = 'Stop'
git clone --depth=1 --no-single-branch https://github.com/ModOrganizer2/modorganizer-umbrella.git c:\projects\modorganizer-umbrella
New-Item -ItemType Directory -Path c:\projects\modorganizer-build
cd c:\projects\modorganizer-umbrella
($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH -eq $null) ? ($branch = $env:APPVEYOR_REPO_BRANCH) : ($branch = $env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH)
git checkout $(git show-ref --verify --quiet refs/remotes/origin/${branch} || echo '-b') ${branch}
C:\Python37-x64\python.exe unimake.py -d c:\projects\modorganizer-build -s Appveyor_Build=True ${env:APPVEYOR_PROJECT_NAME}
if($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode ) }
artifacts:
- path: vsbuild\src\RelWithDebInfo\diagnose_basic.dll
name: diagnose_basic_dll
- path: vsbuild\src\RelWithDebInfo\diagnose_basic.pdb
name: diagnose_basic_pdb
- path: vsbuild\src\RelWithDebInfo\diagnose_basic.lib
name: diagnose_basic_lib
on_success:
- ps: Set-Location -Path $env:APPVEYOR_BUILD_FOLDER
- ps: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 success $env:WEBHOOK_URL
on_failure:
- ps: Set-Location -Path $env:APPVEYOR_BUILD_FOLDER
- ps: Push-AppveyorArtifact ${env:APPVEYOR_BUILD_FOLDER}\stdout.log
- ps: Push-AppveyorArtifact ${env:APPVEYOR_BUILD_FOLDER}\stderr.log
- ps: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 failure $env:WEBHOOK_URL
+8 -5
View File
@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 3.16)
if(DEFINED DEPENDENCIES_DIR)
include(${DEPENDENCIES_DIR}/modorganizer_super/cmake_common/src.cmake)
else()
include(../../cmake_common/src.cmake)
endif()
find_package(mo2-cmake CONFIG REQUIRED)
find_package(mo2-uibase CONFIG REQUIRED)
add_library(diagnose_basic SHARED)
mo2_configure_plugin(diagnose_basic WARNINGS OFF)
target_link_libraries(diagnose_basic PRIVATE mo2::uibase)
mo2_install_plugin(diagnose_basic)
-24
View File
@@ -1,24 +0,0 @@
Import('qt_env')
env = qt_env.Clone()
env.AppendUnique(CPPDEFINES = [
'DIAGNOSEBASIC_LIBRARY',
'NOMINMAX',
# suppress a few warnings caused by boost vs vc++ paranoia
'_SCL_SECURE_NO_WARNINGS'
])
# Boost produces very long names with msvc truncates. Doesn't seem to cause
# problems.
env.AppendUnique(CPPFLAGS = [ '-wd4503' ])
env.AppendUnique(CPPPATH = [
'${BOOSTPATH}'
])
lib = env.SharedLibrary('diagnoseBasic', env.Glob('*.cpp'))
env.InstallModule(lib)
res = env['QT_USED_MODULES']
Return('res')
-35
View File
@@ -1,35 +0,0 @@
#-------------------------------------------------
#
# Project created by QtCreator 2013-04-05T21:08:10
#
#-------------------------------------------------
TARGET = diagnoseBasic
TEMPLATE = lib
CONFIG += plugins
CONFIG += dll
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
DEFINES += DIAGNOSEBASIC_LIBRARY
DEFINES += NOMINMAX
# suppress a few warnings caused by boost vs vc++ paranoia
DEFINES += _SCL_SECURE_NO_WARNINGS
SOURCES += diagnosebasic.cpp
HEADERS += diagnosebasic.h
include(../plugin_template.pri)
INCLUDEPATH += "$${BOOSTPATH}"
#CONFIG += dll
#DEFINES += INIEDITOR_LIBRARY
OTHER_FILES += \
diagnosebasic.json\
SConscript
File diff suppressed because one or more lines are too long
+299 -212
View File
File diff suppressed because it is too large Load Diff
+5 -6
View File
@@ -20,22 +20,21 @@ along with this plugin. If not, see <http://www.gnu.org/licenses/>.
#ifndef DIAGNOSEBASIC_H
#define DIAGNOSEBASIC_H
#include <iplugin.h>
#include <iplugindiagnose.h>
#include <imoinfo.h>
#include <imodlist.h>
#include <QString>
#include <QSet>
#include <QRegularExpression>
#include <uibase/iplugin.h>
#include <uibase/iplugindiagnose.h>
#include <uibase/imoinfo.h>
#include <uibase/imodlist.h>
class DiagnoseBasic : public QObject, public MOBase::IPlugin, public MOBase::IPluginDiagnose
{
Q_OBJECT
Q_INTERFACES(MOBase::IPlugin MOBase::IPluginDiagnose)
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
Q_PLUGIN_METADATA(IID "org.tannin.DiagnoseBasic" FILE "diagnosebasic.json")
Q_PLUGIN_METADATA(IID "org.tannin.DiagnoseBasic")
#endif
public:
-1
View File
@@ -1 +0,0 @@
{}
+23
View File
@@ -0,0 +1,23 @@
{
"features": {
"standalone": {
"description": "Build Standalone.",
"dependencies": ["mo2-cmake", "mo2-uibase"]
}
},
"vcpkg-configuration": {
"default-registry": {
"kind": "git",
"repository": "https://github.com/Microsoft/vcpkg",
"baseline": "294f76666c3000630d828703e675814c05a4fd43"
},
"registries": [
{
"kind": "git",
"repository": "https://github.com/ModOrganizer2/vcpkg-registry",
"baseline": "8beb2e0efa9c17dd6d17bb05288dd1e40727f673",
"packages": ["mo2-*"]
}
]
}
}