3 from util
import roscompile, make_executable
6 MAINPAGE_S =
"/\*\*\s+\\\\mainpage\s+\\\\htmlinclude manifest.html\s+\\\\b %s\s+<!--\s+" + \
7 "Provide an overview of your package.\s+-->\s+-->\s+[^\*]*\*/" 12 cfgs = package.dynamic_reconfigs
15 pkg_list = set([
'dynamic_reconfigure'])
16 package.manifest.add_packages(pkg_list, pkg_list)
17 package.cmake.section_check(cfgs,
'generate_dynamic_reconfigure_options',
'')
18 package.cmake.section_check(pkg_list,
'find_package',
'COMPONENTS')
26 mainpage_pattern = re.compile(MAINPAGE_S % package.name)
27 for fn
in package.misc_files:
28 if 'mainpage.dox' in fn:
29 full_path = os.path.join(package.root, fn)
30 s = open(full_path).read()
31 if mainpage_pattern.match(s):
39 if not package.manifest.is_metapackage():
42 parent_path = os.path.abspath(os.path.join(package.root,
'..'))
44 if require_matching_name
and os.path.split(parent_path)[1] != package.name:
48 for sub_package
in get_packages(parent_path, create_objects=
False):
49 pkg_name = os.path.split(sub_package)[1]
50 if pkg_name != package.name:
51 sub_packages.add(pkg_name)
52 existing_sub_packages = package.manifest.get_packages(
'run')
53 package.manifest.add_packages(set(), sub_packages, prefer_depend_tag=
False)
55 if package.manifest.format == 1:
56 pkg_type =
'run_depend' 58 pkg_type =
'exec_depend' 60 package.manifest.remove_dependencies(pkg_type, existing_sub_packages - sub_packages)
61 package.cmake.section_check([],
'catkin_metapackage', zero_okay=
True)
66 package.manifest.changed =
True 67 for config
in package.plugin_configs:
def remove_useless_files(package)
def check_dynamic_reconfigure(package)
def update_metapackage(package, require_matching_name=False)
def misc_xml_formatting(package)