Skip to content
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

Updated example C++ library to be compatible with MacOS #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

githappens
Copy link

Hi,

I thought it might be useful for some to see how they could prepare their native plugin code to be compatible with both MacOS and Windows. This PR extends the native plugin with an example of just that.

Additionally, I added a CMakeLists.txt so the plugin can be built with CMake on MacOS.

I also added the MacOS binaries to the Plugin folder that I compiled from the example project. I pushed it as a separate commit so the rest of the changes can be cherry picked should you not want to include this binary file in your own repository.

@forrestthewoods
Copy link
Owner

Can you update so that CMakeLsits deploys the .dylib into the right location and then removed the pre-compiled .dylib from the repo? Bonus points if you can update it to deploy the .dll as well. I probably should have done that to begin with, eek.

@githappens
Copy link
Author

Good point, I set the output path to the Plugins folder. I only tested it on macOS but it should work on Windows as well.
I removed both your Windows and my macOS binaries... let me know if you are fine with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants