mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 02:12:43 +01:00
- fix artifacts path, add cache
- fix region
This commit is contained in:
parent
0b1b91d5a1
commit
8e9ced69b0
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user