sokol: allow submodules to be built by themselves (add required imports)

pull/7180/head
joe-conigliaro 2020-12-07 16:16:21 +11:00
parent 2ba8d31118
commit 14887304d8
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1
3 changed files with 11 additions and 1 deletions

View File

@ -1,9 +1,10 @@
module f
import fontstash
import sokol.c
pub const (
used_import = 1 + fontstash.used_import
used_import = fontstash.used_import + c.used_import
)
/*

View File

@ -1,7 +1,10 @@
module gfx
import sokol.c
pub const (
version = 1
used_import = c.used_import
)
// setup and misc functions

View File

@ -1,5 +1,11 @@
module sapp
import sokol.gfx
pub const (
used_import = gfx.used_import
)
// Android needs a global reference to `g_desc`
__global ( g_desc C.sapp_desc )