- fix artifacts path, add cache

- fix region
This commit is contained in:
Ilya Shurumov 2020-07-24 22:51:09 +06:00
parent 0b1b91d5a1
commit 8e9ced69b0
2 changed files with 10 additions and 6 deletions

View File

@ -24,6 +24,9 @@ environment:
build:
project: c:\projects\REDRIVER2\src_rebuild\REDRIVER2.sln
verbosity: minimal
cache:
- '%project_folder%\obj\%configuration%\'
platform:
- Win32
@ -48,15 +51,14 @@ install:
before_build:
- cmd: cd %project_folder%
- cmd: dir
- cmd: premake5 vs2019
artifacts:
- path: bin\%configuration%\*.zip
- path: src_rebuild\bin\%configuration%\*.zip
name: Binaries
after_build:
- cmd: cd bin\%configuration%
- cmd: cd %project_folder%\bin\%configuration%
- 7z a REDRIVER2.zip ".\*"
#build: off

View File

@ -4,10 +4,10 @@
local SDL2_DIR = os.getenv("SDL2_DIR") or "dependencies/SDL2"
local GLEW_DIR = os.getenv("GLEW_DIR") or "dependencies/glew"
local OPENAL_DIR = os.getenv("OPENAL_DIR") or "dependencies/openal-soft"
local REGION = os.getenv("REGION") or "NTSC_VERSION" -- or PAL_VERSION
local GAME_REGION = os.getenv("GAME_REGION") or "NTSC_VERSION" -- or PAL_VERSION
if not (REGION == "NTSC_VERSION" or REGION == "PAL_VERSION") then
error("'REGION' should be 'NTSC_VERSION' or 'PAL_VERSION'")
if not (GAME_REGION == "NTSC_VERSION" or GAME_REGION == "PAL_VERSION") then
error("'GAME_REGION' should be 'NTSC_VERSION' or 'PAL_VERSION'")
end
workspace "REDRIVER2"
@ -70,6 +70,8 @@ project "REDRIVER2"
"EMULATOR"
}
defines { GAME_REGION }
files {
"GAME/**.h",
"GAME/**.c",