-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path01import_orocos_toolchain.autobuild
66 lines (58 loc) · 2.46 KB
/
01import_orocos_toolchain.autobuild
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
### This file imports the RTT packages as they should be built / installed when
# used inside Rock
#
# There is one line per flavor file (stable.autobuild ...) that adds the
# packages to the flavors. It must be updated when releasing
###
# Tune some things on the RTT
configuration_option 'USE_OCL', 'boolean',
:default => 'no',
:doc => [
"Do you need compatibility with OCL ? (yes or no)",
"New Rock users that don't need backward compatibility with legacy Orocos components",
"probably want to say 'no'. Otherwise, say 'yes'.",
"Saying 'yes' will significantly impact compilation time and the size of the resulting binaries",
"Please answer 'yes' or 'no'"]
setup_package 'rtt' do |rtt|
rtt.define "DEFAULT_PLUGIN_PATH", "/"
rtt.post_import do
# There was a bug in RTT CMake code that generated the pluginpath.cpp file
# in the source directory. Delete that file so that the DEFAULT_PLUGIN_PATH
# change above is effective
FileUtils.rm_f File.join(rtt.srcdir, "rtt", "plugin", "pluginpath.cpp")
end
if rtt.respond_to?(:add_tag)
rtt.add_tag 'stable'
end
if Autoproj.config.get('USE_OCL')
rtt.define "PLUGINS_ENABLE_SCRIPTING", "ON"
rtt.define 'ORO_DISABLE_PORT_DATA_SCRIPTING', 'OFF'
Autobuild::Orogen.default_type_export_policy = 'all'
else
rtt.define "PLUGINS_ENABLE_SCRIPTING", "OFF"
rtt.define 'ORO_DISABLE_PORT_DATA_SCRIPTING', 'ON'
Autobuild::Orogen.default_type_export_policy = 'used'
Autobuild::Orogen.orogen_options << "--no-rtt-scripting"
end
rtt.disable_doc
rtt.define 'ENABLE_TESTS', rtt.test_utility.enabled?
end
setup_package "typelib" do |pkg|
pkg.define "BUILD_TESTS", pkg.test_utility.enabled?
end
if !Autoproj.config.get('USE_OCL')
#This package can compiled but is unneeded by default
remove_from_default 'log4cpp'
#OCL cannot be compiled without setting PLUGINS_ENABLE_SCRIPTING on RTT, therefore exclude it hard
Autoproj.manifest.add_exclusion("ocl","USE_OCL is set to false, OCL cannot compiled without this setting.")
end
move_package 'rtt', 'tools'
move_package 'typelib', 'tools'
move_package 'castxml', 'tools'
move_package 'orogen', 'tools'
move_package 'ocl', 'tools'
move_package 'utilmm', 'tools'
move_package 'utilrb', 'tools'
move_package 'log4cpp', 'tools'
move_package 'rtt_typelib', 'tools'
Autoproj.manifest.moved_packages.delete('tools/metaruby')