Fix vpaths if not using new structure

This commit is contained in:
momo5502 2016-02-11 17:58:25 +01:00
parent 9eb70a2999
commit d875f36be2

View File

@ -1,6 +1,3 @@
-- protoc tool
protocBinPath = path.translate(path.join(_MAIN_SCRIPT_DIR, "tools", "protoc.exe"))
-- Option to allow copying the DLL file to a custom folder after build -- Option to allow copying the DLL file to a custom folder after build
newoption { newoption {
trigger = "copy-to", trigger = "copy-to",
@ -132,6 +129,12 @@ workspace "iw4x"
"./deps/protobuf/src", "./deps/protobuf/src",
"./deps/Wink-Signals", "./deps/Wink-Signals",
} }
-- fix vpaths for protobuf sources
vpaths {
["*"] = { "./src/**" },
["Proto/*"] = { "./build/src/proto/**" }, -- seems like we need 'build' here
}
-- Virtual paths -- Virtual paths
if not _OPTIONS["no-new-structure"] then if not _OPTIONS["no-new-structure"] then