-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathoverrides.rb
35 lines (27 loc) · 1.06 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
# Write in this file customization code that will get executed after all the
# soures have beenloaded.
# Uncomment to reenable building the RTT test suite
# This is disabled by default as it requires a lot of time and memory
#
# Autobuild::Package['rtt'].define "BUILD_TESTING", "ON"
# Package specific prefix:
# Autobuild::Package['rtt'].prefix='/opt/autoproj/2.0'
#
# See config.yml to set the prefix:/opt/autoproj/2.0 globally for all packages.
if Autoproj.respond_to?(:post_import)
# Override the CMAKE_BUILD_TYPE if no tag is set
Autoproj.post_import do |pkg|
next if !pkg.kind_of?(Autobuild::CMake)
pkg.define "ROCK_USE_CXX11", "TRUE"
if !pkg.defines.has_key?('CMAKE_BUILD_TYPE')
if(pkg.tags.empty?)
pkg.define "CMAKE_BUILD_TYPE", "RelWithDebInfo"
end
else
if(pkg.defines["CMAKE_BUILD_TYPE"] == 'Debug' && pkg.tags.empty?)
pkg.define "CMAKE_BUILD_TYPE", "RelWithDebInfo"
end
end
end
end
Autoproj.env_set 'ORBgiopMaxMsgSize', 16000000