forked from rock-core/rock-package_set
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
24 lines (22 loc) · 768 Bytes
/
init.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
def has_ueye_api?
include_file = File.join("/usr","include","ueye.h")
lib = File.join("/usr","lib","libueye_api.so")
File.exists?(include_file) && File.exists?(lib)
end
def create_metapackages
Autoproj.current_package_set().each_package do |pkg|
meta_name = pkg.name.split("/").first
if(meta_name)
metapackage("rock.#{meta_name}", pkg.name)
end
end
end
if Autoproj::Metapackage.method_defined?(:weak_dependencies?)
metapackage('rock').weak_dependencies = true
end
if Autoproj::Metapackage.method_defined?(:weak_dependencies?)
metapackage('rock.drivers').weak_dependencies = true
end
if Autoproj::Metapackage.method_defined?(:weak_dependencies?)
metapackage('rock.all').weak_dependencies = true
end