代码拉取完成,页面将自动刷新
clone_folder: c:\projects\gn-build\build
shallow_clone: true
environment:
GN_WIN_URL: https://github.com/timniederhausen/gn/releases/download/2020.03/gn-win-amd64.zip
matrix:
- GN_ARGS: "visual_studio_version=\\\"2013\\\""
- GN_ARGS: "visual_studio_version=\\\"2013\\\" is_debug=false"
- GN_ARGS: "visual_studio_version=\\\"2013\\\" is_official_build=true"
- GN_ARGS: "visual_studio_version=\\\"2013\\\" clang_base_path=\\\"C:\\Program Files\\LLVM\\\" is_clang=true"
- GN_ARGS: "visual_studio_version=\\\"2013\\\" clang_base_path=\\\"C:\\Program Files\\LLVM\\\" is_clang=true is_debug=false"
- GN_ARGS: "visual_studio_version=\\\"2013\\\" clang_base_path=\\\"C:\\Program Files\\LLVM\\\" is_clang=true is_official_build=true"
- GN_ARGS: "visual_studio_version=\\\"2015\\\""
- GN_ARGS: "visual_studio_version=\\\"2015\\\" is_debug=false"
- GN_ARGS: "visual_studio_version=\\\"2015\\\" is_official_build=true"
- GN_ARGS: "visual_studio_version=\\\"2015\\\" clang_base_path=\\\"C:\\Program Files\\LLVM\\\" is_clang=true"
- GN_ARGS: "visual_studio_version=\\\"2015\\\" clang_base_path=\\\"C:\\Program Files\\LLVM\\\" is_clang=true is_debug=false"
- GN_ARGS: "visual_studio_version=\\\"2015\\\" clang_base_path=\\\"C:\\Program Files\\LLVM\\\" is_clang=true is_official_build=true"
- GN_ARGS: "visual_studio_version=\\\"2017\\\""
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- GN_ARGS: "visual_studio_version=\\\"2019\\\""
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
matrix:
fast_finish: true
install:
# All external dependencies are installed in C:\projects\deps
- mkdir C:\projects\deps
- set PATH=C:\projects\deps;%PATH%
# Install the current GN version
- appveyor DownloadFile %GN_WIN_URL% -FileName C:\projects\deps\gn.zip
- 7z x C:\projects\deps\gn.zip -oC:\projects\deps > nul
- gn --version
# Install Ninja
- set NINJA_URL="https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip"
- appveyor DownloadFile %NINJA_URL% -FileName C:\projects\deps\ninja.zip
- 7z x C:\projects\deps\ninja.zip -oC:\projects\deps > nul
- ninja --version
before_build:
- cd c:\projects\gn-build
- git init
- git remote add origin https://github.com/timniederhausen/gn-build.git
- git fetch
- git checkout -t origin/testsrc
build_script:
- gn gen out --args="%GN_ARGS%"
- type out\args.gn
- ninja -C out
test_script:
- py -3 build\gn_helpers_unittest.py
- out\hello
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。