obsproject / obs-plugintemplate

GNU General Public License v2.0
285 stars 133 forks source link

Add OBS_BUILD_DIR to docs #113

Closed EZ64cool closed 7 months ago

EZ64cool commented 7 months ago

Description

Adds OBS_BUILD_DIR to README.md

Motivation and Context

This is a really useful CMAKE argument that makes iterative debugging so much easier, before finding this I would manually copy/paste binaries and data from the release folder into a local obs-studio directory. And it's currently missing from the docs.

How Has This Been Tested?

None needed

Types of changes

Checklist:

PatTheMav commented 7 months ago

The variable only exists for legacy purposes, the correct way is to configure the project with an INSTALL_PREFIX that points to a directory that a local OBS installation uses to load plugins and just run cmake --install to update the installed version.

It was (and is) also only available on Windows, whereas using the INSTALL_PREFIX is supported by all platforms. Thus it's not documented, because it's not supposed to be used in the first place.

EZ64cool commented 7 months ago

Okay yeah using INSTALL_PREFIX is a good alternative, as a nice bonus I can now do everything from inside VSCode. Thank you for the tip