|
| 1 | +from conan import ConanFile |
| 2 | +from conan.tools.meson import MesonToolchain, Meson |
| 3 | +from conan.tools.gnu import PkgConfigDeps |
| 4 | + |
| 5 | + |
| 6 | +class sentry_kernelConan(ConanFile): |
| 7 | + name = "sentry-kernel" |
| 8 | + version = "0.3" |
| 9 | + channel = "testing" |
| 10 | + package_type = "application" |
| 11 | + description = """This is the package of the Sentry kernel. |
| 12 | + A fully featured micro-kernel for small embedded systems, designed |
| 13 | + for the Outpost Operating System""" |
| 14 | + License = "Apache-2.0" |
| 15 | + topics = ("kernel", "embedded", "Outpost", "security") |
| 16 | + url = "https://github.com/outpost-os/sentry-kernel.git" |
| 17 | + tools_requires = "" |
| 18 | + build_requires = "ninja/>1.11", "dtc/[>1.6]", "cargo/[>1.75]" |
| 19 | + test_requires = "gcovr", "frama-c" |
| 20 | + python_requires = "meson/[>1.3 <1.5]", "dts-utils/[>0.2.2]", "svd2json/[>0.1.6]", "kconfiglib/[>14.1]" |
| 21 | + |
| 22 | + # Binary configuration |
| 23 | + settings = "os", "baremetal", "arch", "armv7", "compiler", "gcc" |
| 24 | + |
| 25 | + exports = "dts/*", "configs/*", "schemas/*", "subprojects/*" |
| 26 | + # Sources are located in the same place as this recipe, copy them to the recipe |
| 27 | + exports_sources = "meson.build", "meson.options", "kernel/*", "uapi/*", "autotest/*", "idle/*", "doc/*", "tools/*" |
| 28 | + package_type = "unknown" |
| 29 | + |
| 30 | + |
| 31 | + def layout(self): |
| 32 | + self.folders.build = "build" |
| 33 | + |
| 34 | + def generate(self): |
| 35 | + deps = PkgConfigDeps(self) |
| 36 | + deps.generate() |
| 37 | + tc = MesonToolchain(self) |
| 38 | + tc.generate() |
| 39 | + |
| 40 | + def build(self): |
| 41 | + meson = Meson(self) |
| 42 | + meson.configure(c) |
| 43 | + meson.build() |
| 44 | + |
| 45 | + def package(self): |
| 46 | + meson = Meson(self) |
| 47 | + meson.install() |
0 commit comments