forked from rock-simulation/simulation-package_set
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libs.autobuild
97 lines (87 loc) · 3.79 KB
/
libs.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
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
#cmake_package 'communication/adrf' # Not part of the public stuff yet
#cmake_package 'simulation/mars-plugins/multisim_plugin' #where is it gone?!
def mars_package(srcDir,type = :cmake_package)
if Gem::Version.new(Autobuild::VERSION) <= Gem::Version.new('1.7.2')
mars_path="simulation/mars/"
send(type,srcDir) do |pkg|
pkg.srcdir = mars_path
pkg.post_import do
pkg.srcdir = srcDir
Autoproj.manifest.load_package_manifest(pkg.name)
end
yield pkg if block_given?
end
else
send(type,srcDir) do |pkg|
pkg.define "ROCK",'true' if type == :cmake_package
pkg.importdir = "simulation/mars/"
yield pkg if block_given?
end
end
end
#This package is only known and needed on master
in_flavor 'master' do
cmake_package("simulation/lib_manager")
cmake_package("simulation/configmaps")
cmake_package("simulation/smurf_parser")
mars_package("simulation/mars/entity_generation/entity_factory")
mars_package("simulation/mars/entity_generation/smurf")
mars_package("simulation/mars/smurf_loader")
mars_package("simulation/mars/plugins/Text3D")
mars_package("simulation/mars/common/graphics/osg_text")
mars_package("simulation/mars/common/graphics/osg_text_factory")
end
only_in_flavor 'next','stable' do
mars_package("simulation/mars/common/lib_manager")
end
in_flavor 'master','next','stable' do
mars_package("simulation/mars/common/graphics/osg_lines")
mars_package("simulation/mars/scripts/cmake")
mars_package("simulation/mars/common/cfg_manager")
mars_package("simulation/mars/common/gui/main_gui")
mars_package("simulation/mars/common/data_broker")
mars_package("simulation/mars/common/gui/cfg_manager_gui")
mars_package("simulation/mars/common/gui/lib_manager_gui")
mars_package("simulation/mars/common/gui/log_console")
mars_package("simulation/mars/common/gui/data_broker_gui")
mars_package("simulation/mars/common/gui/data_broker_plotter")
mars_package("simulation/mars/common/utils")
mars_package("simulation/mars/interfaces")
mars_package("simulation/mars/sim") do |pkg|
#Define that mars should use the following path as default for it's configuration
#to enable the autostart of mars
pkg.define "DEFAULT_CONFIG_DIR", File.join(Autobuild.prefix,"configuration","mars_default")
end
mars_package("simulation/mars/gui")
mars_package("simulation/mars/graphics")
mars_package("simulation/mars/app") do |pkg|
pkg.define "DEFAULT_CONFIG_DIR", File.join(Autobuild.prefix,"configuration","mars_default")
end
mars_package("simulation/mars/viz")
mars_package("simulation/mars/scene_loader")
mars_package("simulation/mars/plugins/connexion_plugin")
mars_package("simulation/mars/plugins/constraint_plugin")
mars_package("simulation/mars/doc",:import_package) do |pkg|
pkg.doc_task do
pkg.progress_start "generating Documentation for mars/doc", :done_message => 'generated_documentation for mars/doc' do
Autobuild::Subprocess.run(pkg, 'doc', Autobuild.tool(:make), "-C#{File.join(pkg.srcdir)}", 'doc')
end
end
pkg.doc_dir = 'build'
end
end
in_flavor 'master','next','stable' do
cmake_package 'external/minizip'
autotools_package 'simulation/ode' do |pkg|
pkg.depends_on 'libtool'
pkg.provides "pkgconfig/ode"
pkg.configureflags <<
"--enable-double-precision" <<
"--disable-demos" <<
"--enable-malloc" <<
"--with-drawstuff=none" <<
"CFLAGS=-fPIC -O2 -Wall" <<
"CXXFLAGS=-fPIC -O2 -Wall"
end
Autoproj.add_osdeps_overrides 'external/ode', :package => 'simulation/ode'
end