Skip to content

Commit 72bf8c5

Browse files
author
Rys Sommefeldt
committed
Updated Premake env for AGS 5.1
1 parent 67676a6 commit 72bf8c5

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

premake/ags_update_vs_files.bat

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,27 @@ cd %startdir%
3030
pause
3131
goto :EOF
3232

33-
:: run premake for vs2013 and vs2015
33+
:: run premake for vs2013, vs2015, and vs2017
3434
:createvsfiles
3535
..\..\premake\premake5.exe vs2013
3636
..\..\premake\premake5.exe vs2015
37+
..\..\premake\premake5.exe vs2017
3738
goto :EOF
3839

3940
:: run premake for dxut
4041
:createdxutvsfiles
4142
..\..\..\premake\premake5.exe vs2013
4243
..\..\..\premake\premake5.exe vs2015
44+
..\..\..\premake\premake5.exe vs2017
4345
goto :EOF
4446

4547
:: delete unnecessary sln files
4648
:cleandxutslnfiles
4749
del /f /q Core\DXUT_2013.sln
4850
del /f /q Core\DXUT_2015.sln
51+
del /f /q Core\DXUT_2017.sln
4952

5053
del /f /q Optional\DXUTOpt_2013.sln
5154
del /f /q Optional\DXUTOpt_2015.sln
55+
del /f /q Optional\DXUTOpt_2017.sln
5256
goto :EOF

premake/amd_premake_util.lua

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,20 @@ _AMD_AGS_BUILD_SUBDIRS = "%{_AMD_ACTION_ALL_CAPS}/%{cfg.platform}/%{cfg.buildcfg
1818
_AMD_AGS_BUILD_SUBDIRS_BACKSLASH = "%{_AMD_ACTION_ALL_CAPS}\\%{cfg.platform}\\%{cfg.buildcfg}"
1919

2020
-- Specify WindowsTargetPlatformVersion here for VS2015
21-
_AMD_WIN_SDK_VERSION = "8.1"
21+
_AMD_WIN_SDK_VERSION = "10.0.15063.0"
2222

2323
-- command lines for Visual Studio build events
24-
_AMD_COPY_WIN_8_0_SDK_REDIST_TO_BIN = "if not exist \"..\\bin\\d3dcompiler_46.dll\" if exist \"$(ProgramFiles)\\Windows Kits\\8.0\\Redist\\D3D\\x64\\d3dcompiler_46.dll\" xcopy \"$(ProgramFiles)\\Windows Kits\\8.0\\Redist\\D3D\\x64\\d3dcompiler_46.dll\" \"..\\bin\" /H /R /Y > nul"
2524
_AMD_COPY_WIN_8_1_SDK_REDIST_TO_BIN = "if not exist \"..\\bin\\d3dcompiler_47.dll\" if exist \"$(ProgramFiles)\\Windows Kits\\8.1\\Redist\\D3D\\x64\\d3dcompiler_47.dll\" xcopy \"$(ProgramFiles)\\Windows Kits\\8.1\\Redist\\D3D\\x64\\d3dcompiler_47.dll\" \"..\\bin\" /H /R /Y > nul"
2625
_AMD_COPY_AGS_RLS_DLL_TO_BIN = "xcopy \"..\\..\\%{_AMD_AGS_DIRECTORY_NAME}\\lib\\amd_ags_x64.dll\" \"..\\bin\" /H /R /Y > nul"
2726

2827
-- these are for copying the updated import lib and dll into the shared location when builing AGS DLLs
2928
_AMD_COPY_AGS_DLL = "xcopy \"..\\lib\\%{_AMD_AGS_BUILD_SUBDIRS_BACKSLASH}\\$(TargetName).dll\" \"..\\lib\" /H /R /Y > nul"
30-
_AMD_COPY_AGS_IMPORT_LIB = "xcopy \"..\\lib\\%{_AMD_AGS_BUILD_SUBDIRS_BACKSLASH}\\$(TargetName).lib\" \"..\\lib\" /H /R /Y > nul"
29+
_AMD_COPY_AGS_LIB = "xcopy \"..\\lib\\%{_AMD_AGS_BUILD_SUBDIRS_BACKSLASH}\\*.lib\" \"..\\lib\" /H /R /Y > nul"
3130

3231
-- post-build commands for samples
3332
function amdAgsSamplePostbuildCommands(copyAgsDllToLocalBin)
3433
local commands = {}
3534
local doCopyAgsDllToLocalBin = copyAgsDllToLocalBin or false
36-
-- for VS2012 and earlier, copy d3dcompiler_46.dll from the 8.0 SDK to the local bin directory
37-
if _ACTION <= "vs2012" then
38-
table.insert(commands, _AMD_COPY_WIN_8_0_SDK_REDIST_TO_BIN)
39-
end
4035
-- copy d3dcompiler_47.dll from the 8.1 SDK to the local bin directory
4136
table.insert(commands, _AMD_COPY_WIN_8_1_SDK_REDIST_TO_BIN)
4237
if doCopyAgsDllToLocalBin then
@@ -51,6 +46,6 @@ function amdAgsLibPostbuildCommands()
5146
local commands = {}
5247
-- copy the AGS DLL and import library into the lib directory
5348
table.insert(commands, _AMD_COPY_AGS_DLL)
54-
table.insert(commands, _AMD_COPY_AGS_IMPORT_LIB)
49+
table.insert(commands, _AMD_COPY_AGS_LIB)
5550
return commands
5651
end

premake/premake5.exe

314 KB
Binary file not shown.

0 commit comments

Comments
 (0)