-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed commit of the following: commit d1a682345862ae6cc1cf83524febdb5076aa4827 Author: AnClark <clarklaw4701@qq.com> Date: Thu Dec 15 09:03:18 2022 +0800 Refactor CMake var _dgl_library -> _dgl_has_ui in plugin build functions Plugin build functions (dpf__build_<PLUGIN_TYPE>) invokes dpf__add_ui_main() which has a parameter HAS_UI. This parameter acts like a switch, controlling if DistrhoPluginMain.cpp shall be compiled. Before this patch, value of _dgl_library is passed into HAS_UI. However, this will make it ambiguous. Variable _dgl_library should only be served as a flag of DGL UI type, and should not be a switch of whether to build DistrhoPluginMain.cpp or not. What's more, since DPF's CMake build system starts to support external UI, which is not limited to DGL, simply checking _dgl_library for dgl__add_ui_main() is no longer relevant. So, instead, I use variable _dgl_has_ui which keeps to the point. It will be set to ON if _dgl_library is non-empty or _dgl_external is ON. commit 2d162a16b6894879a941b131553aded7d451eebe Author: AnClark Liu <anclarkliu@outlook.com> Date: Tue Dec 13 23:13:49 2022 +0800 Build ExternalUI and EmbedExternalUI example plugins with cmake Note: Build CLAP versions as well. commit 2cf060910e8d7589f9b21842f6b0ae802bc89d0a Author: AnClark Liu <anclarkliu@outlook.com> Date: Tue Dec 13 23:07:40 2022 +0800 Add external UI support for cmake Signed-off-by: falkTX <falktx@falktx.com>
- Loading branch information
Showing
6 changed files
with
74 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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 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 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,13 @@ | ||
# CMake file for DISTRHO Plugins # | ||
# ------------------------------ # | ||
|
||
dpf_add_plugin(d_embed_external_ui | ||
TARGETS lv2 vst2 vst3 clap | ||
UI_TYPE external | ||
FILES_DSP | ||
EmbedExternalExamplePlugin.cpp | ||
FILES_UI | ||
EmbedExternalExampleUI.cpp) | ||
|
||
target_include_directories( | ||
d_embed_external_ui PUBLIC ".") |
This file contains 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 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,13 @@ | ||
# CMake file for DISTRHO Plugins # | ||
# ------------------------------ # | ||
|
||
dpf_add_plugin(d_external_ui | ||
TARGETS lv2 vst2 vst3 clap | ||
UI_TYPE external | ||
FILES_DSP | ||
ExternalExamplePlugin.cpp | ||
FILES_UI | ||
ExternalExampleUI.cpp) | ||
|
||
target_include_directories( | ||
d_external_ui PUBLIC ".") |
This file contains 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