6 from .util
import make_executable, roscompile
8 MAINPAGE_S =
r'/\*\*\s+\\mainpage\s+\\htmlinclude manifest.html\s+\\b %s\s+<!--\s+' + \
9 r'Provide an overview of your package.\s+-->\s+-->\s+[^\*]*\*/' 14 cfgs = package.dynamic_reconfigs
17 pkg_list = {
'dynamic_reconfigure'}
18 package.manifest.add_packages(pkg_list, pkg_list)
19 package.cmake.section_check(cfgs,
'generate_dynamic_reconfigure_options',
'')
20 package.cmake.section_check(pkg_list,
'find_package',
'COMPONENTS')
28 mainpage_pattern = re.compile(MAINPAGE_S % package.name)
29 for fn
in package.misc_files:
30 if 'mainpage.dox' in fn:
31 full_path = os.path.join(package.root, fn)
32 s = open(full_path).read()
33 if mainpage_pattern.match(s):
40 if not package.is_metapackage():
43 if require_matching_name:
44 parent_path = os.path.abspath(os.path.join(package.root,
'..'))
46 if os.path.split(parent_path)[1] != package.name:
49 if sibling_packages
is None:
50 sibling_packages = get_sibling_packages(package)
52 existing_sub_packages = package.manifest.get_packages(
'run')
53 package.manifest.add_packages(set(), sibling_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 - sibling_packages)
63 package.cmake.section_check([],
'catkin_metapackage', zero_okay=
True)
66 if not package.manifest.is_metapackage():
67 export_tag = package.manifest.get_export_tag()
68 meta_tag = package.manifest.tree.createElement(
'metapackage')
69 package.manifest.insert_new_tag_inside_another(export_tag, meta_tag)
74 package.manifest.changed =
True 75 for config
in package.plugin_configs:
def remove_useless_files(package)
def check_dynamic_reconfigure(package)
def update_metapackage(package, sibling_packages=None, require_matching_name=False)
def misc_xml_formatting(package)