aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2016-10-14 14:32:04 +0200
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2016-10-14 14:32:04 +0200
commit99cefc4dbe59c8bd4b201731092fed901358152d (patch)
treeb1f38f6f21293d1356cadd17fd0cf9ed7eddaf48
parent9b0e6e66c0a2b6c4d150f309b185cb8085cac11b (diff)
downloadcanvas.lv2-99cefc4dbe59c8bd4b201731092fed901358152d.zip
canvas.lv2-99cefc4dbe59c8bd4b201731092fed901358152d.tar.gz
canvas.lv2-99cefc4dbe59c8bd4b201731092fed901358152d.tar.bz2
canvas.lv2-99cefc4dbe59c8bd4b201731092fed901358152d.tar.xz
mingw: fix build.
-rw-r--r--CMakeLists.txt16
-rw-r--r--VERSION2
-rw-r--r--canvas_ui.ttl1
-rw-r--r--manifest.ttl.in2
4 files changed, 16 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4f6042f..c19c6bf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,6 +26,14 @@ endif()
add_definitions("-D_GNU_SOURCE=1") # asprintf
+if(WIN32)
+ set(CANVAS_UI_TYPE "WindowsUI")
+elseif(APPLE)
+ set(CANVAS_UI_TYPE "CocoaUI")
+else()
+ set(CANVAS_UI_TYPE "X11UI")
+endif()
+
file(STRINGS "VERSION" CANVAS_VERSION)
string(REPLACE "." ";" VERSION_LIST ${CANVAS_VERSION})
list(GET VERSION_LIST 0 CANVAS_MAJOR_VERSION)
@@ -112,13 +120,17 @@ endif()
add_library(canvas MODULE canvas.c)
target_link_libraries(canvas ${LIBS})
set_target_properties(canvas PROPERTIES PREFIX "")
-set_target_properties(canvas PROPERTIES LINK_FLAGS "-Wl,--entry=lv2_descriptor")
+if(NOT WIN32)
+set_target_properties(canvas PROPERTIES LINK_FLAGS "-Wl,-e,lv2_descriptor")
+endif()
install(TARGETS canvas DESTINATION ${PLUGIN_DEST})
add_library(canvas_ui MODULE ${TAR_UI})
target_link_libraries(canvas_ui ${LIBS_UI})
set_target_properties(canvas_ui PROPERTIES PREFIX "")
-set_target_properties(canvas_ui PROPERTIES LINK_FLAGS "-Wl,--entry=lv2ui_descriptor")
+if(NOT WIN32)
+set_target_properties(canvas_ui PROPERTIES LINK_FLAGS "-Wl,-e,lv2ui_descriptor")
+endif()
install(TARGETS canvas_ui DESTINATION ${PLUGIN_DEST})
configure_file(${PROJECT_SOURCE_DIR}/manifest.ttl.in ${PROJECT_BINARY_DIR}/manifest.ttl)
diff --git a/VERSION b/VERSION
index b029d33..028c266 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.287
+0.1.289
diff --git a/canvas_ui.ttl b/canvas_ui.ttl
index 7072870..fa7005e 100644
--- a/canvas_ui.ttl
+++ b/canvas_ui.ttl
@@ -20,7 +20,6 @@
@prefix canvas: <http://open-music-kontrollers.ch/lv2/canvas#> .
canvas:canvas_ui
- a ui:X11UI ;
ui:portNotification [
ui:plugin canvas:canvas ;
lv2:symbol "notify" ;
diff --git a/manifest.ttl.in b/manifest.ttl.in
index 4bcd3ef..679b95a 100644
--- a/manifest.ttl.in
+++ b/manifest.ttl.in
@@ -29,6 +29,6 @@ canvas:canvas
rdfs:seeAlso <canvas.ttl> .
canvas:canvas_ui
- a ui:X11UI ;
+ a ui:@CANVAS_UI_TYPE@ ;
ui:binary <canvas_ui@CMAKE_SHARED_MODULE_SUFFIX@> ;
rdfs:seeAlso <canvas_ui.ttl> .