mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
bgfx genie scripts: use path.join to compose paths
Using path.join instead of string concatenation makes the scripts more OS-neutral. It also protects against missing or doubled "/" characters in paths.
This commit is contained in:
@@ -8,18 +8,18 @@ project ("example-common")
|
||||
kind "StaticLib"
|
||||
|
||||
includedirs {
|
||||
BX_DIR .. "include",
|
||||
BGFX_DIR .. "include",
|
||||
BGFX_DIR .. "3rdparty",
|
||||
path.join(BX_DIR, "include"),
|
||||
path.join(BGFX_DIR, "include"),
|
||||
path.join(BGFX_DIR, "3rdparty"),
|
||||
}
|
||||
|
||||
files {
|
||||
BGFX_DIR .. "3rdparty/ib-compress/**.cpp",
|
||||
BGFX_DIR .. "3rdparty/ib-compress/**.h",
|
||||
BGFX_DIR .. "3rdparty/ocornut-imgui/**.cpp",
|
||||
BGFX_DIR .. "3rdparty/ocornut-imgui/**.h",
|
||||
BGFX_DIR .. "examples/common/**.cpp",
|
||||
BGFX_DIR .. "examples/common/**.h",
|
||||
path.join(BGFX_DIR, "3rdparty/ib-compress/**.cpp"),
|
||||
path.join(BGFX_DIR, "3rdparty/ib-compress/**.h"),
|
||||
path.join(BGFX_DIR, "3rdparty/ocornut-imgui/**.cpp"),
|
||||
path.join(BGFX_DIR, "3rdparty/ocornut-imgui/**.h"),
|
||||
path.join(BGFX_DIR, "examples/common/**.cpp"),
|
||||
path.join(BGFX_DIR, "examples/common/**.h"),
|
||||
}
|
||||
|
||||
if _OPTIONS["with-sdl"] then
|
||||
|
||||
Reference in New Issue
Block a user