diff options
| author | ruki <[email protected]> | 2021-06-02 22:48:05 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-06-02 22:48:05 +0800 |
| commit | eee121636be554cdeef8907bd0d2fac6a23304a6 (patch) | |
| tree | 1fe24ca4d7fe8740bc222c75aa28ad03b978da63 /xmake/actions/package | |
| parent | 4223c60a70bf0220f15c18fe3ec4a5dda24b317a (diff) | |
add localpkg test
Diffstat (limited to 'xmake/actions/package')
| -rw-r--r-- | xmake/actions/package/local/main.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/actions/package/local/main.lua b/xmake/actions/package/local/main.lua index d4b776a00..c2b3c556c 100644 --- a/xmake/actions/package/local/main.lua +++ b/xmake/actions/package/local/main.lua @@ -67,6 +67,7 @@ function _package_library(target) local packagedir = path.join(outputdir, "packages", packagename:sub(1, 1), packagename) local binarydir = path.join(packagedir, target:plat(), target:arch(), config.mode(), "bin") local librarydir = path.join(packagedir, target:plat(), target:arch(), config.mode(), "lib") + local headerdir = path.join(packagedir, target:plat(), target:arch(), config.mode(), "include") -- copy the library file to the output directory local targetfile = target:targetfile() @@ -86,7 +87,7 @@ function _package_library(target) end -- copy headers - local srcheaders, dstheaders = target:headerfiles(path.join(packagedir, "include")) + local srcheaders, dstheaders = target:headerfiles(headerdir) if srcheaders and dstheaders then local i = 1 for _, srcheader in ipairs(srcheaders) do |
