diff --git a/src/meson.build b/src/meson.build index 77f2b51..52b2bf3 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1,6 +1,7 @@ src = [ - 'pbsplash.c', 'animate.c', + 'nanosvg.c', + 'pbsplash.c', ] executable('pbsplash', src, diff --git a/src/nanosvg.c b/src/nanosvg.c new file mode 100644 index 0000000..ecf037a --- /dev/null +++ b/src/nanosvg.c @@ -0,0 +1,9 @@ +/* Build the nanosvg implementation here, to build it only once and have other + * C files build fast during development. */ +#include + +#define NANOSVG_IMPLEMENTATION +#include "nanosvg.h" + +#define NANOSVGRAST_IMPLEMENTATION +#include "nanosvgrast.h" diff --git a/src/pbsplash.c b/src/pbsplash.c index 81e6304..60d2179 100644 --- a/src/pbsplash.c +++ b/src/pbsplash.c @@ -14,9 +14,7 @@ #include #include #define NANOSVG_ALL_COLOR_KEYWORDS // Include full list of color keywords. -#define NANOSVG_IMPLEMENTATION // Expands implementation #include "nanosvg.h" -#define NANOSVGRAST_IMPLEMENTATION #include "nanosvgrast.h" #include "pbsplash.h"