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,15 +8,15 @@ project "texturec"
|
||||
kind "ConsoleApp"
|
||||
|
||||
includedirs {
|
||||
BX_DIR .. "include",
|
||||
BGFX_DIR .. "include",
|
||||
BGFX_DIR .. "src",
|
||||
path.join(BX_DIR, "include"),
|
||||
path.join(BGFX_DIR, "include"),
|
||||
path.join(BGFX_DIR, "src"),
|
||||
}
|
||||
|
||||
files {
|
||||
BGFX_DIR .. "src/image.*",
|
||||
BGFX_DIR .. "tools/texturec/**.cpp",
|
||||
BGFX_DIR .. "tools/texturec/**.h",
|
||||
path.join(BGFX_DIR, "src/image.*"),
|
||||
path.join(BGFX_DIR, "tools/texturec/**.cpp"),
|
||||
path.join(BGFX_DIR, "tools/texturec/**.h"),
|
||||
}
|
||||
|
||||
links {
|
||||
|
||||
Reference in New Issue
Block a user