feat(assets): setup assets for resource manager
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:
This commit is contained in:
10
assets/static/const/format.sh
Executable file
10
assets/static/const/format.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user