IpcModuleLoader: was moved to LayerManagerUtils, dependencies have been updated
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Mon, 4 Feb 2013 12:37:01 +0000 (04:37 -0800)
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Tue, 5 Feb 2013 13:59:32 +0000 (05:59 -0800)
Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
LayerManagerClient/ilmClient/CMakeLists.txt
LayerManagerPlugins/Communicators/GenericCommunicator/CMakeLists.txt
LayerManagerPlugins/IpcModules/CMakeLists.txt
LayerManagerPlugins/IpcModules/DbusIpcModule/CMakeLists.txt
LayerManagerPlugins/IpcModules/IpcModuleLoader/CMakeLists.txt [deleted file]
LayerManagerPlugins/IpcModules/TcpIpcModule/CMakeLists.txt
LayerManagerUtils/CMakeLists.txt
LayerManagerUtils/include/IpcModule.h [moved from LayerManagerPlugins/IpcModules/IpcModuleLoader/include/IpcModule.h with 100% similarity]
LayerManagerUtils/include/IpcModuleLoader.h [moved from LayerManagerPlugins/IpcModules/IpcModuleLoader/include/IpcModuleLoader.h with 100% similarity]
LayerManagerUtils/src/IpcModuleLoader.cpp [moved from LayerManagerPlugins/IpcModules/IpcModuleLoader/src/IpcModuleLoader.c with 100% similarity]

index c50b14d..07bc11f 100644 (file)
@@ -27,8 +27,8 @@ find_package(Threads)
 include_directories(
     "include"
     "${CMAKE_SOURCE_DIR}/config"
-    "${CMAKE_SOURCE_DIR}/LayerManagerPlugins/IpcModules/IpcModuleLoader/include"
     "${CMAKE_SOURCE_DIR}/LayerManagerBase/include"
+    "${CMAKE_SOURCE_DIR}/LayerManagerUtils/include"
 )
 
 add_library(${PROJECT_NAME} SHARED
@@ -36,13 +36,14 @@ add_library(${PROJECT_NAME} SHARED
 )
 
 add_dependencies(${PROJECT_NAME}
-    IpcModuleLoader
+    LayerManagerUtils
 )
 
 set(LIBS
     ${LIBS}
-    IpcModuleLoader
+    LayerManagerUtils
     rt
+    dl
     ${CMAKE_THREAD_LIBS_INIT}
 )
 
index 51583cc..4ea6c44 100644 (file)
@@ -31,11 +31,9 @@ include_directories(
     ${CMAKE_SOURCE_DIR}/LayerManagerBase/include
     ${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
     ${CMAKE_SOURCE_DIR}/LayerManagerCommands/include
-    ${CMAKE_SOURCE_DIR}/LayerManagerPlugins/IpcModules/IpcModuleLoader/include
 )
 
 set(LIBS
-    IpcModuleLoader
     LayerManagerUtils
     LayerManagerCommands
 )
index a80e812..aaf2f77 100644 (file)
@@ -41,9 +41,3 @@ if (WITH_IPC_MODULE_DBUS)
     set (BUILD_LOADER ON)
 endif (WITH_IPC_MODULE_DBUS)
 
-#==============================================================================
-# IPC MODULE LOADER
-#==============================================================================
-if (BUILD_LOADER)
-    add_subdirectory(IpcModuleLoader)
-endif (BUILD_LOADER)
index 143bb8e..b1c605d 100644 (file)
@@ -28,6 +28,7 @@ include_directories(
     include
     ${CMAKE_SOURCE_DIR}/LayerManagerClient/ilmClient/include
     ${CMAKE_SOURCE_DIR}/LayerManagerPlugins/IpcModules/IpcModuleLoader/include
+    ${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
     ${DBUS_INCLUDE_DIR}
     ${DBUS_ARCH_INCLUDE_DIR}
 )
diff --git a/LayerManagerPlugins/IpcModules/IpcModuleLoader/CMakeLists.txt b/LayerManagerPlugins/IpcModules/IpcModuleLoader/CMakeLists.txt
deleted file mode 100644 (file)
index eb43a75..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-############################################################################
-# 
-# Copyright 2012 BMW Car IT GmbH
-# 
-# 
-# Licensed under the Apache License, Version 2.0 (the "License"); 
-# you may not use this file except in compliance with the License. 
-# You may obtain a copy of the License at 
-#
-#              http://www.apache.org/licenses/LICENSE-2.0 
-#
-# Unless required by applicable law or agreed to in writing, software 
-# distributed under the License is distributed on an "AS IS" BASIS, 
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
-# See the License for the specific language governing permissions and 
-# limitations under the License.
-#
-############################################################################
-
-cmake_minimum_required (VERSION 2.6)
-project_type(CORE)
-
-include_directories(
-    "include"
-    "${PROJECT_SOURCE_DIR}/config"
-    "${PROJECT_SOURCE_DIR}/LayerManagerUtils/include"
-    "${CMAKE_SOURCE_DIR}/LayerManagerClient/ilmClient/include"
-    "${CMAKE_SOURCE_DIR}/LayerManagerPlugins/IpcModules/IpcModuleLoader/include"
-)
-
-add_library(IpcModuleLoader ${LIBRARY_BUILDMODE} src/IpcModuleLoader.c)
-
-set(LIBS
-    dl
-    ${LIBS}
-)
-target_link_libraries(IpcModuleLoader ${LIBS})
-
-install (
-    TARGETS             IpcModuleLoader
-    LIBRARY DESTINATION lib
-    ARCHIVE DESTINATION lib/layermanager/static
-)
-         
-install (
-    FILES       include/IpcModule.h
-    DESTINATION include/ilm
-)
-
-if (WITH_TESTS)
-#    enable_testing()
-#    add_executable(IpcModuleLoader_Test tests/IlmCommandTest.cpp)
-#    target_link_libraries(IpcModuleLoader_Test IpcModuleLoader ${LIBS} gtest)
-#    add_test(IpcModuleLoader IpcModuleLoader_Test )
-endif(WITH_TESTS) 
index c33c99d..bd72f80 100644 (file)
@@ -26,6 +26,7 @@ include_directories(
     include
     ${CMAKE_SOURCE_DIR}/LayerManagerClient/ilmClient/include
     ${CMAKE_SOURCE_DIR}/LayerManagerPlugins/IpcModules/IpcModuleLoader/include
+    ${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
 )
 
 add_library(${PROJECT_NAME} SHARED
index 1ef38ca..e3c8b14 100644 (file)
@@ -30,6 +30,7 @@ add_library(${PROJECT_NAME} STATIC
     src/Log.cpp
     src/LogMessageBuffer.cpp
     src/ThreadBase.cpp
+    src/IpcModuleLoader.cpp
 )
 
 set(INCLUDE_DIRS
@@ -40,6 +41,7 @@ set(INCLUDE_DIRS
 set(LIBS
     ${LIBS}
     ${CMAKE_THREAD_LIBS_INIT}
+    dl
 )
 
 if (WITH_DLT)
@@ -85,10 +87,10 @@ if (WITH_TESTS)
     )
 
     target_link_libraries(${PROJECT_NAME}_Test
-        ${LIBS}
         LayerManagerUtils
         gtest
         pthread
+        ${LIBS}
         ${DLT_LIBRARY}
     )