From 1350734fbb3e0db33ed31ea6c10479f84124bed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 8 Jan 2017 15:15:22 -0800 Subject: [PATCH] Link bx library. --- examples/common/entry/entry_x11.cpp | 2 ++ scripts/bgfx.lua | 4 ++++ scripts/genie.lua | 3 +++ 3 files changed, 9 insertions(+) diff --git a/examples/common/entry/entry_x11.cpp b/examples/common/entry/entry_x11.cpp index faa7f0754..7016b8b64 100644 --- a/examples/common/entry/entry_x11.cpp +++ b/examples/common/entry/entry_x11.cpp @@ -14,6 +14,8 @@ #include #include +#include // syscall + #undef None #include #include diff --git a/scripts/bgfx.lua b/scripts/bgfx.lua index 5b0d40577..53a761bbb 100644 --- a/scripts/bgfx.lua +++ b/scripts/bgfx.lua @@ -75,6 +75,10 @@ function bgfxProject(_name, _kind, _defines) _defines, } + links { + "bx", + } + if _OPTIONS["with-glfw"] then defines { "BGFX_CONFIG_MULTITHREADED=0", diff --git a/scripts/genie.lua b/scripts/genie.lua index c8e48417b..534982e7b 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -143,6 +143,7 @@ function exampleProject(_name) links { "bgfx", + "bx", "example-common", } @@ -363,6 +364,8 @@ dofile "bgfx.lua" group "libs" bgfxProject("", "StaticLib", {}) +dofile(path.join(BX_DIR, "scripts/bx.lua")) + if _OPTIONS["with-examples"] or _OPTIONS["with-tools"] then group "examples" dofile "example-common.lua"