Initial commit

This commit is contained in:
Riley 2025-05-13 23:14:45 +00:00
commit 605a30e2f8
13 changed files with 240 additions and 0 deletions

38
conanfile.py Normal file
View file

@ -0,0 +1,38 @@
from conan import ConanFile
from conan.tools.meson import MesonToolchain, Meson
from conan.tools.gnu import PkgConfigDeps
class helloConan(ConanFile):
name = "hello"
version = "1.0"
package_type = "application"
# Binary configuration
settings = "os", "compiler", "build_type", "arch"
# Sources are located in the same place as this recipe, copy them to the recipe
exports_sources = "meson.build", "src/*"
def layout(self):
self.folders.build = "build"
def requirements(self):
self.requires("zlib/1.2.11")
def generate(self):
deps = PkgConfigDeps(self)
deps.generate()
tc = MesonToolchain(self)
tc.generate()
def build(self):
meson = Meson(self)
meson.configure()
meson.build()
def package(self):
meson = Meson(self)
meson.install()