From cf6f4880070283ba3323c54ff4192dc349b68fbb Mon Sep 17 00:00:00 2001 From: Peter Soetens Date: Wed, 1 Jun 2011 23:05:56 +0200 Subject: [PATCH] rtt-typelib: move out to a separate package Signed-off-by: Peter Soetens --- Manifest.txt | 9 - Rakefile | 21 +-- lib/orogen/templates/typekit/manifest.xml | 1 + lib/orogen/templates/typekit/mqueue/CMakeLists.txt | 2 +- .../templates/typekit/typelib/CMakeLists.txt | 2 +- manifest.xml | 1 + rtt-typelib/.gitignore | 1 - rtt-typelib/CMakeLists.txt | 49 ---- rtt-typelib/MQTypelibMarshaller.cpp | 51 ----- rtt-typelib/MQTypelibMarshaller.hpp | 42 ---- rtt-typelib/OpaqueTypelibMarshaller.hpp | 232 -------------------- rtt-typelib/TypelibMarshaller.hpp | 91 -------- rtt-typelib/TypelibMarshallerBase.cpp | 82 ------- rtt-typelib/TypelibMarshallerBase.hpp | 181 --------------- rtt-typelib/TypelibMarshallerHandle.hpp | 65 ------ rtt-typelib/rtt-typelib.pc.in | 12 - 16 files changed, 6 insertions(+), 836 deletions(-) delete mode 100644 rtt-typelib/.gitignore delete mode 100644 rtt-typelib/CMakeLists.txt delete mode 100644 rtt-typelib/MQTypelibMarshaller.cpp delete mode 100644 rtt-typelib/MQTypelibMarshaller.hpp delete mode 100644 rtt-typelib/OpaqueTypelibMarshaller.hpp delete mode 100644 rtt-typelib/TypelibMarshaller.hpp delete mode 100644 rtt-typelib/TypelibMarshallerBase.cpp delete mode 100644 rtt-typelib/TypelibMarshallerBase.hpp delete mode 100644 rtt-typelib/TypelibMarshallerHandle.hpp delete mode 100644 rtt-typelib/rtt-typelib.pc.in diff --git a/Manifest.txt b/Manifest.txt index 910ba40..0cb6972 100644 --- a/Manifest.txt +++ b/Manifest.txt @@ -97,15 +97,6 @@ lib/orogen/templates/typekit/typelib/Type.cpp lib/orogen/templates/typekit/typelib/transport-typelib.pc lib/orogen/test.rb lib/orogen/version.rb -rtt-typelib/CMakeLists.txt -rtt-typelib/MQTypelibMarshaller.cpp -rtt-typelib/MQTypelibMarshaller.hpp -rtt-typelib/OpaqueTypelibMarshaller.hpp -rtt-typelib/TypelibMarshaller.hpp -rtt-typelib/TypelibMarshallerBase.cpp -rtt-typelib/TypelibMarshallerBase.hpp -rtt-typelib/TypelibMarshallerHandle.hpp -rtt-typelib/rtt-typelib.pc.in test/data/build_regen_library/include/regen_lib.h test/data/empty_component.orogen test/data/exists diff --git a/Rakefile b/Rakefile index aa08d07..9d0f987 100644 --- a/Rakefile +++ b/Rakefile @@ -1,25 +1,8 @@ require './lib/orogen/version' require 'shellwords' -task :setup, :cmake_args do |t, args| - args.with_defaults(:cmake_args => "") +task :setup begin - cmake_args = Shellwords.split(args[:cmake_args]) - if cmake_args.grep(/-DOROCOS_TARGET=/).empty? && ENV['OROCOS_TARGET'] - cmake_args << "-DOROCOS_TARGET=#{ENV['OROCOS_TARGET']}" - end - - FileUtils.mkdir_p File.join('rtt-typelib', 'build') - Dir.chdir(File.join('rtt-typelib', 'build')) do - puts "running cmake with #{cmake_args.join(" ")}" - if !system('cmake', '..', *cmake_args) - raise "cannot configure the rtt-typelib's build system" - end - if !system('make', 'install') - raise "cannot build or install the rtt-typelib support library" - end - end - require 'typelib' require 'orogen' STDERR.puts "oroGen is ready to use" @@ -33,7 +16,7 @@ task :setup, :cmake_args do |t, args| end exit(1) end -end + task :default => :setup begin diff --git a/lib/orogen/templates/typekit/manifest.xml b/lib/orogen/templates/typekit/manifest.xml index e7dbe26..3b965c7 100644 --- a/lib/orogen/templates/typekit/manifest.xml +++ b/lib/orogen/templates/typekit/manifest.xml @@ -9,5 +9,6 @@ http://ros.org/wiki/<%=typekit.name %>-typekit + diff --git a/lib/orogen/templates/typekit/mqueue/CMakeLists.txt b/lib/orogen/templates/typekit/mqueue/CMakeLists.txt index 69e2d64..3742c30 100644 --- a/lib/orogen/templates/typekit/mqueue/CMakeLists.txt +++ b/lib/orogen/templates/typekit/mqueue/CMakeLists.txt @@ -3,7 +3,7 @@ # OrocosRTT_PREFIX has been set by the pkg-config find modules: find_package(Orocos-RTT REQUIRED rtt-transport-mqueue HINTS ${OrocosRTT_PREFIX}/lib/cmake/orocos-rtt) -pkg_check_modules(RTT_Typelib REQUIRED rtt-typelib) +pkg_check_modules(RTT_Typelib REQUIRED rtt_typelib) include_directories(${RTT_Typelib_INCLUDE_DIRS}) link_directories(${RTT_Typelib_LIBRARY_DIRS}) diff --git a/lib/orogen/templates/typekit/typelib/CMakeLists.txt b/lib/orogen/templates/typekit/typelib/CMakeLists.txt index bd2f78b..9569c5d 100644 --- a/lib/orogen/templates/typekit/typelib/CMakeLists.txt +++ b/lib/orogen/templates/typekit/typelib/CMakeLists.txt @@ -7,7 +7,7 @@ pkg_check_modules(TYPELIB REQUIRED typelib) include_directories(${TYPELIB_INCLUDE_DIRS}) link_directories(${TYPELIB_LIBRARY_DIRS}) -pkg_check_modules(RTT_Typelib REQUIRED rtt-typelib) +pkg_check_modules(RTT_Typelib REQUIRED rtt_typelib) include_directories(${RTT_Typelib_INCLUDE_DIRS}) link_directories(${RTT_Typelib_LIBRARY_DIRS}) diff --git a/manifest.xml b/manifest.xml index 1967e3e..7aff3c5 100644 --- a/manifest.xml +++ b/manifest.xml @@ -14,6 +14,7 @@ +