-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nasa#2320, reorganize FS header files
Organize FS header file contents according to the convention
- Loading branch information
Showing
2 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
########################################################### | ||
# | ||
# FS Core Module mission build setup | ||
# | ||
# This file is evaluated as part of the "prepare" stage | ||
# and can be used to set up prerequisites for the build, | ||
# such as generating header files | ||
# | ||
########################################################### | ||
|
||
# The list of header files that control the FS configuration | ||
set(FS_MISSION_CONFIG_FILE_LIST | ||
cfe_fs_extern_typedefs.h | ||
) | ||
|
||
if (CFE_EDS_ENABLED_BUILD) | ||
|
||
# In an EDS-based build, these files come generated from the EDS tool | ||
set(FS_CFGFILE_SRC_fs_extern_typedefs "cfe_fs_eds_typedefs.h") | ||
|
||
endif(CFE_EDS_ENABLED_BUILD) | ||
|
||
# Create wrappers around the all the config header files | ||
# This makes them individually overridable by the missions, without modifying | ||
# the distribution default copies | ||
foreach(FS_CFGFILE ${FS_MISSION_CONFIG_FILE_LIST}) | ||
get_filename_component(CFGKEY "${FS_CFGFILE}" NAME_WE) | ||
if (DEFINED FS_CFGFILE_SRC_${CFGKEY}) | ||
set(DEFAULT_SOURCE GENERATED_FILE "${FS_CFGFILE_SRC_${CFGKEY}}") | ||
else() | ||
set(DEFAULT_SOURCE FALLBACK_FILE "${CMAKE_CURRENT_LIST_DIR}/config/default_${FS_CFGFILE}") | ||
endif() | ||
generate_config_includefile( | ||
FILE_NAME "${FS_CFGFILE}" | ||
${DEFAULT_SOURCE} | ||
) | ||
endforeach() |