aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-05-05 14:30:23 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-05-05 14:30:23 +0200
commitfdcb94d3a8bffdbfef67a68dd93a2eadc6168877 (patch)
tree18e0cf84a8ac0adc84c9ac156ebcb3606833a39a
parent70c306a3211408c69dea837d82bdc358c6da6288 (diff)
downloadsynthpod-fdcb94d3a8bffdbfef67a68dd93a2eadc6168877.tar.xz
add build option for X11 wrap.
-rw-r--r--CMakeLists.txt2
-rw-r--r--plugins/CMakeLists.txt14
-rw-r--r--plugins/manifest.ttl.in16
3 files changed, 24 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 04d3341d..d9fbabd5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,6 +46,8 @@ if(BUILD_UI)
include_directories(${ELM_INCLUDE_DIRS})
endif()
+option(BUILD_X11_WRAPPER OFF)
+
add_subdirectory(lib)
add_subdirectory(bin)
add_subdirectory(plugins)
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
index 13610bcf..8bb757b7 100644
--- a/plugins/CMakeLists.txt
+++ b/plugins/CMakeLists.txt
@@ -61,6 +61,15 @@ if(BUILD_UI)
add_definitions("-DELM_HAS_FAKE")
endif()
+ set(EO_UI_WRAP "")
+ set(UI_UI_WRAP "")
+ set(KX_UI_WRAP "")
+ if(${BUILD_X11_WRAPPER})
+ set(X11_UI_WRAP "")
+ else()
+ set(X11_UI_WRAP "#")
+ endif()
+
# synthpod_ui
add_library(synthpod_ui.lv2 MODULE
synthpod_lv2_ui.c
@@ -69,6 +78,11 @@ if(BUILD_UI)
target_link_libraries(synthpod_ui.lv2 synthpod_ui.lib)
set_target_properties(synthpod_ui.lv2 PROPERTIES PREFIX "" OUTPUT_NAME "synthpod_ui")
install(TARGETS synthpod_ui.lv2 DESTINATION ${DEST})
+else()
+ set(EO_UI_WRAP "#")
+ set(UI_UI_WRAP "#")
+ set(KX_UI_WRAP "#")
+ set(X11_UI_WRAP "#")
endif()
# manifest
diff --git a/plugins/manifest.ttl.in b/plugins/manifest.ttl.in
index f7d3e9dd..3f956906 100644
--- a/plugins/manifest.ttl.in
+++ b/plugins/manifest.ttl.in
@@ -66,10 +66,10 @@ synthpod:sink
synthpod:stereo
a lv2:Plugin ;
lv2:binary <synthpod@LIB_EXT@> ;
- ui:ui synthpod:common_eo ;
- ui:ui synthpod:common_ui ;
- ui:ui synthpod:common_kx ;
- ui:ui synthpod:common_x11 ;
+ @EO_UI_WRAP@ui:ui synthpod:common_eo ;
+ @UI_UI_WRAP@ui:ui synthpod:common_ui ;
+ @KX_UI_WRAP@ui:ui synthpod:common_kx ;
+ @X11_UI_WRAP@ui:ui synthpod:common_x11 ;
rdfs:seeAlso <synthpod.ttl> .
synthpod:common_eo
@@ -93,10 +93,10 @@ synthpod:common_x11
synthpod:keyboard
a lv2:Plugin ;
lv2:binary <synthpod@LIB_EXT@> ;
- ui:ui synthpod:keyboard_eo ;
- ui:ui synthpod:keyboard_ui ;
- ui:ui synthpod:keyboard_kx ;
- ui:ui synthpod:keyboard_x11 ;
+ @EO_UI_WRAP@ui:ui synthpod:keyboard_eo ;
+ @UI_UI_WRAP@ui:ui synthpod:keyboard_ui ;
+ @KX_UI_WRAP@ui:ui synthpod:keyboard_kx ;
+ @X11_UI_WRAP@ui:ui synthpod:keyboard_x11 ;
rdfs:seeAlso <synthpod.ttl> .
synthpod:keyboard_eo