Skip to content
Snippets Groups Projects
Commit 9000e7b6 authored by Patrick MADELA's avatar Patrick MADELA
Browse files

Use new approach based on python requires and fix versions differences (conan, maven, tags)

parent 6429dd8f
Branches
Tags
No related merge requests found
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMake, CMakeDeps
class DanteDppRecipe(ConanFile):
name = "dantedpp"
......@@ -8,6 +6,8 @@ class DanteDppRecipe(ConanFile):
version = "1.5.1"
package_type = "application"
user = "soleil"
python_requires = "base/[>=1.0]@soleil/stable"
python_requires_extend = "base.Device"
license = "GPL-3.0-or-later"
author = "Arafat Noureddine"
......@@ -24,21 +24,3 @@ class DanteDppRecipe(ConanFile):
self.requires("nexuscpp/3.5.3@soleil/stable")
if self.settings.os == "Linux":
self.requires("crashreporting2/[>=1.0]@soleil/stable")
def generate(self):
deps = CMakeDeps(self)
deps.generate()
tc = CMakeToolchain(self)
tc.variables["PROJECT_NAME"] = self.name
tc.variables["PROJECT_VERSION"] = self.version
tc.variables["EXECUTABLE_NAME"] = self.executable
tc.generate()
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install()
......@@ -8,25 +8,20 @@
</parent>
<properties>
<PROJECT.name>DanteDpp</PROJECT.name>
<PROJECT.version>1.5.1</PROJECT.version>
<PROJECT.description>DanteDpp device</PROJECT.description>
<!-- path to the 64 bits libs ${libs-64bits} -->
<libs-64bits>/home/informatique/ica/ica/LIB_EL6_64</libs-64bits>
<!--<libs-64bits>/media/sf_Partage/DanteDpp/LIB_EL6_64</libs-64bits>-->
<YAT.version>1.18.6</YAT.version>
<YAT4Tango.version>1.13.3</YAT4Tango.version>
<NexusCPP.version>3.4.0</NexusCPP.version>
</properties>
<groupId>fr.soleil.device</groupId>
<artifactId>${PROJECT.name}-amd64-Linux-gcc-shared-${mode}</artifactId>
<version>${PROJECT.version}</version>
<artifactId>DanteDpp-amd64-Linux-gcc-shared-${mode}</artifactId>
<version>1.5.1</version>
<packaging>nar</packaging>
<name>${PROJECT.name}</name>
<description>${PROJECT.description}</description>
<name>DanteDpp</name>
<description>DanteDpp device</description>
<build>
<plugins>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment