Functions | Variables
roscompile::installs Namespace Reference

Functions

def check_complex_section
def fix_double_directory_installs
def get_commands_by_type
def get_install_type
def get_install_types
def get_multiword_section
def install_section_check
def install_sections
def matches_patterns
def remove_install_section
def update_cplusplus_installs
def update_misc_installs

Variables

list FILES_TO_NOT_INSTALL = ['CHANGELOG.rst', 'README.md', '.travis.yml', 'bitbucket-pipelines.yml']
dictionary INSTALL_CONFIGS

Function Documentation

def roscompile.installs.check_complex_section (   cmd,
  key,
  value 
)
This finds the appopriate section of the command (with a possibly multiword key, see get_multiword_section)
    and ensures the given value is in it. If the appopriate section is not found, it adds it. 

Definition at line 76 of file installs.py.

Definition at line 209 of file installs.py.

def roscompile.installs.get_commands_by_type (   cmake,
  name,
  subfolder = '' 
)

Definition at line 128 of file installs.py.

def roscompile.installs.get_install_type (   destination)
For a given catkin destination, return the matching install type 

Definition at line 21 of file installs.py.

def roscompile.installs.get_install_types (   cmd,
  subfolder = '' 
)
For a given CMake command, determine the install type(s) that this command uses.

    If there is a non-empty subfolder, we only return the install types if the command
    installs into the catkin_destination with the given subfolder 

Definition at line 28 of file installs.py.

def roscompile.installs.get_multiword_section (   cmd,
  words 
)
Our definition of a CMake command section is ONE all-caps word followed by tokens.
    Installing stuff requires these weird TWO word sections (i.e. ARCHIVE DESTINATION).

    Ergo, we need to find the section that matches the second word, presuming the section
    before matched the first word.

Definition at line 46 of file installs.py.

def roscompile.installs.install_section_check (   cmake,
  items,
  install_type,
  directory = False,
  subfolder = '' 
)

Definition at line 136 of file installs.py.

def roscompile.installs.install_sections (   cmd,
  destination_map,
  subfolder = '' 
)
For a given command and destination_map, ensure that the command has all
    the appropriate CMake sections with the matching catkin destinations.
    If the subfolder is defined, the subfolder is appended to the catkin destination.

Definition at line 94 of file installs.py.

def roscompile.installs.matches_patterns (   item,
  patterns 
)

Definition at line 68 of file installs.py.

def roscompile.installs.remove_install_section (   cmd,
  destination_map 
)

Definition at line 105 of file installs.py.

Definition at line 187 of file installs.py.

Definition at line 195 of file installs.py.


Variable Documentation

list roscompile::installs::FILES_TO_NOT_INSTALL = ['CHANGELOG.rst', 'README.md', '.travis.yml', 'bitbucket-pipelines.yml']

Definition at line 7 of file installs.py.

Initial value:
00001 {
00002     'exec': ('TARGETS', {'${CATKIN_PACKAGE_BIN_DESTINATION}': ['RUNTIME DESTINATION']}),
00003     'library': ('TARGETS', {'${CATKIN_PACKAGE_LIB_DESTINATION}': ['ARCHIVE DESTINATION', 'LIBRARY DESTINATION'],
00004                             '${CATKIN_GLOBAL_BIN_DESTINATION}': ['RUNTIME DESTINATION']}),
00005     'headers': ('FILES', {'${CATKIN_PACKAGE_INCLUDE_DESTINATION}': ['DESTINATION']}),
00006     'misc': ('FILES', {'${CATKIN_PACKAGE_SHARE_DESTINATION}': ['DESTINATION']})
00007 }

Definition at line 12 of file installs.py.



roscompile
Author(s):
autogenerated on Wed Jun 19 2019 19:21:36