Link bx library.

This commit is contained in:
Branimir Karadžić 2017-01-08 15:15:22 -08:00
parent 0271b449f8
commit 1350734fbb
3 changed files with 9 additions and 0 deletions

View File

@ -14,6 +14,8 @@
#include <X11/Xutil.h> #include <X11/Xutil.h>
#include <bgfx/platform.h> #include <bgfx/platform.h>
#include <unistd.h> // syscall
#undef None #undef None
#include <bx/thread.h> #include <bx/thread.h>
#include <bx/os.h> #include <bx/os.h>

View File

@ -75,6 +75,10 @@ function bgfxProject(_name, _kind, _defines)
_defines, _defines,
} }
links {
"bx",
}
if _OPTIONS["with-glfw"] then if _OPTIONS["with-glfw"] then
defines { defines {
"BGFX_CONFIG_MULTITHREADED=0", "BGFX_CONFIG_MULTITHREADED=0",

View File

@ -143,6 +143,7 @@ function exampleProject(_name)
links { links {
"bgfx", "bgfx",
"bx",
"example-common", "example-common",
} }
@ -363,6 +364,8 @@ dofile "bgfx.lua"
group "libs" group "libs"
bgfxProject("", "StaticLib", {}) bgfxProject("", "StaticLib", {})
dofile(path.join(BX_DIR, "scripts/bx.lua"))
if _OPTIONS["with-examples"] or _OPTIONS["with-tools"] then if _OPTIONS["with-examples"] or _OPTIONS["with-tools"] then
group "examples" group "examples"
dofile "example-common.lua" dofile "example-common.lua"