Skip to content
Snippets Groups Projects
Commit 915aa5ad 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 ccfc09c0
Branches
Tags
No related merge requests found
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout, CMakeDeps
class Lakeshore_336Recipe(ConanFile):
name = "lakeshore_336"
......@@ -8,6 +6,8 @@ class Lakeshore_336Recipe(ConanFile):
version = "1.0.5"
package_type = "application"
user = "soleil"
python_requires = "base/[>=1.0]@soleil/stable"
python_requires_extend = "base.Device"
license = "GPL-3.0-or-later"
author = "Jean Coquet"
......@@ -23,24 +23,3 @@ class Lakeshore_336Recipe(ConanFile):
self.requires("yat4tango/[>=1.0]@soleil/stable")
if self.settings.os == "Linux":
self.requires("crashreporting2/[>=1.0]@soleil/stable")
def layout(self):
cmake_layout(self)
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,7 +8,7 @@
</parent>
<groupId>fr.soleil.device</groupId>
<artifactId>Lakeshore_336-${aol}-${mode}</artifactId>
<version>1.0.7-SNAPSHOT</version>
<version>1.0.6-SNAPSHOT</version>
<packaging>nar</packaging>
<name>Lakeshore_336</name>
<developers>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment