mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Fix windows build (#179)
* Add hl.def to cmakelists.txt * Add appveyor artifact
This commit is contained in:
parent
5e06370a95
commit
b34b6a0778
15
appveyor.yml
15
appveyor.yml
@ -1,13 +1,7 @@
|
|||||||
version: 1.0.{build}
|
version: 1.0.{build}
|
||||||
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- os: Visual Studio 2013
|
|
||||||
GENERATOR_NAME: "Visual Studio 12 2013"
|
|
||||||
- os: Visual Studio 2015
|
- os: Visual Studio 2015
|
||||||
GENERATOR_NAME: "Visual Studio 14 2015"
|
GENERATOR_NAME: "Visual Studio 14 2015"
|
||||||
# TODO: Uncomment when AppVeyor will provide XP toolchain for VS2017
|
# TODO: Uncomment when AppVeyor will provide XP toolchain for VS2017
|
||||||
@ -17,7 +11,7 @@ environment:
|
|||||||
clone_folder: c:\projects\xash\hlsdk-xash3d
|
clone_folder: c:\projects\xash\hlsdk-xash3d
|
||||||
|
|
||||||
build:
|
build:
|
||||||
project: INSTALL.vcxproj
|
project: build/INSTALL.vcxproj
|
||||||
verbosity: normal
|
verbosity: normal
|
||||||
|
|
||||||
configuration:
|
configuration:
|
||||||
@ -25,4 +19,9 @@ configuration:
|
|||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
- cmake -G "%GENERATOR_NAME%"
|
- cmake -G "%GENERATOR_NAME%" -B build -DGOLDSOURCE_SUPPORT=ON -DCMAKE_INSTALL_PREFIX="dist"
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
- path: dist
|
||||||
|
name: hlsdk-msvc
|
||||||
|
type: zip
|
||||||
|
@ -150,6 +150,12 @@ set (SVDLL_SOURCES
|
|||||||
|
|
||||||
include_directories (. wpn_shared ../common ../engine ../pm_shared ../game_shared ../public)
|
include_directories (. wpn_shared ../common ../engine ../pm_shared ../game_shared ../public)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
set(SVDLL_SOURCES
|
||||||
|
${SVDLL_SOURCES}
|
||||||
|
hl.def)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(USE_VOICEMGR)
|
if(USE_VOICEMGR)
|
||||||
set(SVDLL_SOURCES
|
set(SVDLL_SOURCES
|
||||||
${SVDLL_SOURCES}
|
${SVDLL_SOURCES}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user