Skip to content

Commit 0f88354

Browse files
Create conanfile.py
1 parent 0de70da commit 0f88354

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

conanfile.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
from conan import ConanFile
2+
from conan.tools.build import Meson
3+
from conan.tools.files import copy
4+
import os
5+
6+
class PizzaTestConan(ConanFile):
7+
name = "pizza_test"
8+
version = "1.2.7"
9+
license = "MPL-2.0"
10+
author = "Fossil Logic <[email protected]>"
11+
url = "https://github.com/fossillogic/fossil-test"
12+
description = "Unit testing framework for software projects"
13+
topics = ("testing", "mocking", "framework")
14+
settings = "os", "compiler", "build_type", "arch"
15+
options = {"shared": [True, False]}
16+
default_options = {"shared": False} # static library
17+
exports_sources = "code/logic/*", "meson.build"
18+
generators = "PkgConfigDeps"
19+
20+
def build(self):
21+
# Configure Meson for static library
22+
meson = Meson(self)
23+
meson.configure()
24+
meson.build()
25+
26+
def package(self):
27+
meson = Meson(self)
28+
meson.install()
29+
# Copy headers
30+
copy(self, "*.h", src="code/logic/fossil/pizza", dst=os.path.join(self.package_folder, "include", "fossil", "pizza"))
31+
32+
def package_info(self):
33+
self.cpp_info.libs = ["pizza_test"] # static library
34+
self.cpp_info.includedirs = ["include"] # headers path

0 commit comments

Comments
 (0)