-
Notifications
You must be signed in to change notification settings - Fork 0
/
overrides.rb
105 lines (89 loc) · 3.49 KB
/
overrides.rb
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Write in this file customization code that will get executed after all the
# soures have beenloaded.
# MQ does not build with boost version greater 1.42
#if package_selected?('rtt')
# package('rtt').define "PLUGINS_ENABLE_SCRIPTING", "OFF"
# package('rtt').define "ENABLE_MQ", "ON"
#end
#Test setup for https://rock.opendfki.de/ticket/384
#Autoproj.post_import do |pkg|
# if pkg.kind_of?(Autobuild::CMake)
# pkg.define "CMAKE_EXPORT_COMPILE_COMMANDS", "ON"
# # pkg.define "ROCK_USE_CXX11", "TRUE"
# end
#end
#Not really currently supported by Alex 11.07.2013
#setup_package 'gui/rock_widget_collection' do |pkg|
# pkg.define "USE_VTK", "ON"
#end
#setup_package 'external/opencv' do |pkg|
# pkg.define "BUILD_TESTS", "OFF"
# pkg.define "WITH_FFMPEG", "OFF"
# pkg.define "WITH_V4L", "OFF"
# pkg.define "BUILD_EXAMPLES", "OFF"
#end
#setup_package('slam/envire') do |pkg|
# pkg.parallel_build_level = 1
#end
#if Autoproj.user_config('ROCK_FLAVOR') == 'next'
# setup_package('orogen') do |pkg|
# pkg.importer = Autobuild::Git.new(pkg.importer.repository,pkg.importer.branch,:commit => "2442b57d8e5da5f3ecaca7b2e291308ebe7f88a1")
# end
#end
#Autobuild::Orogen.always_regenerate = true
#if Socket.gethostname == "mgoldhoorn"
# Autobuild::Package['tools/syskit'].importer.branch="realtime_adaptation"
# Autobuild::Package['tools/roby'].importer.branch="realtime_adaptation"
#end
if Socket.gethostname == "avalon-rear" or Socket.gethostname == "avalon"
STDOUT.puts "#### Not building GUI Based packes on Avalon ####"
ignore "gui/vizkit"
ignore "gui/rock_widget_collection"
ignore "simulation/.*"
ignore "avalon/orogen/avalon_simulation_deployment"
ignore "avalon/orogen/laserToPosition"
ignore "avalon/gui/sonarbeamviz"
ignore "avalon/gui/movement"
ignore "avalon/gui/rangeScanner"
ignore "avalon/gui/sonar"
ignore "avalon/orogen/sonar_vizkit"
ignore "avalon/orogen/movementGUI"
ignore "avalon/orogen/sonarGUI"
ignore "avalon/orogen/movement_experiment"
ignore ".*structured_light"
end
Autoproj.post_import do |pkg|
if pkg.kind_of?(Autobuild::CMake)
pkg.define 'ROCK_USE_CXX11','true'
end
end
#checking out the new version of yaml for avalon
#setup_package 'external/yaml-cpp' do |pkg|
# pkg.define("BUILD_SHARED_LIBS","ON")
# update_archive(pkg, "http://yaml-cpp.googlecode.com/files/yaml-cpp-0.3.0.tar.gz", "0.3.0") do
# File.readlines(File.join(pkg.srcdir,"CMakeLists.txt")).grep(/YAML_CPP_VERSION_MINOR "3"/) == []
# end
#end
#remove_from_default 'external/sisl'
#if Autoproj::Metapackage.method_defined?(:weak_dependencies?)
# metapackage('rock').weak_dependencies = true
# metapackage('rock.toolchain').weak_dependencies = true
# metapackage('rock.base').weak_dependencies = true
#end
#if not Socket.gethostname.include?("build")
# File.open(File.join(Autoproj.root_dir,'install','bin', 'ruby'), "r+") do |io|
# s = io.read
# if not s.include?("-rpy")
# s.sub!("\"$@\""," -rpry \"$@\"")
# io.seek(0)
# io.write(s)
# end
# package('avalon/orogen/avalon_base').depends_on 'pry'
# end
#end
#cmake_package 'external/sisl' do |pkg|
# pkg.define "BUILD_SHARED_LIBS","ON"
# update_archive(pkg, "http://www.sintef.no/upload/IKT/9011/geometri/sisl/sisl-4.5.0.tar.gz", "4.5.0") do
# !File.exists?(File.join(pkg.srcdir,"CMakeLists.txt"))
# end
#end