-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
22 lines (15 loc) · 906 Bytes
/
conanfile.py
File metadata and controls
22 lines (15 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import os
from conan import ConanFile
class MainProject(ConanFile):
python_requires = "conan_template/[~5]@robotkernel/stable"
python_requires_extend = "conan_template.RobotkernelConanFile"
name = "service_provider_canopen_protocol"
url = "https://rmc-github.robotic.dlr.de/robotkernel/service_provider_canopen_protocol"
description = "robotkernel service provider for canopen protocol devices."
exports_sources = ["*", "!.gitignore", "!bindings"]
tool_requires = ["robotkernel_generator/[~6]@robotkernel/unstable"]
def source(self):
self.run(f"sed 's/AC_INIT(.*/AC_INIT([service_provider_canopen_protocol], [{self.version}], [{self.author}])/' configure.ac.in > configure.ac")
def requirements(self):
self.requires(f"{self.name}_ln_msgdef/{self.version}@{self.user}/{self.channel}")
self.requires("robotkernel/[~6]@robotkernel/unstable")