summaryrefslogtreecommitdiff
path: root/xmake/plugins/project
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-17 00:50:31 +0800
committerruki <[email protected]>2019-01-16 23:03:06 +0800
commit8aca38678b43b9fbf96964ae6fd104ea9e5000a3 (patch)
treec187d3d8a0a01231208b9b547385361f1be771b8 /xmake/plugins/project
parent150e39c909434f0caa63ab453b92257bddde8794 (diff)
add add_headerfiles and mark add_headers/set_headerdir as deprecated
Diffstat (limited to 'xmake/plugins/project')
-rw-r--r--xmake/plugins/project/makefile/makefile.lua6
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x.lua4
2 files changed, 5 insertions, 5 deletions
diff --git a/xmake/plugins/project/makefile/makefile.lua b/xmake/plugins/project/makefile/makefile.lua
index c57447f07..9e2f2a51d 100644
--- a/xmake/plugins/project/makefile/makefile.lua
+++ b/xmake/plugins/project/makefile/makefile.lua
@@ -343,7 +343,7 @@ function _make_target(makefile, target, targetflags)
_mkdir(makefile, path.directory(targetfile))
makefile:writef("\t@%s > %s 2>&1\n", command, _logfile())
- -- make header directories
+ -- TODO make header directories (deprecated)
local dstheaderdirs = {}
local srcheaders, dstheaders = target:headerfiles()
for _, dstheader in ipairs(dstheaders) do
@@ -481,8 +481,8 @@ function _clean_target(makefile, target)
-- remove the object files
_remove(makefile, target:objectfiles())
- -- remove the header files
- local _, dstheaders = target:headerfiles()
+ -- TODO remove the header files (deprecated)
+ local _, dstheaders = target:headers()
_remove(makefile, dstheaders)
end
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua
index aed62e909..30ea20837 100644
--- a/xmake/plugins/project/vstudio/impl/vs201x.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x.lua
@@ -119,8 +119,8 @@ function _make_targetheaders(mode, arch, target, last)
local kind = target:get("kind")
if kind == "static" or kind == "shared" then
- -- make headers
- local srcheaders, dstheaders = target:headerfiles()
+ -- TODO make headers, (deprecated)
+ local srcheaders, dstheaders = target:headers()
if srcheaders and dstheaders then
local i = 1
for _, srcheader in ipairs(srcheaders) do