-
Notifications
You must be signed in to change notification settings - Fork 20
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 CLI to wrap CLAP plugins #316
base: next
Are you sure you want to change the base?
Conversation
This still has several flaws: - completely untested on Windows - Standalone doesn't work on macOS either - uses CPM to get fmt when we already vendor it, cause otherwise the program doesn't link - all the metadata going into AU needs to be removed once it's read from the CLAP. This should happen before this gets merged Needs to be discussed: - replace OS APIs with std::filesystem at the expense of bumping min macOS version to 10.15?
The error when building standalone:
Is it even possible to wrap a CLAP plugin into a single portable standalone binary on Windows? If not, do we even want to support this from the CLI? |
OK so a couple of things looking
so let me pull this branch down now and see if i can fix that and push up a diff or two to get you started. |
1. Make fmt work from the vendored fmt 2. Add the cmake flags so we can use std::filesystem back to 10.13 in the fs::space and modify the create_directories to use a path at least 3. Vendor in CLI11
- Also use fs for all path related activities
At this point, I believe what's left to do is:
Please let me know if there's any more work to do. |
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.
Some comments on a quick morning skim
else() | ||
add_custom_command(TARGET ${VST3_TARGET} POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy_directory | ||
"${OUTPUT_DIR}/${PROJECT_NAME}.vst3" |
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.
This can't work right? IT copies from nowhere to the output dir?
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.
Whoops. Should be fixed now, but requires some testing on Windows, so I won't resolve convo yet
DRAFT PR. DO NOT MERGE. DISCUSSION REQUIRED.Any feedback is welcome.
This still has several flaws:
Standalone doesn't work on macOS eitherStandalone is unsupported atm as we can't build it into single files on all platforms.uses CPM to get fmt when we already vendor it, cause otherwise the program doesn't linkall the metadata going into AU needs to be removed once it's read from the CLAP. This should happen before this gets mergedNeeds to be discussed:
replace OS APIs with std::filesystem at the expense of bumping min macOS version to 10.15?