-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconanfile.py
40 lines (33 loc) · 1.17 KB
/
conanfile.py
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from conans import ConanFile, CMake, tools
class ExtbaseConan(ConanFile):
name = "ext-basics"
version = "0.0.1"
license = "MIT"
author = "Jan Christoph Uhde <[email protected]>"
url = "https://github.com/extcpp/basics"
description = "Extended C++ - base library"
topics = ("c++", "utils", "library")
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False]}
default_options = {"shared": True}
generators = "cmake"
def source(self):
self.run("git clone -b conan https://github.com/extcpp/basics.git basics --recurse-submodules")
def build(self):
cmake = CMake(self)
#cmake.verbose = True
cmake.configure(source_folder="basics")
cmake.build()
def package(self):
"""install / copy artifarct"""
cmake = CMake(self)
#cmake.verbose = True
cmake.definitions["LIBEXT_TESTS"] = False
cmake.definitions["LIBEXT_WARNINGS"] = False
cmake.definitions["LIBEXT_EXAMPLES"] = False
cmake.configure()
cmake.install()
def package_info(self):
self.info.header_only()