-
Notifications
You must be signed in to change notification settings - Fork 49
/
conanfile.py
32 lines (25 loc) · 1.08 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
# ***************************************************************
# This is an internal Bloomberg Conan recipe. *
# This recipe does not work outside of Bloomberg infrastructure *
# ***************************************************************
import os
from conan import ConanFile
from conan.tools.cmake import CMake
class Package(ConanFile):
python_requires = "conan-dpkg-recipe/[>=0.9]@test/unstable"
python_requires_extend = "conan-dpkg-recipe.DPKGConan"
def init(self):
super().init()
self.dependency_ignore.append('python3.8')
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install(component=self.name)
def package_info(self):
if "bbs-cmake-module" == self.name:
bbs_module_path=os.path.join(self.package_folder, "share", "cmake", "BdeBuildSystem")
self.buildenv_info.append_path("BdeBuildSystem_DIR", bbs_module_path)
self.runenv_info.append_path("BdeBuildSystem_DIR", bbs_module_path)