Skip to content

Commit

Permalink
Added support for building on VS2012/13 targeting XP
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Mar 7, 2015
1 parent 9a19f68 commit 9a3f9a1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions scripts/bgfx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ function bgfxProject(_name, _kind, _defines)
"$(DXSDK_DIR)/include",
}

if (_OPTIONS["vs"] == "vs2012-xp") or (_OPTIONS["vs"] == "vs2013-xp") then
configuration { "vs201*" }
includedirs {
"$(DXSDK_DIR)/include",
}
end

configuration { "winphone8*"}
linkoptions {
"/ignore:4264" -- LNK4264: archiving object file compiled with /ZW into a static library; note that when authoring Windows Runtime types it is not recommended to link with a static library that contains Windows Runtime metadata
Expand Down
7 changes: 6 additions & 1 deletion scripts/example-common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ project ("example-common")
includedirs {
"$(DXSDK_DIR)/include",
}

if (_OPTIONS["vs"] == "vs2012-xp") or (_OPTIONS["vs"] == "vs2013-xp") then
configuration { "vs201*" }
includedirs {
"$(DXSDK_DIR)/include",
}
end

configuration { "winphone8*"}
linkoptions {
Expand Down

0 comments on commit 9a3f9a1

Please sign in to comment.