Functions | Variables
roscompile.installs Namespace Reference

Functions

def check_complex_section (cmd, key, value)
 
def fix_double_directory_installs (package)
 
def get_commands_by_type (cmake, name, subfolder='')
 
def get_install_type (destination)
 
def get_install_types (cmd, subfolder='')
 
def get_multiword_section (cmd, words)
 
def install_section_check (cmake, items, install_type, directory=False, subfolder='')
 
def install_sections (cmd, destination_map, subfolder='')
 
def matches_patterns (item, patterns)
 
def remove_install_section (cmd, destination_map)
 
def update_cplusplus_installs (package)
 
def update_misc_installs (package)
 

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.

def roscompile.installs.fix_double_directory_installs (   package)

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.

def roscompile.installs.update_cplusplus_installs (   package)

Definition at line 187 of file installs.py.

def roscompile.installs.update_misc_installs (   package)

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.

dictionary roscompile.installs.INSTALL_CONFIGS
Initial value:
1 = {
2  'exec': ('TARGETS', {'${CATKIN_PACKAGE_BIN_DESTINATION}': ['RUNTIME DESTINATION']}),
3  'library': ('TARGETS', {'${CATKIN_PACKAGE_LIB_DESTINATION}': ['ARCHIVE DESTINATION', 'LIBRARY DESTINATION'],
4  '${CATKIN_GLOBAL_BIN_DESTINATION}': ['RUNTIME DESTINATION']}),
5  'headers': ('FILES', {'${CATKIN_PACKAGE_INCLUDE_DESTINATION}': ['DESTINATION']}),
6  'misc': ('FILES', {'${CATKIN_PACKAGE_SHARE_DESTINATION}': ['DESTINATION']})
7 }

Definition at line 12 of file installs.py.



roscompile
Author(s):
autogenerated on Wed Jun 19 2019 19:56:53