Add native Linux build support via Nix dev shell#20
Open
deveyus wants to merge 1 commit into
Open
Conversation
- Guard Windows .rc file behind if(WIN32) so Linux builds aren't broken - Add x64-linux-debug and x64-linux-release CMake presets (no vcpkg dep) - Add shell.nix providing CMake, Qt 6.11.0, GCC 15, pkg-config, git - Update README to describe fork changes
|
Hey deveyus - thanks a lot for your contribution! I work at Fenris Creations and wanted to let you know that we've acknowledged your PR. We'll take a proper look at it as soon as we can and really appreciate you taking the time to contribute. |
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.
This change adds the minimal infrastructure needed to build LogLite natively on Linux, without requiring vcpkg or Windows-specific tooling.
The existing codebase is already cross-platform Qt6 — only two
#ifdefguards were platform-specific (Windows Registry dark-theme detection and a drive-letter path regex), and the#elsebranches already handle Linux correctly. No C++ changes were needed.Changes:
.rcresource file behindif(WIN32)so it doesn't get compiled on Linux (it includes<windows.h>)shell.nixproviding an isolated Nix dev shell with CMake, Qt 6.11.0, GCC 15, pkg-config, git, and all Qt build tools (moc/uic/rcc)Building on any Linux machine with Nix installed:
nix-shell shell.nix
cmake --preset x64-linux-release
cmake --build .cmake-build-x64-linux-release -j$(nproc)
On non-Nix Linux, install qt6-base-dev and build directly with CMake.