diff options
| author | ruki <[email protected]> | 2019-08-03 20:57:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-08-03 20:57:35 +0800 |
| commit | 3bcd6b12a6230e1bb421b67d58cfc5fe057db8dc (patch) | |
| tree | 4161c2994140693fc748048db987a4e876af5d7b /xmake | |
| parent | e3bda5c006d6e35eb029844be29942451849247d (diff) | |
add add_cleanfiles api
Diffstat (limited to 'xmake')
| -rw-r--r-- | xmake/actions/clean/main.lua | 3 | ||||
| -rw-r--r-- | xmake/core/project/target.lua | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/xmake/actions/clean/main.lua b/xmake/actions/clean/main.lua index d2c9b5969..b2479a868 100644 --- a/xmake/actions/clean/main.lua +++ b/xmake/actions/clean/main.lua @@ -50,6 +50,9 @@ function _do_clean_target(target) local _, dstheaders = target:headers() remove_files(dstheaders) + -- remove the clean files + remove_files(target:get("cleanfiles")) + -- remove all? if option.get("all") then diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 7c336944c..8011ff313 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -1689,6 +1689,7 @@ function target.apis() , "target.set_rundir" -- target.add_xxx , "target.add_files" + , "target.add_cleanfiles" , "target.add_configfiles" , "target.add_installfiles" -- target.del_xxx |
