1
0
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:
Delyan Angelov 2020-01-26 13:41:43 +02:00 committed by Alexander Medvednikov
parent edc44993d1
commit 869c8e331e
2 changed files with 6 additions and 3 deletions

3
thirdparty/stb_image/stbi.c vendored Normal file
View File

@ -0,0 +1,3 @@
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"

View File

@ -8,9 +8,9 @@ module stbi
// import gl // import gl
#flag -I @VROOT/thirdparty/stb_image #flag -I @VROOT/thirdparty/stb_image
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h" #include "stb_image.h"
#flag @VROOT/thirdparty/stb_image/stbi.o
pub struct Image { pub struct Image {
mut: mut:
width int width int