mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-21 21:24:46 +00:00
added libraries: opus flac libsndfile updated: libvorbis libogg openal - Everything works as expected for now. Bare in mind libsndfile needed the check for whether or not it could find the xiph libraries removed in order for this to work.
13 lines
474 B
CMake
13 lines
474 B
CMake
# 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
|
|
file(WRITE "${OUTPUT_FILE}" "${output}")
|