-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add MSVC support for GigPlayer (rework) #7162
Open
Veratil
wants to merge
26
commits into
LMMS:master
Choose a base branch
from
Veratil:new-msvc-gigplayer
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
8116940
Add MSVC support for GigPlayer
Veratil 10b58f7
!fixup bump size of buffers up
Veratil d12bd39
!fixup did not bump size check to 1024
Veratil 21da446
!fixup Dom's CMake review
Veratil de0e04b
GigPlayer refactoring
Veratil cd6f98f
Add missing header
Veratil e6a7e21
Use std::for_each_n on supported versions, fall back to normal for lo…
Veratil 0177752
Test gig version defines and defining file_offset_t manually if versi…
Veratil e424d0c
!fixup maybe adding quotes around variable will let msvc build pass a…
Veratil bec6f4c
Merge branch 'master' into new-msvc-gigplayer
Rossmaxx 7ed72df
fix typo with sampleframe from merge
Rossmaxx 4a1d472
removed accidental mingw-std-threads
Rossmaxx 70defdd
added static cast to fix werror
Rossmaxx d6a4010
disabled version check for msvc
Rossmaxx ef2f3e4
fixed no-deprecated flag
Rossmaxx d879785
commented out version checking
Rossmaxx 481e5a6
fixed mingw build after latest breakage.
Rossmaxx c2ad335
simplify a condition with De Morgan's law
Rossmaxx fcdaa1b
Merge branch 'master' into new-msvc-gigplayer
Rossmaxx 7185d18
use < instead of " in the include
Rossmaxx 99835ff
removed the #if because now we have for_each_n
Rossmaxx 887ac30
linespace
Rossmaxx 3adfdff
simplified looped index calculation by removing function
Rossmaxx c9addd3
remove the getPingPongIndex function too.
Rossmaxx 9d9f3a4
fix build
Rossmaxx dfa3244
forgot the header file
Rossmaxx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,32 @@ | ||
# Copyright (c) 2024 Kevin Zander | ||
# Based on FindPortAudio.cmake, copyright (c) 2023 Dominic Clark | ||
# | ||
# Redistribution and use is allowed according to the terms of the New BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
|
||
include(ImportedTargetHelpers) | ||
|
||
find_package_config_mode_with_fallback(gig libgig::libgig | ||
LIBRARY_NAMES "gig" | ||
INCLUDE_NAMES "libgig/gig.h" | ||
PKG_CONFIG gig | ||
PREFIX Gig | ||
) | ||
|
||
determine_version_from_source(Gig_VERSION libgig::libgig [[ | ||
#include <iostream> | ||
#include <libgig/gig.h> | ||
|
||
auto main() -> int | ||
{ | ||
const auto version = gig::libraryVersion(); | ||
std::cout << version; | ||
} | ||
]]) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
|
||
find_package_handle_standard_args(Gig | ||
REQUIRED_VARS Gig_LIBRARY Gig_INCLUDE_DIRS | ||
VERSION_VAR Gig_VERSION | ||
) |
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.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to do version checking unconditionally as a sanity check. It's less complicated that way, makes fewer assumptions about our CI, and would catch any future mistakes.
Plus, if someone tried to build lmms on their own with MSVC, we'd want it to detect if they had an unsupported libgig version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version checking is broken on MSVC and causes a build fail, that's why I brought in this workaround.