Added OVR SDK to GENie script.

This commit is contained in:
Branimir Karadžić 2014-10-19 21:29:27 -07:00
parent 42bee43686
commit 85cb1185b4
2 changed files with 42 additions and 1 deletions

View file

@ -24,6 +24,15 @@ function bgfxProject(_name, _kind, _defines)
_defines,
}
if _OPTIONS["with-ovr"] then
defines {
"BGFX_CONFIG_USE_OVR=1",
}
includedirs {
"$(OVR_DIR)/LibOVR/Include",
}
end
configuration { "Debug" }
defines {
"BGFX_CONFIG_DEBUG=1",

View file

@ -18,6 +18,11 @@ newoption {
description = "Enable SDL entry.",
}
newoption {
trigger = "with-ovr",
description = "Enable OculusVR integration.",
}
solution "bgfx"
configurations {
"Debug",
@ -97,6 +102,33 @@ function exampleProject(_name)
configuration {}
end
if _OPTIONS["with-ovr"] then
links {
"winmm",
"ws2_32",
}
configuration { "x32" }
libdirs { "$(OVR_DIR)/LibOVR/Lib/Win32/" .. _ACTION }
configuration { "x64", "vs2012" }
libdirs { "$(OVR_DIR)/LibOVR/Lib/x64/" .. _ACTION }
configuration { "x32", "Debug" }
links { "libovrd" }
configuration { "x32", "Release" }
links { "libovr" }
configuration { "x64", "Debug" }
links { "libovr64d" }
configuration { "x64", "Release" }
links { "libovr64" }
configuration {}
end
configuration { "vs*" }
linkoptions {
"/ignore:4199", -- LNK4199: /DELAYLOAD:*.dll ignored; no imports found from *.dll
@ -136,7 +168,7 @@ function exampleProject(_name)
"GLESv2",
}
configuration { "nacl or nacl-arm" }
configuration { "nacl*" }
kind "ConsoleApp"
targetextension ".nexe"
links {