mirror of
https://git.sr.ht/~calebccff/pbsplash
synced 2026-01-12 20:48:40 -09:00
nanosvg: build implementation in extra c file
Speed up development iterations by building the nanosvg implementation only once. Especially on the PinePhone it takes a bit.
This commit is contained in:
parent
36b0e6780b
commit
fc5f065269
3 changed files with 11 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
src = [
|
||||
'pbsplash.c',
|
||||
'animate.c',
|
||||
'nanosvg.c',
|
||||
'pbsplash.c',
|
||||
]
|
||||
|
||||
executable('pbsplash', src,
|
||||
|
|
|
|||
9
src/nanosvg.c
Normal file
9
src/nanosvg.c
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/* Build the nanosvg implementation here, to build it only once and have other
|
||||
* C files build fast during development. */
|
||||
#include <stdio.h>
|
||||
|
||||
#define NANOSVG_IMPLEMENTATION
|
||||
#include "nanosvg.h"
|
||||
|
||||
#define NANOSVGRAST_IMPLEMENTATION
|
||||
#include "nanosvgrast.h"
|
||||
|
|
@ -14,9 +14,7 @@
|
|||
#include <string.h>
|
||||
#include <math.h>
|
||||
#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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue