summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/linux/install.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-07-14 10:30:00 +0800
committerruki <[email protected]>2015-07-14 10:30:00 +0800
commitb08c998ba48775ed029fea31fed7963944b03dae (patch)
treeefdcf8ebea307f01b7cfe10f67c4771e6a2e0e35 /xmake/scripts/platform/linux/install.lua
parent441be85afd1b39ded4584d502c434c17d27ad93e (diff)
add uninstall for macosx and linux
Diffstat (limited to 'xmake/scripts/platform/linux/install.lua')
-rw-r--r--xmake/scripts/platform/linux/install.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/xmake/scripts/platform/linux/install.lua b/xmake/scripts/platform/linux/install.lua
index f5aee6ffe..870cf5040 100644
--- a/xmake/scripts/platform/linux/install.lua
+++ b/xmake/scripts/platform/linux/install.lua
@@ -80,6 +80,9 @@ function install._done_library(target)
utils.error(errors)
return -1
end
+
+ -- update the config.h
+ info.config_h = string.format("%s/%s/%s", includedir, target.name, path.filename(info.config_h))
end
-- copy headers
@@ -99,8 +102,15 @@ function install._done_library(target)
i = i + 1
end
end
+
+ -- update the headers
+ target.headers = dstheaders
end
+ -- update the target directory and file
+ info.targetdir = librarydir
+ info.targetfile = path.filename(info.targetfile)
+
-- ok
return 1
end
@@ -138,6 +148,10 @@ function install._done_binary(target)
return -1
end
+ -- update the target directory and file
+ info.targetdir = binarydir
+ info.targetfile = path.filename(info.targetfile)
+
-- ok
return 1
end