Merge pull request #1750 from LORgames/ssurtees/appxmanifest
Added support for AppxManifest files
This commit is contained in:
commit
dc02a676e7
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user