Skip to content

Commit

Permalink
Adding wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-f-ortega committed Jan 8, 2025
1 parent 55ccba9 commit 443106f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cmake/API.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,25 @@ function(register_fprime_implementation IMPLEMENTATION IMPLEMENTOR)
append_list_property("${ARGN}" TARGET "${IMPLEMENTOR}" PROPERTY "REQUIRED_SOURCE_FILES")
endfunction()

####
# Adds a named os implementation.
#
# Assumptions:
# 1. NAMES is a list of 1 or more named files separated by ;
# 2. There exists a file named Default${FIRST_ITEM}, where FIRST_ITEM is the first element in NAME, in the same
# directory where this cmake function was called
# 3. For each item e listed in NAMES, there exists a file called ${e}.hpp and ${e}.cpp in the same directory
# where this cmake function was called
#
# NAMES: list of named files to add to this module. The first will be treated as the name of the module.
# i.e. File;Directory;FileSystem will contain the file, directory, and filesystem files in a module called File.
# SUFFIX: suffix to implementation (e.g. Posix)
# ARGN: extra MOD_DEPS to add (e.g. Fw_Time)
####
function(register_os_implementation NAMES SUFFIX)
add_fprime_supplied_os_module("${NAMES}" "${SUFFIX}" "${ARGN}")
endfunction()

####
# Function `choose_fprime_implementation`:
#
Expand Down

0 comments on commit 443106f

Please sign in to comment.