diff options
Diffstat (limited to '3rdparty/genie/src/base/path.lua')
-rw-r--r-- | 3rdparty/genie/src/base/path.lua | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/3rdparty/genie/src/base/path.lua b/3rdparty/genie/src/base/path.lua index c017ff7822b..d9eb936c414 100644 --- a/3rdparty/genie/src/base/path.lua +++ b/3rdparty/genie/src/base/path.lua @@ -157,7 +157,7 @@ end function path.iscppfile(fname) - return path.hasextension(fname, { ".cc", ".cpp", ".cxx", ".c", ".m", ".mm" }) + return path.hasextension(fname, { ".cc", ".cpp", ".cxx", ".c++", ".c", ".m", ".mm" }) end function path.iscxfile(fname) @@ -172,10 +172,18 @@ return path.hasextension(fname, { ".h", ".hh", ".hpp", ".hxx" }) end + function path.iscppmodule(fname) + return path.hasextension(fname, { ".ixx", ".cppm" }) + end + function path.isappxmanifest(fname) return path.hasextension(fname, ".appxmanifest") end + function path.isandroidbuildfile(fname) + return path.getname(fname) == "AndroidManifest.xml" + end + function path.isnatvis(fname) return path.hasextension(fname, ".natvis") end @@ -188,6 +196,11 @@ return path.hasextension(fname, ".vala") end + function path.isgresource(fname) + local ending = ".gresource.xml" + return ending == "" or fname:sub(-#ending) == ending + end + function path.isswiftfile(fname) return path.hasextension(fname, ".swift") end @@ -202,8 +215,18 @@ end function path.issourcefilevs(fname) - return path.hasextension(fname, { ".cc", ".cpp", ".cxx", ".c" }) + return path.hasextension(fname, { ".cc", ".cpp", ".cxx", ".c++", ".c" }) or path.iscxfile(fname) + or path.iscppmodule(fname) + end + +-- +-- Returns true if the filename represents a compiled object file. This check +-- is used to support object files in the "files" list for archiving. +-- + + function path.isobjectfile(fname) + return path.hasextension(fname, { ".o", ".obj" }) end -- |