mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-24 04:41:04 +00:00
Update the documentation for the GenerateCppResourceFile module
This commit is contained in:
parent
ea8fcb4e82
commit
8af95a2726
1 changed files with 9 additions and 6 deletions
|
@ -5,14 +5,17 @@
|
|||
# Currently only implemented for Unix. Requires the 'xxd'
|
||||
# tool to be installed.
|
||||
#
|
||||
# INPUT_FILE : The name of the binary data file to be converted into a C++
|
||||
# source file.
|
||||
# TARGET_NAME : The name of the target to generate
|
||||
#
|
||||
# CPP_FILE : The path of the C++ source file to be generated.
|
||||
# See the documentation for xxd for information on
|
||||
# the structure of the generated source file.
|
||||
# INPUT_DIR : The directory containing the input binary data file
|
||||
#
|
||||
# INPUT_FILE_TARGET : The name of the target which generates INPUT_FILE
|
||||
# INPUT_FILE : The name of the binary data file in ${INPUT_DIR} to be converted into a C++
|
||||
# source file. The name of the input file will be used as the basis for the
|
||||
# symbols in the generated C++ file referring to the data buffer and its length.
|
||||
#
|
||||
# CPP_FILE : The path of the C++ source file to be generated.
|
||||
# See the documentation for xxd for information on
|
||||
# the structure of the generated source file.
|
||||
#
|
||||
function (generate_cpp_resource_file TARGET_NAME INPUT_DIR INPUT_FILE CPP_FILE)
|
||||
add_custom_command(OUTPUT ${CPP_FILE} COMMAND cd ${INPUT_DIR} && xxd -i ${INPUT_FILE} ${CPP_FILE}
|
||||
|
|
Loading…
Reference in a new issue