forked from netmebtc/xrig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
48 lines (39 loc) · 1.44 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Inspired by https://github.com/clMathLibraries/clBLAS/blob/master/appveyor.yml
version: Build {build}
skip_tags: true
shallow_clone: true
image: Visual Studio 2017
platform: x64
environment:
global:
OPENCL_ROOT: "%APPVEYOR_BUILD_FOLDER%\\opencl"
OPENCL_REGISTRY: "https://www.khronos.org/registry/cl"
init:
- C:\"Program Files (x86)"\"Microsoft Visual Studio"\2017\Community\VC\Auxiliary\Build\vcvars64.bat
install:
- ps: mkdir $env:OPENCL_ROOT
- ps: pushd $env:OPENCL_ROOT
- ps: $opencl_registry = $env:OPENCL_REGISTRY
# This downloads the source to the Khronos ICD library
- git clone --depth 1 https://github.com/KhronosGroup/OpenCL-ICD-Loader.git
- ps: mv ./OpenCL-ICD-Loader/* .
# This downloads all the opencl header files
# The cmake build files expect a directory called inc
- ps: mkdir inc/CL
- git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git
- ps: mv ./OpenCL-Headers/opencl22/CL/* inc/CL
- ps: wget $opencl_registry/api/2.1/cl.hpp -OutFile inc/CL/cl.hpp
# Create the static import lib in a directory called lib/x86_64, so FindOpencl() will find it
- ps: mkdir lib/x86_64
- ps: pushd lib/x86_64
- cmake -G "NMake Makefiles" ../..
- nmake
- ps: popd
# Create include directory with OpenCL 2.0 headers, so FindOpencl() will find it
- ps: mkdir include/CL
- ps: mv ./OpenCL-Headers/opencl20/CL/* include/CL
- ps: popd
before_build:
- generate_sln.bat
build_script:
- build.bat