mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
stbi: make compilation faster by generating a stbi.o file
This commit is contained in:
parent
edc44993d1
commit
869c8e331e
3
thirdparty/stb_image/stbi.c
vendored
Normal file
3
thirdparty/stb_image/stbi.c
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include "stb_image.h"
|
@ -7,10 +7,10 @@ module stbi
|
||||
// note we might need special case for this
|
||||
// import gl
|
||||
|
||||
#flag -I @VROOT/thirdparty/stb_image
|
||||
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#flag -I @VROOT/thirdparty/stb_image
|
||||
#include "stb_image.h"
|
||||
#flag @VROOT/thirdparty/stb_image/stbi.o
|
||||
|
||||
pub struct Image {
|
||||
mut:
|
||||
width int
|
||||
|
Loading…
Reference in New Issue
Block a user