aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/audiomanager/audiomanager/0001-Build-plugins-as-modules-instead-of-shared-libraries.patch
blob: 4d35899ba8b0daabaa547cfac55dee42250b101d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
From ab47293e8210e33a235440a14b24379fc75ba9a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Erik=20Bot=C3=B6?= <erik.boto at pelagicore.com>
Date: Thu, 30 May 2013 08:40:24 +0200
Subject: [PATCH] * Build plugins as modules instead of shared libraries *
 Don't set SOVERSION in plugins
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Erik Botö <erik.boto at pelagicore.com>
---
 PluginCommandInterfaceDbus/CMakeLists.txt  | 6 +-----
 PluginControlInterface/CMakeLists.txt      | 6 +-----
 PluginRoutingInterfaceAsync/CMakeLists.txt | 6 +-----
 PluginRoutingInterfaceDbus/CMakeLists.txt  | 6 +-----
 4 files changed, 4 insertions(+), 20 deletions(-)

diff --git a/PluginCommandInterfaceDbus/CMakeLists.txt b/PluginCommandInterfaceDbus/CMakeLists.txt
index a27e02f..faf7947 100644
--- a/PluginCommandInterfaceDbus/CMakeLists.txt
+++ b/PluginCommandInterfaceDbus/CMakeLists.txt
@@ -60,11 +60,7 @@ INCLUDE_DIRECTORIES(
 # all source files go here
 file(GLOB PLUGINDBUS_SRCS_CXX "src/*.cpp")
 
-add_library(PluginCommandInterfaceDbus SHARED ${PLUGINDBUS_SRCS_CXX})
-
-SET_TARGET_PROPERTIES(PluginCommandInterfaceDbus PROPERTIES 
-                                            SOVERSION "${LIB_INTERFACE_VERSION}"
-)
+add_library(PluginCommandInterfaceDbus MODULE ${PLUGINDBUS_SRCS_CXX})
 
 TARGET_LINK_LIBRARIES(PluginCommandInterfaceDbus 
     ${DLT_LIBRARIES}
diff --git a/PluginControlInterface/CMakeLists.txt b/PluginControlInterface/CMakeLists.txt
index 16b49be..466e079 100644
--- a/PluginControlInterface/CMakeLists.txt
+++ b/PluginControlInterface/CMakeLists.txt
@@ -47,11 +47,7 @@ INCLUDE_DIRECTORIES(
 # all source files go here
 file(GLOB PLUGIN_CONTROL_SRCS_CXX "src/*.cpp")
 
-add_library(PluginControlInterface SHARED ${PLUGIN_CONTROL_SRCS_CXX})
-
-SET_TARGET_PROPERTIES(PluginControlInterface PROPERTIES 
-                                            SOVERSION "${LIB_INTERFACE_VERSION}"
-)
+add_library(PluginControlInterface MODULE ${PLUGIN_CONTROL_SRCS_CXX})
 
 TARGET_LINK_LIBRARIES(PluginControlInterface 
     ${DLT_LIBRARIES})
diff --git a/PluginRoutingInterfaceAsync/CMakeLists.txt b/PluginRoutingInterfaceAsync/CMakeLists.txt
index b4cd576..1bf09e2 100644
--- a/PluginRoutingInterfaceAsync/CMakeLists.txt
+++ b/PluginRoutingInterfaceAsync/CMakeLists.txt
@@ -48,11 +48,7 @@ INCLUDE_DIRECTORIES(
 file(GLOB PLUGINDBUS_SRCS_CXX "src/*.cpp")
 
 
-add_library(PluginRoutingInterfaceAsync SHARED ${PLUGINDBUS_SRCS_CXX})
-
-SET_TARGET_PROPERTIES(PluginRoutingInterfaceAsync PROPERTIES 
-                                            SOVERSION "${LIB_INTERFACE_VERSION}"
-)
+add_library(PluginRoutingInterfaceAsync MODULE ${PLUGINDBUS_SRCS_CXX})
 
 TARGET_LINK_LIBRARIES(PluginRoutingInterfaceAsync
     ${DLT_LIBRARIES}
diff --git a/PluginRoutingInterfaceDbus/CMakeLists.txt b/PluginRoutingInterfaceDbus/CMakeLists.txt
index ec636c3..19b53bc 100644
--- a/PluginRoutingInterfaceDbus/CMakeLists.txt
+++ b/PluginRoutingInterfaceDbus/CMakeLists.txt
@@ -60,11 +60,7 @@ INCLUDE_DIRECTORIES(
 file(GLOB PLUGINDBUS_SRCS_CXX "src/*.cpp")
 
 
-add_library(PluginRoutingInterfaceDbus SHARED ${PLUGINDBUS_SRCS_CXX})
-
-SET_TARGET_PROPERTIES(PluginRoutingInterfaceDbus PROPERTIES 
-                                            SOVERSION "${LIB_INTERFACE_VERSION}"
-)
+add_library(PluginRoutingInterfaceDbus MODULE ${PLUGINDBUS_SRCS_CXX})
 
 TARGET_LINK_LIBRARIES(PluginRoutingInterfaceDbus 
     ${DLT_LIBRARIES}
-- 
1.8.1.2