Add in-tree build support#21
Conversation
a51bd1d to
1fa7adb
Compare
1fa7adb to
17b9b72
Compare
|
The whole idea of the plugintemplate is to move people away from in-tree builds, but instead manage plugins as their own independent projects with This also gently forces developers to write their plugins in a more standalone fashion which helps us down the line with API changes, plugin sandboxing, or other security-related functionality we might envision. There is a CMake option to have the resulting artifact be copied into an OBS build's |
|
I agree with @PatTheMav . We should not be encouraging in-tree building for plugins that are not the core plugins already in the obs-studio repo. |
|
Ok, so I close the PR. |
|
@tytan652 If you got any feedback about any issues arising from this change (i.e. pain points, missing explanation, unclearities), please let us know. I guess the discussions forum on the obs-studio project would be a good place to let us know. |
|
Like #10 explains it, I just though that enabling in-tree build for easier testing and debugging purpose would be a good idea. This feature is not meant for releasing plugins.
|
|
Well the easiest way to achieve that is to tell CMake to install the plugin into the plugins path of the OBS instance you test with. That will ensure the plugin ends up automatically where it should be and you don't have to re-build OBS every time you changed something about the plugin and just restart your OBS instance. |
|
To be fair, you don't end up rebuilding obs each time you make a plugin change, as cmake handles only rebuilding things that have changed. The biggest issues I have had previously with building out of tree is based around debugging and occasionally function autocompletion for obs api functions. I have never been able to figure out how to get Visual Studio to properly resolve all of the debugging symbols. |
Description
Resolve #10
Note: The Windows only RC file was not added, I just don't know if it's needed for testing and debugging.
Motivation and Context
I just wanted to do it.
How Has This Been Tested?
Types of changes
Checklist: