diff options
| author | ruki <[email protected]> | 2015-06-29 15:21:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-29 15:21:41 +0800 |
| commit | ac86a19928d72a69a1ddd4802479393c717352e4 (patch) | |
| tree | 9391f03ed6c6d11bbe62af0a2b96d8e42bd6295d /xmake/scripts/action/_package.lua | |
| parent | b61940ce9d77a09d86c0e45cf32255f2dd91bc78 (diff) | |
add xmake.lua for package library
Diffstat (limited to 'xmake/scripts/action/_package.lua')
| -rw-r--r-- | xmake/scripts/action/_package.lua | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/xmake/scripts/action/_package.lua b/xmake/scripts/action/_package.lua index af7cac9bf..6743a140d 100644 --- a/xmake/scripts/action/_package.lua +++ b/xmake/scripts/action/_package.lua @@ -134,6 +134,12 @@ function _package._makeconf(target_name, target) -- save kind configs_target.kind = target.kind + -- save the output directory + configs_target.outputdir = options.outputdir or config.get("buildir") + + -- save the header files + configs_target.headers = target.headers + -- save the target directory configs_arch.targetdir = rule.backupdir(target_name, arch) @@ -143,15 +149,6 @@ function _package._makeconf(target_name, target) -- save the target file configs_arch.targetfile = _package._backup(configs_arch.targetdir, rule.targetfile(target_name, target)) - -- save the output directory - configs_arch.outputdir = options.outputdir or config.get("buildir") - - -- save the header files - configs_arch.headerfiles = rule.headerfiles(target) - - -- save the header directory - configs_arch.headerdir = target.headerdir - -- save the package script configs_target.pkgscript = target.pkgscript if type(configs_target.pkgscript) == "string" and os.isfile(configs_target.pkgscript) then |
