diff options
| author | ruki <[email protected]> | 2021-03-11 00:36:39 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-11 00:36:39 +0800 |
| commit | 9039db9855e26363dc95296955347e2a80835287 (patch) | |
| tree | a1b1ffba552b5a97b9449eef13130d4f0c2e077b | |
| parent | 6620104d73da3f0ca697276fea4ed897e45f35a2 (diff) | |
improve sourcekind for rule
| -rw-r--r-- | xmake/core/project/target.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/winsdk/xmake.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 617141791..d3bb27766 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -1574,7 +1574,7 @@ function _instance:sourcebatches() -- attempt to get source kind from the builtin languages local sourcekind = self:sourcekind_of(sourcefile) - if sourcekind and not override then + if sourcekind and target:get("sourcekinds") and not override then -- save source kind sourcebatch.sourcekind = sourcekind diff --git a/xmake/rules/winsdk/xmake.lua b/xmake/rules/winsdk/xmake.lua index a6a639dd3..0a3b105cc 100644 --- a/xmake/rules/winsdk/xmake.lua +++ b/xmake/rules/winsdk/xmake.lua @@ -20,7 +20,7 @@ -- define rule: win.sdk.resource rule("win.sdk.resource") - set_extensions(".rc") + set_sourcekinds("mrc") on_build_files("private.action.build.object", {batch = true}) -- define rule: application |
