diff --git a/ninja.lua b/ninja.lua index a0f70c4..95c5bb0 100644 --- a/ninja.lua +++ b/ninja.lua @@ -241,7 +241,13 @@ local function getFileDependencies(cfg) dependencies = {"prebuild_" .. get_key(cfg)} end for i = 1, #cfg.dependson do - table.insert(dependencies, cfg.dependson[i] .. "_" .. cfg.buildcfg) + + local dependpostfix = "" + if cfg.platform then + dependpostfix = "_" .. cfg.platform + end + + table.insert(dependencies, cfg.dependson[i] .. "_" .. cfg.buildcfg .. dependpostfix) end return dependencies end