assets are broken into static (compiled into the binary) and dynamic (handled by the resource manager). All static assets should define a meson.build, all dynamic assets must have handlers written in src/resource/resourceManager and resourceManagerTypes BREAKING CHANGE:
11 lines
261 B
Bash
Executable File
11 lines
261 B
Bash
Executable File
#!/bin/sh
|
|
if [ "$#" -ne 2 ]; then
|
|
echo "Usage: $0 <input_file> <output_file>"
|
|
exit 1
|
|
fi
|
|
input_file="$1"
|
|
output_file="$2"
|
|
printf 'const char embeddedConstants[] = R"(' > "$output_file"
|
|
cat "$input_file" >> "$output_file"
|
|
printf ')";\n' >> "$output_file"
|