-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update for Mod Organizer 2.5.0 * Add GitHub workflow * Enable preview for bto and btr files
- Loading branch information
Showing
12 changed files
with
274 additions
and
187 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build NIF Preview Plugin | ||
|
||
on: | ||
push: | ||
branches: main | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Build NIF Preview Plugin | ||
uses: ModOrganizer2/build-with-mob-action@master | ||
with: | ||
mo2-third-parties: fmt libbsarch | ||
mo2-dependencies: cmake_common uibase | ||
- name: Upload Build | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: preview_nif | ||
path: | | ||
./build/modorganizer_super/${{ github.event.repository.name }}/vsbuild/src/RelWithDebInfo/preview_nif.dll | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: preview_nif | ||
path: | | ||
./build/modorganizer_super/${{ github.event.repository.name }}/**/data/shaders/* |
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 |
---|---|---|
@@ -1,6 +0,0 @@ | ||
[submodule "external/nifly"] | ||
path = external/nifly | ||
url = https://github.com/ousnius/nifly.git | ||
[submodule "external/gli"] | ||
path = external/gli | ||
url = https://github.com/g-truc/gli.git | ||
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 |
---|---|---|
@@ -1,16 +1,29 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
cmake_minimum_required(VERSION 3.22) | ||
|
||
if(DEFINED DEPENDENCIES_DIR) | ||
include(${DEPENDENCIES_DIR}/modorganizer_super/cmake_common/mo2.cmake) | ||
else() | ||
include(${CMAKE_CURRENT_LIST_DIR}/cmake_common/mo2.cmake) | ||
endif() | ||
|
||
project(preview_nif) | ||
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) | ||
FetchContent_Declare( | ||
gli | ||
GIT_REPOSITORY https://github.com/g-truc/gli.git | ||
GIT_TAG master | ||
) | ||
set(GLI_TEST_ENABLE OFF CACHE BOOL "Build gli unit tests") | ||
add_subdirectory(external/gli) | ||
add_subdirectory(external/nifly) | ||
target_link_libraries(${PROJECT_NAME} nifly gli) | ||
|
||
FetchContent_Declare( | ||
nifly | ||
GIT_REPOSITORY https://github.com/ousnius/nifly.git | ||
GIT_TAG main | ||
) | ||
|
||
FetchContent_MakeAvailable(gli nifly) | ||
|
||
add_subdirectory(src) | ||
target_link_libraries(preview_nif PRIVATE nifly gli) |
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,72 @@ | ||
{ | ||
"version": 3, | ||
"configurePresets": [ | ||
{ | ||
"name": "windows-2022", | ||
"generator": "Visual Studio 17 2022", | ||
"binaryDir": "${sourceDir}/vsbuild", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": { | ||
"type": "STRING", | ||
"value": "Release" | ||
}, | ||
"DEPENDENCIES_DIR": { | ||
"type": "PATH", | ||
"value": "${sourceDir}/../.." | ||
}, | ||
"BOOST_ROOT": { | ||
"type": "PATH", | ||
"value": "${sourceDir}/../../boost_1_83_0" | ||
}, | ||
"BOOST_LIBRARYDIR": { | ||
"type": "PATH", | ||
"value": "${sourceDir}/../../boost_1_83_0/lib64-msvc-14.3/lib" | ||
}, | ||
"FMT_ROOT": { | ||
"type": "PATH", | ||
"value": "${sourceDir}/../../fmt-8.1.1" | ||
}, | ||
"SPDLOG_ROOT": { | ||
"type": "PATH", | ||
"value": "${sourceDir}/../../spdlog-v1.10.0" | ||
}, | ||
"LOOT_PATH": { | ||
"type": "PATH", | ||
"value": "${sourceDir}/../../libloot-0.22.1-win64" | ||
}, | ||
"LZ4_ROOT": { | ||
"type": "PATH", | ||
"value": "${sourceDir}/../../lz4-v1.9.4" | ||
}, | ||
"QT_ROOT": { | ||
"type": "PATH", | ||
"value": "C:/Qt/6.5.3/msvc2019_64" | ||
}, | ||
"ZLIB_ROOT": { | ||
"type": "PATH", | ||
"value": "${sourceDir}/../../zlib-v1.3" | ||
}, | ||
"PYTHON_ROOT": { | ||
"type": "PATH", | ||
"value": "${sourceDir}/../../python-3.11.5" | ||
}, | ||
"SEVENZ_ROOT": { | ||
"type": "PATH", | ||
"value": "${sourceDir}/../../7zip-23.01" | ||
}, | ||
"LIBBSARCH_ROOT": { | ||
"type": "PATH", | ||
"value": "${sourceDir}/../../libbsarch-0.0.9-release-x64" | ||
}, | ||
"BOOST_DI_ROOT": { | ||
"type": "PATH", | ||
"value": "${sourceDir}/../../di" | ||
}, | ||
"GTEST_ROOT": { | ||
"type": "PATH", | ||
"value": "${sourceDir}/../../googletest" | ||
} | ||
} | ||
} | ||
] | ||
} |
Submodule gli
deleted from
779b99
Submodule nifly
deleted from
550483
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 |
---|---|---|
@@ -1,8 +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() | ||
requires_library(libbsarch) | ||
requires_project(game_features) | ||
cmake_minimum_required(VERSION 3.22) | ||
|
||
add_library(preview_nif SHARED) | ||
mo2_configure_plugin( | ||
preview_nif | ||
WARNINGS OFF | ||
PRIVATE_DEPENDS Qt::OpenGLWidgets fmt libbsarch uibase | ||
) | ||
mo2_install_target(preview_nif) |
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
Oops, something went wrong.