1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

android: initial support for C output using sokol_main (#6164)

This commit is contained in:
Larpon
2020-08-19 11:00:15 +02:00
committed by GitHub
parent c1651bd271
commit d9aae023b1
4 changed files with 53 additions and 8 deletions

View File

@ -27,7 +27,16 @@ pub const (
// for simplicity, all header includes are here because import order matters and we dont have any way
// to ensure import order with V yet
#define SOKOL_IMPL
#define SOKOL_NO_ENTRY
// TODO should not be defined for android graphic (apk/aab using sokol) builds, but we have no ways to undefine
//#define SOKOL_NO_ENTRY
#flag linux -DSOKOL_NO_ENTRY
#flag darwin -DSOKOL_NO_ENTRY
#flag windows -DSOKOL_NO_ENTRY
#flag freebsd -DSOKOL_NO_ENTRY
#flag solaris -DSOKOL_NO_ENTRY
// TODO end
#include "sokol_app.h"
#define SOKOL_IMPL