aboutsummaryrefslogtreecommitdiff
path: root/conanfile.py
blob: a24cc33baf2ce0bfb114ab0ba98a3f52cfbff76c (plain)
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
49
50
51
# pylint:  disable=missing-docstring

from conans import ConanFile, CMake

class Wanda(ConanFile):
    name = "wanda"
    version = "1.0.0"
    url = "https://github.com/fmorgner/wanda"
    license = "BSD 3-clause"
    description = "A wallpaper changer for the GNOME"
    generators = "cmake"
    default_user = "fmorgner"
    default_channel = "stable"
    build_policy = "missing"
    settings = (
        "os",
        "arch",
        "compiler",
        "build_type",
    )
    exports_sources = (
        "CMakeLists.txt",
        "cmake/*",
        "src/*",
    )
    requires = (
        "asio/1.12.0@bincrafters/stable",
        "clara/1.1.5@bincrafters/stable",
        "spdlog/1.2.1@bincrafters/stable",
        "range-v3/0.4.0@ericniebler/stable",
        "CUTE/2.2.6@fmorgner/stable",
    )
    default_options = {
        "asio:standalone": True,
    }

    def configure_cmake(self):
        cmake = CMake(self)
        cmake.configure()
        return cmake

    def build(self):
        cmake = self.configure_cmake()
        cmake.build()

    def package(self):
        cmake = self.configure_cmake()
        cmake.install()

    def package_info(self):
        self.cpp_info.libs = ["wanda"]