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:
parent
676127bc5d
commit
bdd112289b
7 changed files with 97 additions and 97 deletions
scripts
|
@ -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 a new issue