diff options
Diffstat (limited to 'xmake/scripts/platform/linux/install.lua')
| -rw-r--r-- | xmake/scripts/platform/linux/install.lua | 14 |
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 |
