Skip to content

Commit

Permalink
appveyor: Initial configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mittorn committed Jan 29, 2024
1 parent 264db8f commit 87900fc
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
image: Visual Studio 2015
build: off

before_build:
- git submodule update --init --recursive --depth 1
- git clone https://github.com/FWGS/hlsdk-portable --depth 1
- git clone https://github.com/FWGS/xash3d-android-project -b android-legacy --depth 1
- curl -fsS -o android-ndk-r10e-windows-x86_64.zip https://dl.google.com/android/repository/android-ndk-r10e-windows-x86_64.zip
- 7z x android-ndk-r10e-windows-x86_64.zip

build_script:
- set ANDROID_NDK_HOME=%APPVEYOR_BUILD_FOLDER%/android-ndk-r10e
- set HOST_TOOLCHAIN=windows-x86_64
- python waf configure --enable-android-legacy --android aarch64,4.9,21
- type build/config.log
- python waf

on_failure:
- appveyor PushArtifact build/config.log
- type build/config.log
8 changes: 6 additions & 2 deletions scripts/waifulib/xcompile.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def cc(self):
s = environ['CC']

return '%s --target=%s' % (s, self.ndk_triplet()) #%s%d' % (s, self.ndk_triplet(), self.api)
return self.gen_toolchain_path() + ('clang' if self.is_clang() else 'gcc')
return self.gen_toolchain_path() + ('clang' if self.is_clang() else 'gcc.exe')

def cxx(self):
if self.is_host():
Expand All @@ -227,7 +227,7 @@ def cxx(self):
s = environ['CXX']

return '%s --target=%s' % (s, self.ndk_triplet()) #%s%d' % (s, self.ndk_triplet(), self.api)
return self.gen_toolchain_path() + ('clang++' if self.is_clang() else 'g++')
return self.gen_toolchain_path() + ('clang++' if self.is_clang() else 'g++.exe')

def strip(self):
if self.is_host() and not self.ndk_binutils:
Expand Down Expand Up @@ -567,6 +567,10 @@ def configure(conf):
conf.env.CXXFLAGS += android.cflags(True)
conf.env.LINKFLAGS += android.linkflags()
conf.env.LDFLAGS += android.ldflags()
conf.env.NO_MSVC_DETECT = 1
from waflib.Tools.compiler_c import c_compiler
c_compiler['win32'] = ['gcc']


conf.env.HAVE_M = True
if android.is_hardfp():
Expand Down

0 comments on commit 87900fc

Please sign in to comment.