• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1os:
2  - Visual Studio 2017
3
4shallow_clone: true
5
6platform:
7  - Win32
8  - x64
9
10configuration:
11  - Release
12
13environment:
14  matrix:
15   - SETARCH: i686
16   - SETARCH: x86_64
17
18matrix:
19  exclude:
20    - platform: Win32
21      SETARCH: x86_64
22    - platform: x64
23      SETARCH: i686
24
25before_build:
26  # Setup environment:
27  - ps: $env:TOP = $env:APPVEYOR_BUILD_FOLDER
28  - ps: $env:TOP
29  - echo %TOP%
30  # Get the OpenCL Headers:
31  - git clone --depth=1 https://github.com/KhronosGroup/OpenCL-Headers OpenCL-Headers
32  # Get and build the OpenCL ICD Loader:
33  - git clone --depth=1 https://github.com/KhronosGroup/OpenCL-ICD-Loader.git
34  - ps: cd OpenCL-ICD-Loader
35  - ps: mkdir build
36  - ps: cd build
37  - cmake -A%PLATFORM% -DENABLE_OPENCL30_PROVISIONAL=1 -DOPENCL_ICD_LOADER_HEADERS_DIR=%TOP%/OpenCL-Headers/ ..
38  - cmake --build . --config %CONFIGURATION%
39  - ps: cd $env:TOP
40  # Get the libclcxx standard library:
41  - git clone --depth=1 https://github.com/KhronosGroup/libclcxx.git libclcxx
42  # Generate the CTS solution file:
43  - cmake -DCL_INCLUDE_DIR=%TOP%/OpenCL-Headers
44          -DCL_LIB_DIR=%TOP%/OpenCL-ICD-Loader/build
45          -DCL_LIBCLCXX_DIR=%TOP%/libclcxx
46          -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=./bin
47          -DOPENCL_LIBRARIES="OpenCL"
48          -H. -Bbuild_win -A%PLATFORM%
49          -DD3D10_IS_SUPPORTED=ON -DD3D11_IS_SUPPORTED=ON -DARCH=%SETARCH%
50
51build:
52  project: build_win\CLConform.sln
53  parallel: true
54  verbosity: normal
55