加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/OpenHMD/OpenHMD
克隆/下载
.appveyor.yml 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
os: Visual Studio 2017
environment:
matrix:
- arch: x64
compiler: msvc2015
- arch: x64
compiler: msvc2017
platform:
- x64
install:
# Download ninja
- cmd: mkdir C:\ninja-build
- ps: (new-object net.webclient).DownloadFile('https://github.com/mesonbuild/cidata/raw/master/ninja.exe', 'C:\ninja-build\ninja.exe')
# Set paths to dependencies (based on architecture)
- cmd: if %arch%==x86 (set PYTHON_ROOT=C:\python37) else (set PYTHON_ROOT=C:\python37-x64)
# Print out dependency paths
- cmd: echo Using Python at %PYTHON_ROOT%
# Add neccessary paths to PATH variable
- cmd: set PATH=%cd%;C:\ninja-build;%PYTHON_ROOT%;%PYTHON_ROOT%\Scripts;%PATH%
# Install meson
- cmd: pip install meson
# Set up the build environment
- cmd: if %compiler%==msvc2015 ( call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %arch% )
- cmd: if %compiler%==msvc2017 ( call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %arch% )
build_script:
- cmd: echo Building on %arch% with %compiler%
- cmd: meson --backend=ninja builddir -Dexamples=simple
- cmd: ninja -C builddir install
- cmd: 7z a openhmd.zip c:\include\openhmd\openhmd.h c:\lib\openhmd.lib c:\bin\*.dll c:\bin\*.exe
artifacts:
- path: openhmd.zip
name: OpenHMD
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化