Skip to content

Commit

Permalink
Add x64 build option for premake (#11)
Browse files Browse the repository at this point in the history
* Add x64 build option for premake
  • Loading branch information
anzz1 authored Mar 18, 2022
1 parent c1480b0 commit b99e0f8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 11 deletions.
33 changes: 26 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,38 @@ version: 1.{build}
skip_tags: true
image: Visual Studio 2022
configuration: Release
platform:
- Win32
- Win64
install:
- cmd: premake5.bat
build:
project: build/d3d9-wrapper.sln
verbosity: minimal
after_build:
- cmd: 7z a d3d9.zip %APPVEYOR_BUILD_FOLDER%\data\d3d9.dll %APPVEYOR_BUILD_FOLDER%\data\d3d9.ini
artifacts:
- path: d3d9.zip
name: d3d9
for:
-
matrix:
only:
- platform: Win32
after_build:
- cmd: 7z a d3d9.zip %APPVEYOR_BUILD_FOLDER%\data\d3d9.dll %APPVEYOR_BUILD_FOLDER%\data\d3d9.ini
artifacts:
- path: d3d9.zip
name: d3d9
-
matrix:
only:
- platform: Win64
after_build:
- cmd: 7z a d3d9_x64.zip %APPVEYOR_BUILD_FOLDER%\data\x64\d3d9.dll %APPVEYOR_BUILD_FOLDER%\data\d3d9.ini
artifacts:
- path: d3d9_x64.zip
name: d3d9_x64
deploy:
- provider: GitHub
release: d3d9-wrapper v$(appveyor_build_version)
auth_token:
secure: aCLEg3b6b9NxfLYfc/a6KRp3hJUgelndAtNXJcsKLvOULq8ZA5r64Z8PkSUI36rQ
artifact: d3d9.zip
secure: ugbti+bXX/7zqu39OyiPxgRPd2pQn2FEV/12ABees2fHfpZob0tWXzqD/zSYmibJ
artifact: d3d9.zip,d3d9_x64.zip
matrix:
fast_finish: true
14 changes: 10 additions & 4 deletions premake5.lua
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
workspace "d3d9-wrapper"
configurations { "Release", "Debug" }
platforms { "Win32" }
architecture "x32"
platforms { "Win32", "Win64" }
location "build"
objdir ("build/obj")
buildlog ("build/log/%{prj.name}.log")
buildoptions {"-std:c++latest"}

kind "SharedLib"
language "C++"
targetdir "data"
targetname "d3d9"
targetextension ".dll"
characterset ("MBCS")
Expand All @@ -33,5 +31,13 @@ workspace "d3d9-wrapper"
filter "configurations:Release"
defines "NDEBUG"
optimize "On"

filter "platforms:Win32"
architecture "x32"
targetdir "data"

filter "platforms:Win64"
architecture "x64"
targetdir "data/x64"

project "d3d9-wrapper"
project "d3d9-wrapper"

0 comments on commit b99e0f8

Please sign in to comment.