Skip to content

Commit 7d82339

Browse files
author
ParitoshK
committed
Update premake lua and add vs2017 config
1 parent 7eeecd5 commit 7d82339

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

tutorials/make_vs17.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
..\premake5\win\premake5.exe vs2017

tutorials/premake5.lua

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ function fileExists(name)
33
if f~=nil then io.close(f) return true else return false end
44
end
55

6+
function os.winSdkVersion()
7+
local reg_arch = iif( os.is64bit(), "\\Wow6432Node\\", "\\" )
8+
local sdk_version = os.getWindowsRegistry( "HKLM:SOFTWARE" .. reg_arch .."Microsoft\\Microsoft SDKs\\Windows\\v10.0\\ProductVersion" )
9+
if sdk_version ~= nil then return sdk_version end
10+
end
11+
612
solution "Tutorials"
713
configurations { "Debug", "Release" }
814
language "C++"
@@ -53,6 +59,10 @@ solution "Tutorials"
5359

5460
configuration {} -- back to all configurations
5561
if os.istarget("windows") then
62+
if _ACTION == "vs2017" then
63+
toolset "msc-v141"
64+
systemversion(os.winSdkVersion() .. ".0")
65+
end
5666
libdirs {"../RadeonProRender/libWin64" }
5767
end
5868
if os.istarget("linux") then
@@ -85,7 +95,8 @@ solution "Tutorials"
8595
include "60_mesh_export"
8696
include "61_mesh_import"
8797
include "62_matball_demo"
88-
include "63_hybrid"
98+
include "63_hybrid"
99+
include "64_mesh_obj_demo"
89100

90101
if fileExists("./MultiTutorials/MultiTutorials.lua") then
91102
dofile("./MultiTutorials/MultiTutorials.lua")

0 commit comments

Comments
 (0)