diff options
| author | ruki <[email protected]> | 2019-09-02 23:02:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-09-02 12:16:41 +0800 |
| commit | 9f580d4e56f182c65b8402b7e4e5dd3e9c1612fd (patch) | |
| tree | 98987c0fa6facb6ebdd265748cfbab01a6d45155 | |
| parent | 5e1cb3782f6a9e8cd4f6ac446537b158aaed8c0d (diff) | |
add win.sdk.resource rule
| -rw-r--r-- | xmake/languages/msrc/xmake.lua | 3 | ||||
| -rw-r--r-- | xmake/rules/winsdk/xmake.lua | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/xmake/languages/msrc/xmake.lua b/xmake/languages/msrc/xmake.lua index d788bc1b6..3288b3627 100644 --- a/xmake/languages/msrc/xmake.lua +++ b/xmake/languages/msrc/xmake.lua @@ -33,6 +33,9 @@ language("msrc") -- set mixing kinds set_mixingkinds("mrc") + -- add rules + add_rules("win.sdk.resource") + -- on load on_load("load") diff --git a/xmake/rules/winsdk/xmake.lua b/xmake/rules/winsdk/xmake.lua index d9b08efea..66accd6aa 100644 --- a/xmake/rules/winsdk/xmake.lua +++ b/xmake/rules/winsdk/xmake.lua @@ -18,6 +18,13 @@ -- @file xmake.lua -- +-- define rule: win.sdk.resource +rule("win.sdk.resource") + set_extensions(".rc") + on_build_files(function (target, sourcebatch, opt) + import("private.action.build.object")(target, sourcebatch, opt) + end) + -- define rule: application rule("win.sdk.application") |
