Skip to content

Commit

Permalink
Merge pull request #1750 from LORgames/ssurtees/appxmanifest
Browse files Browse the repository at this point in the history
Added support for AppxManifest files
  • Loading branch information
samsinsane committed May 21, 2022
2 parents f28eb97 + 7207e62 commit dc02a67
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/vstudio/tests/vc2010/test_files.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
31 changes: 31 additions & 0 deletions modules/vstudio/vs2010_vcxproj.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
---
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit dc02a67

Please sign in to comment.