summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/make/makefile.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-02-14 22:51:31 +0800
committerruki <[email protected]>2019-02-14 11:09:10 +0800
commit2b25d1300333ad47706fbcdcab4665abf6785ff1 (patch)
tree5e91e3663ee7bf978d7da170eeefbffce1af0520 /xmake/plugins/project/make/makefile.lua
parentae1d10255b58e88ab9b687c333654cf4eb32e2d3 (diff)
support some deprecated api for cmakelists
Diffstat (limited to 'xmake/plugins/project/make/makefile.lua')
-rw-r--r--xmake/plugins/project/make/makefile.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua
index e5aaaa201..82a49c220 100644
--- a/xmake/plugins/project/make/makefile.lua
+++ b/xmake/plugins/project/make/makefile.lua
@@ -35,7 +35,6 @@ end
-- mkdir directory
function _mkdir(makefile, dir)
-
if is_plat("windows") then
makefile:print("\t-@mkdir %s > NUL 2>&1", dir)
else
@@ -45,8 +44,6 @@ end
-- copy file
function _cp(makefile, sourcefile, targetfile)
-
- -- copy file
if is_plat("windows") then
makefile:print("\t@copy /Y %s %s > NUL 2>&1", sourcefile, targetfile)
else
@@ -343,7 +340,7 @@ function _make_target(makefile, target, targetflags)
-- TODO make header directories (deprecated)
local dstheaderdirs = {}
- local srcheaders, dstheaders = target:headerfiles()
+ local srcheaders, dstheaders = target:headers()
for _, dstheader in ipairs(dstheaders) do
dstheaderdirs[path.directory(dstheader)] = true
end