Add Linux build support with msvc-wine - #7
Open
fyryNy wants to merge 1 commit into
Open
Conversation
- add Linux configure and build presets for all Gothic targets - add configurable msvc-wine x86 toolchain and linker wrapper - generate preset-aware IntelliSense compilation entries - provide separate Linux and Windows VS Code configurations - package VDF files through Wine on Linux - ensure UnionAPI.dll is copied before VDF packaging - document Linux setup, building, packaging, and IntelliSense
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds Linux support to the Union plugin template using
mstorsjo/msvc-wine.
The generated plugins still use the real 32-bit MSVC toolchain and produce
Windows-compatible PE32 DLLs.
Changes
MSVC_WINE_ROOTsupport through:CMakeUserConfigPresets.json$HOME/my_msvc/opt/msvclocationcompile_commands.jsongeneration..ippsources with the correct:Linuxuses the generated compilation database.Win32uses the CMake Tools configuration provider.UnionAPI.dllis copied before VDF packaging.IntelliSense instructions.
Usage
Install msvc-wine and configure its location in
CMakeUserConfigPresets.json:{ "name": "msvc-wine-config", "hidden": true, "cacheVariables": { "MSVC_WINE_ROOT": "$env{HOME}/my_msvc/opt/msvc" } }Then configure and build the required preset:
Validation
Tested successfully on Linux with:
G1-Debug-msvc-wineG2A-Release-msvc-wineMP-Release-msvc-wineValidation included:
UnionPlugin.dllandUnionAPI.dll.src/Plugin.ippwith zero errors.The existing
.ipptranslation-unit generator was not modified.