BdeMetadataUtils¶
This module provide a set of function to parse BDE metadata files.
- bbs_read_metadata¶
This command reads BDE group or package level metadata files and populates a set of list variables that describe the content of the groups and/pr package(s) respectively.
bbs_read_metadata(PACKAGE <package>
[SOURCE_DIR <dir>])
PACKAGE mode reads the bde metadata file for a single package from the
optionally specified SOURCE_DIR
(if not specified, the value of
CMAKE_CURRENT_SOURCE_DIR
is used) and sets the following list variables in
the parent scope:
<package>_COMPONENTS
<package>_DEPENDS
<package>_PCDEPS
<package>_INCLUDE_DIRS
<package>_INCLUDE_FILES
<package>_SOURCE_DIRS
<package>_SOURCE_FILES
<package>_MAIN_SOURCE
<package>_TEST_DEPENDS
<package>_TEST_PCDEPS
<package>_TEST_SOURCES
<package>_G_TEST_SOURCES
<package>_METADATA_DIR
bbs_read_metadata(GROUP <group>
[SOURCE_DIR <dir>]
[CUSTOM_PACKAGES <pkg list>]
[PRIVATE_PACKAGES <pkg list>])
GROUP mode reads the bde group metadata files from the optionally specified
SOURCE_DIR
(if not specified, the value of CMAKE_CURRENT_SOURCE_DIR
is
used) skipping the optionally specified CUSTOM_PACKAGES
folders.
Additionally for all PRIVATE
packages the include files will not be added
to the INCLUDE_FILES
variable for the group.
Subfolder in the SOURCE_DIR
s treatead as a folder containing a package.
In addition to package list variables, it sets the following group list
variables in the parent scope:
<group>_PACKAGES
<group>_COMPONENTS
<group>_DEPENDS
<group>_PCDEPS
<group>_INCLUDE_DIRS
<group>_INCLUDE_FILES
<group>_SOURCE_DIRS
<group>_SOURCE_FILES
<group>_TEST_DEPENDS
<group>_TEST_PCDEPS
<group>_TEST_SOURCES
<group>_G_TEST_SOURCES
<group>_METADATA_DIRS