diff options
| author | ruki <[email protected]> | 2018-04-18 22:37:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-04-18 09:46:23 +0800 |
| commit | 383f44f85f2fd209a65d3bc58b28558ce5028051 (patch) | |
| tree | 71d42a9f065960e13cd67c04165d42adfa89a761 /xmake/rules/qt/xmake.lua | |
| parent | 00004a01cd1ed305cbe7f1eaf7b50519464d0b32 (diff) | |
add before_build_file and after_build_file
Diffstat (limited to 'xmake/rules/qt/xmake.lua')
| -rw-r--r-- | xmake/rules/qt/xmake.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xmake/rules/qt/xmake.lua b/xmake/rules/qt/xmake.lua index 245c45bbf..d27259d03 100644 --- a/xmake/rules/qt/xmake.lua +++ b/xmake/rules/qt/xmake.lua @@ -86,8 +86,8 @@ rule("qt.ui") target:data_set("qt.uic", uic) end) - -- on build file - on_build_file(function (target, sourcefile_ui) + -- before build file + before_build_file(function (target, sourcefile_ui) -- imports import("core.project.config") @@ -103,7 +103,10 @@ rule("qt.ui") end -- compile ui - os.vrunv(ui, {sourcefile_ui, "-o", headerfile_ui}) + os.vrunv(uic, {sourcefile_ui, "-o", headerfile_ui}) + + -- add includedirs + target:add("includedirs", path.absolute(headerfile_dir, os.projectdir())) -- add clean files target:data_add("qt.cleanfiles", headerfile_ui) |
