2021-07-31 15:46:09 +00:00
|
|
|
#if defined(OS_WINDOWS)
|
|
|
|
#define RESOURCE(name, path) __asm__ ( \
|
|
|
|
".section .rodata\n" \
|
|
|
|
".global " #name "\n" \
|
|
|
|
".global " #name "_size\n" \
|
|
|
|
#name ":\n" \
|
|
|
|
".incbin \"" path "\"\n" \
|
|
|
|
#name "_size:\n" \
|
|
|
|
".int " #name "_size - " #name "\n" \
|
|
|
|
".align 8\n" \
|
|
|
|
)
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define RESOURCE(name, path) __asm__ ( \
|
|
|
|
".section .rodata\n" \
|
|
|
|
".global " #name "\n" \
|
|
|
|
".global " #name "_size\n" \
|
|
|
|
#name ":\n" \
|
2021-07-31 15:10:19 +00:00
|
|
|
".incbin \"" path "\"\n" \
|
|
|
|
".type " #name ", @object\n" \
|
|
|
|
".size " #name "_size, 1\n" \
|
2021-07-31 15:46:09 +00:00
|
|
|
#name "_size:\n" \
|
2021-07-31 15:10:19 +00:00
|
|
|
".int " #name "_size - " #name "\n" \
|
|
|
|
".align 8\n" \
|
2021-07-31 15:46:09 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2021-07-31 15:10:19 +00:00
|
|
|
|
|
|
|
RESOURCE(banner_light, "../../../res/resources/banner_light.png");
|
|
|
|
RESOURCE(banner_dark, "../../../res/resources/banner_dark.png");
|
|
|
|
RESOURCE(splash, "../../../res/resources/splash.png");
|
|
|
|
|
|
|
|
RESOURCE(cacert, "../../../res/resources/cacert.pem");
|