Merge pull request #1750 from LORgames/ssurtees/appxmanifest

Added support for AppxManifest files
This commit is contained in:
Samuel Surtees 2022-05-21 15:16:41 +10:00 committed by GitHub
commit dc02a676e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 0 deletions

View File

@ -89,6 +89,19 @@
]]
end
function suite.appxManifestCompile_onAppxManifestFile()
files { "hello.appxmanifest" }
prepare()
test.capture [[
<ItemGroup>
<AppxManifest Include="hello.appxmanifest">
<FileType>Document</FileType>
<SubType>Designer</SubType>
</AppxManifest>
</ItemGroup>
]]
end
--
-- Check handling of buildaction.

View File

@ -1057,6 +1057,32 @@
}
---
-- AppxManifest group
---
m.categories.AppxManifest = {
name = "AppxManifest",
extensions = { ".appxmanifest" },
priority = 12,
emitFiles = function(prj, group)
local fileFunc = {
m.fileType,
m.subType,
}
local fileCfgFunc = {
m.excludedFromBuild,
}
m.emitFiles(prj, group, "AppxManifest", fileFunc, fileCfgFunc)
end,
emitFilter = function(prj, group)
m.filterGroup(prj, group, "AppxManifest")
end
}
---
-- Categorize files into groups.
---
@ -1891,6 +1917,11 @@
end
function m.subType(cfg, file)
m.element("SubType", nil, "Designer")
end
function m.floatingPointModel(cfg)
if cfg.floatingpoint and cfg.floatingpoint ~= "Default" then
m.element("FloatingPointModel", nil, cfg.floatingpoint)