mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
update openal-soft
sync point: master-ac5d40e40a0155351fe1be4aab30017b6a13a859
This commit is contained in:
parent
762a84550f
commit
3603188b7f
365 changed files with 76053 additions and 53126 deletions
13
Engine/lib/openal-soft/cmake/bin2h.script.cmake
Normal file
13
Engine/lib/openal-soft/cmake/bin2h.script.cmake
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Read the input file into 'indata', converting each byte to a pair of hex
|
||||
# characters
|
||||
file(READ "${INPUT_FILE}" indata HEX)
|
||||
|
||||
# For each pair of characters, indent them and prepend the 0x prefix, and
|
||||
# append a comma separateor.
|
||||
# TODO: Prettify this. Should group a number of bytes per line instead of one
|
||||
# per line.
|
||||
string(REGEX REPLACE "(..)" " 0x\\1,\n" output "${indata}")
|
||||
|
||||
# Write the list of hex chars to the output file in a const byte array
|
||||
file(WRITE "${OUTPUT_FILE}"
|
||||
"const unsigned char ${VARIABLE_NAME}[] = {\n${output}};\n")
|
||||
Loading…
Add table
Add a link
Reference in a new issue