mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
sokol: fix building of examples and ci tests
This commit is contained in:
committed by
Alexander Medvednikov
parent
3d57d3bb7b
commit
24d34a4f2c
28
vlib/sokol/f/f.v
Normal file
28
vlib/sokol/f/f.v
Normal file
@@ -0,0 +1,28 @@
|
||||
module f
|
||||
|
||||
import fontstash
|
||||
|
||||
pub const (
|
||||
used_import = 1 + fontstash.used_import
|
||||
)
|
||||
|
||||
#flag windows -I @VROOT/thirdparty/freetype/include
|
||||
#flag windows -L @VROOT/thirdparty/freetype/win64
|
||||
|
||||
#flag linux -I/usr/include/freetype2
|
||||
#flag darwin -I/usr/local/include/freetype2
|
||||
#flag darwin -I/opt/local/include/freetype2
|
||||
#flag darwin -I/usr/local/Cellar/freetype/2.10.0/include/freetype2/
|
||||
#flag freebsd -I/usr/local/include/freetype2
|
||||
#flag freebsd -Wl -L/usr/local/lib
|
||||
|
||||
#flag -lfreetype
|
||||
#flag darwin -lpng -lbz2 -lz
|
||||
|
||||
#flag linux -I.
|
||||
|
||||
#include "ft2build.h"
|
||||
|
||||
#define FONS_USE_FREETYPE
|
||||
#define SOKOL_FONTSTASH_IMPL
|
||||
#include "util/sokol_fontstash.h"
|
||||
Reference in New Issue
Block a user