Browse Source

Build ExternalUI and EmbedExternalUI example plugins with cmake

Note: Build CLAP versions as well.
pull/394/head
AnClark Liu 2 years ago
parent
commit
0ac2adbc90
5 changed files with 30 additions and 1 deletions
  1. +2
    -1
      CMakeLists.txt
  2. +13
    -0
      examples/EmbedExternalUI/CMakeLists.txt
  3. +1
    -0
      examples/EmbedExternalUI/DistrhoPluginInfo.h
  4. +13
    -0
      examples/ExternalUI/CMakeLists.txt
  5. +1
    -0
      examples/ExternalUI/DistrhoPluginInfo.h

+ 2
- 1
CMakeLists.txt View File

@@ -39,7 +39,8 @@ if(DPF_EXAMPLES)
if(NOT (WIN32 OR APPLE)) # TODO skip this one for now
add_subdirectory("examples/CairoUI")
endif()
#add_subdirectory("examples/ExternalUI")
add_subdirectory("examples/ExternalUI")
add_subdirectory("examples/EmbedExternalUI")
add_subdirectory("examples/FileHandling")
add_subdirectory("examples/Info")
add_subdirectory("examples/Latency")


+ 13
- 0
examples/EmbedExternalUI/CMakeLists.txt View File

@@ -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 ".")

+ 1
- 0
examples/EmbedExternalUI/DistrhoPluginInfo.h View File

@@ -20,6 +20,7 @@
#define DISTRHO_PLUGIN_BRAND "DISTRHO"
#define DISTRHO_PLUGIN_NAME "EmbedExternalUI"
#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/examples/EmbedExternalUI"
#define DISTRHO_PLUGIN_CLAP_ID "studio.kx.distrho.examples.embed-external-ui"

#define DISTRHO_PLUGIN_HAS_UI 1
#define DISTRHO_PLUGIN_HAS_EMBED_UI 1


+ 13
- 0
examples/ExternalUI/CMakeLists.txt View File

@@ -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 ".")

+ 1
- 0
examples/ExternalUI/DistrhoPluginInfo.h View File

@@ -20,6 +20,7 @@
#define DISTRHO_PLUGIN_BRAND "DISTRHO"
#define DISTRHO_PLUGIN_NAME "ExternalUI"
#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/examples/ExternalUI"
#define DISTRHO_PLUGIN_CLAP_ID "studio.kx.distrho.examples.external-ui"

#define DISTRHO_PLUGIN_HAS_UI 1
#define DISTRHO_PLUGIN_HAS_EMBED_UI 1


Loading…
Cancel
Save