mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
sokol: allow submodules to be built by themselves (add required imports)
This commit is contained in:
@ -1,9 +1,10 @@
|
|||||||
module f
|
module f
|
||||||
|
|
||||||
import fontstash
|
import fontstash
|
||||||
|
import sokol.c
|
||||||
|
|
||||||
pub const (
|
pub const (
|
||||||
used_import = 1 + fontstash.used_import
|
used_import = fontstash.used_import + c.used_import
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
module gfx
|
module gfx
|
||||||
|
|
||||||
|
import sokol.c
|
||||||
|
|
||||||
pub const (
|
pub const (
|
||||||
version = 1
|
version = 1
|
||||||
|
used_import = c.used_import
|
||||||
)
|
)
|
||||||
|
|
||||||
// setup and misc functions
|
// setup and misc functions
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
module sapp
|
module sapp
|
||||||
|
|
||||||
|
import sokol.gfx
|
||||||
|
|
||||||
|
pub const (
|
||||||
|
used_import = gfx.used_import
|
||||||
|
)
|
||||||
|
|
||||||
// Android needs a global reference to `g_desc`
|
// Android needs a global reference to `g_desc`
|
||||||
__global ( g_desc C.sapp_desc )
|
__global ( g_desc C.sapp_desc )
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user