aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
-rw-r--r--lib/synthpod_app.h2
-rw-r--r--lib/synthpod_common.h23
-rw-r--r--lib/synthpod_ui.h14
4 files changed, 27 insertions, 16 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1af63366..1142193d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,8 +20,8 @@ add_definitions("-DSYNTHPOD_VERSION=\"${SYNTHPOD_VERSION}\"")
set(CMAKE_C_FLAGS "-std=gnu11 ${CMAKE_C_FLAGS}")
# options
-option(BUILD_UI "Build user interface libraries" OFF)
-option(BUILD_JACK "Build JACK standalone host" OFF)
+option(BUILD_UI "Build user interface libraries" ON)
+option(BUILD_JACK "Build JACK standalone host" ON)
option(BUILD_PORTAUDIO "Build PortAudio standalone host (experimental)" OFF)
# eina
diff --git a/lib/synthpod_app.h b/lib/synthpod_app.h
index ec7a6b0c..9b46a5ff 100644
--- a/lib/synthpod_app.h
+++ b/lib/synthpod_app.h
@@ -30,7 +30,7 @@
#include <lilv/lilv.h>
-#define SYNTHPOD_PREFIX "http://open-music-kontrollers.ch/lv2/synthpod#"
+#include <synthpod_common.h>
typedef struct _sp_app_t sp_app_t;
typedef struct _sp_app_driver_t sp_app_driver_t;
diff --git a/lib/synthpod_common.h b/lib/synthpod_common.h
new file mode 100644
index 00000000..79eaa67e
--- /dev/null
+++ b/lib/synthpod_common.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch)
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the Artistic License 2.0 as published by
+ * The Perl Foundation.
+ *
+ * This source is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Artistic License 2.0 for more details.
+ *
+ * You should have received a copy of the Artistic License 2.0
+ * along the source as a COPYING file. If not, obtain it from
+ * http://www.perlfoundation.org/artistic_license_2_0.
+ */
+
+#ifndef _SYNTHPOD_COMMON_H
+#define _SYNTHPOD_COMMON_H
+
+#define SYNTHPOD_PREFIX "http://open-music-kontrollers.ch/lv2/synthpod#"
+
+#endif // _SYNTHPOD_COMMON_H
diff --git a/lib/synthpod_ui.h b/lib/synthpod_ui.h
index ecf93ea0..7d4d631a 100644
--- a/lib/synthpod_ui.h
+++ b/lib/synthpod_ui.h
@@ -29,7 +29,7 @@
#include <lilv/lilv.h>
-#define SYNTHPOD_PREFIX "http://open-music-kontrollers.ch/lv2/synthpod#"
+#include <synthpod_common.h>
// magic to resolve naming issues with EFL on WIN32
#if defined(_WIN32)
@@ -49,18 +49,6 @@
# pragma pop_macro("__MINGW32__")
#endif
-typedef enum _port_widget_t port_widget_t;
-
-enum _port_widget_t {
- PORT_WIDGET_SLIDER = 0,
- PORT_WIDGET_CHECK,
- PORT_WIDGET_DROPBOX,
- PORT_WIDGET_SEGMENT,
- PORT_WIDGET_PROGRESS,
-
- PORT_WIDGET_NUM
-};
-
typedef struct _sp_ui_t sp_ui_t;
typedef struct _sp_ui_driver_t sp_ui_driver_t;