-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconanfile.py
More file actions
22 lines (18 loc) · 808 Bytes
/
conanfile.py
File metadata and controls
22 lines (18 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from conan import ConanFile
from conan.tools.files import copy
class LibCosimpyConanDependency(ConanFile):
name = "libcosimpy-recipe"
requires = "libcosimc/0.11.0@osp/stable"
default_options = {
"libcosim/*:proxyfmu": True,
}
def configure(self):
self.options["*"].shared = False
self.options["libcosimc/*"].shared = True
def generate(self):
for dep in self.dependencies.values():
for dep_bin_dir in dep.cpp_info.bindirs:
copy(self, "*.dll", src=dep_bin_dir, dst="libcosimc", keep_path=False)
for dep_lib_dir in dep.cpp_info.libdirs:
copy(self, "*.so.*", src=dep_lib_dir, dst="libcosimc", keep_path=False)
copy(self, "*.so", src=dep_lib_dir, dst="libcosimc", keep_path=False)