-
Notifications
You must be signed in to change notification settings - Fork 8
/
conanfile.py
46 lines (36 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
40
41
42
43
44
45
46
import os
from conans import ConanFile, python_requires, CMake
conan_tools = python_requires("conan-tools/[>=1.0.0]@includeos/stable")
class VmbuildConan(ConanFile):
settings= "os_build","arch_build"
name = "vmbuild"
license = 'Apache-2.0'
description = 'Utilities to build IncludeOS VMs'
version = conan_tools.git_get_semver()
generators = 'cmake'
url = "http://github.com/includeos/vmbuild"
scm = {
"type" : "git",
"url" : "auto",
"subfolder": ".",
"revision" : "auto"
}
no_copy_source=True
default_user="includeos"
default_channel="test"
def build_requirements(self):
self.build_requires("GSL/2.0.0@includeos/stable")
def _cmake_configure(self):
cmake = CMake(self)
cmake.configure(source_folder=self.source_folder)
return cmake
def build(self):
cmake=self._cmake_configure()
cmake.build()
def package(self):
cmake=self._cmake_configure()
cmake.install()
def package_info(self):
self.env_info.path.append(os.path.join(self.package_folder, "bin"))
def deploy(self):
self.copy("*",dst="bin",src="bin")