Przeglądaj źródła

WinRT builds needs to static link against the D3D11 and DXGI libs.

Mike Popoloski 11 lat temu
rodzic
commit
8bc0607d59
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      scripts/genie.lua

+ 4 - 0
scripts/genie.lua

@@ -158,6 +158,10 @@ function exampleProject(_name)
 			"gdi32",
 			"psapi"
 		}
+		links {
+			"d3d11",
+			"dxgi"
+		}
 		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
 		}