-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Don't fetch submodules for plugins that aren't being built #5182
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
Merged
+186
−128
Merged
Changes from 14 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
fe28b38
Add PLUGIN_LIST support to CheckSubmodules
tresf 9b504b8
Remove comment
tresf c7c4dd6
@lukas-w don't change your name :D
tresf 5adbeae
Revert "@lukas-w don't change your name :D"
tresf bac2a1b
Fix shallow clone issues for submodules
tresf e92dafb
Remove unused var
tresf 7f3509a
Add shallow clone flag
tresf dbdb2d3
Attempt to localize variable
tresf e5184b5
Support git versions older than 1.8.3
tresf 5c82692
Fix typo
tresf f3ca7ab
Fix more bugs
tresf 5df372f
Documenation and error checking
tresf 2cac306
Add option definitions per request
tresf dcfc210
Add full clone option
tresf 051810b
Sanitize and improve code
tresf bc79da1
Remove SKIP_SUBMODULES
tresf e326fd2
Remove unecessary validation
tresf cea4b50
Fix documentation
tresf a46b979
Remove lingering LIST_SUBMODULES option
tresf 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 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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| # Provides a fast mechanism for filtering the plugins used at build-time | ||
| SET(PLUGIN_LIST "" CACHE STRING "List of plug-ins to build") | ||
| STRING(REPLACE " " ";" PLUGIN_LIST "${PLUGIN_LIST}") | ||
| OPTION(LMMS_MINIMAL "Build a minimal list of plug-ins" OFF) | ||
| OPTION(LIST_PLUGINS "Lists the available plugins for building" OFF) | ||
|
|
||
| SET(MINIMAL_LIST | ||
| audio_file_processor | ||
| kicker | ||
| triple_oscillator | ||
| ) | ||
|
|
||
| IF(LMMS_MINIMAL) | ||
| IF("${PLUGIN_LIST}" STREQUAL "") | ||
| STRING(REPLACE ";" " " MINIMAL_LIST_STRING "${MINIMAL_LIST}") | ||
| MESSAGE( | ||
| "-- Using minimal plug-ins: ${MINIMAL_LIST_STRING}\n" | ||
| " Note: You can specify specific plug-ins using -DPLUGIN_LIST=\"foo bar\"" | ||
| ) | ||
| ENDIF() | ||
| SET(PLUGIN_LIST ${MINIMAL_LIST} ${PLUGIN_LIST}) | ||
| ENDIF() | ||
|
|
||
| SET(LMMS_PLUGIN_LIST | ||
| ${MINIMAL_LIST} | ||
| Amplifier | ||
| BassBooster | ||
| bit_invader | ||
| Bitcrush | ||
| carlabase | ||
| carlapatchbay | ||
| carlarack | ||
| CrossoverEQ | ||
| Delay | ||
| DualFilter | ||
| dynamics_processor | ||
| Eq | ||
| Flanger | ||
| HydrogenImport | ||
| ladspa_browser | ||
| LadspaEffect | ||
| lb302 | ||
| MidiImport | ||
| MidiExport | ||
| MultitapEcho | ||
| monstro | ||
| nes | ||
| OpulenZ | ||
| organic | ||
| FreeBoy | ||
| patman | ||
| peak_controller_effect | ||
| GigPlayer | ||
| ReverbSC | ||
| sf2_player | ||
| sfxr | ||
| sid | ||
| SpectrumAnalyzer | ||
| stereo_enhancer | ||
| stereo_matrix | ||
| stk | ||
| vst_base | ||
| vestige | ||
| VstEffect | ||
| watsyn | ||
| waveshaper | ||
| vibed | ||
| Xpressive | ||
| zynaddsubfx | ||
| ) | ||
|
|
||
| IF("${PLUGIN_LIST}" STREQUAL "") | ||
| SET(PLUGIN_LIST ${LMMS_PLUGIN_LIST}) | ||
| ENDIF() | ||
|
|
||
| MACRO(LIST_ALL_PLUGINS) | ||
| MESSAGE("\n\nAll possible -DPLUGIN_LIST values") | ||
| MESSAGE("\n KEYWORD:") | ||
| MESSAGE(" LMMS_MINIMAL") | ||
| FOREACH(item IN LISTS MINIMAL_LIST) | ||
| MESSAGE(" ${item}") | ||
| ENDFOREACH() | ||
| MESSAGE("\n NAME:") | ||
| FOREACH(item IN LISTS LMMS_PLUGIN_LIST) | ||
| MESSAGE(" ${item}") | ||
| ENDFOREACH() | ||
| MESSAGE("\nNote: This value also impacts the fetching of git submodules.\n") | ||
| MESSAGE(FATAL_ERROR "Information was requested, aborting build!") | ||
| ENDMACRO() | ||
|
|
||
| IF(LIST_PLUGINS) | ||
JohannesLorenz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| UNSET(LIST_PLUGINS CACHE) | ||
| LIST_ALL_PLUGINS() | ||
| ENDIF() | ||
|
|
||
| IF(MSVC) | ||
| SET(MSVC_INCOMPATIBLE_PLUGINS | ||
| LadspaEffect | ||
| zynaddsubfx | ||
| ) | ||
| message(WARNING "Compiling with MSVC. The following plugins are not available: ${MSVC_INCOMPATIBLE_PLUGINS}") | ||
| LIST(REMOVE_ITEM PLUGIN_LIST ${MSVC_INCOMPATIBLE_PLUGINS}) | ||
| ENDIF() | ||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.