File: conanfile.py

package info (click to toggle)
khronos-opencl-headers 3.0~2020.12.18-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 636 kB
  • sloc: ansic: 6,211; makefile: 56; python: 42
file content (23 lines) | stat: -rw-r--r-- 629 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from conans import ConanFile, tools, CMake
import os


class OpenCLHeadersConan(ConanFile):
    name = "opencl-headers"
    version = "20190502"
    license = "Apache-2.0"
    author = "Khronos Group <webmaster@khronos.org>"
    url = "https://github.com/KhronosGroup/OpenCL-ICD-Loader"
    description = "Khronos OpenCL Headers"
    topics = ("khronos", "opencl", "headers")
    exports_sources = "CMakeLists.txt", "CL/*"
    no_copy_source = True

    def build(self):
        cmake = CMake(self)
        cmake.configure()
        cmake.build()
        cmake.install()

    def package_id(self):
        self.info.header_only()