-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
43 lines (35 loc) · 1.09 KB
/
conanfile.py
File metadata and controls
43 lines (35 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from conan import ConanFile
from conan.tools.cmake import cmake_layout, CMakeToolchain, CMakeDeps
class LithiumRecipe(ConanFile):
name = "lithium"
version = "0.1.0"
description = "A lightweight browser engine implemented from scratch"
license = "MIT"
settings = "os", "compiler", "build_type", "arch"
options = {
"shared": [True, False],
"with_freetype": [True, False],
"with_curl": [True, False],
}
default_options = {
"shared": False,
"with_freetype": True,
"with_curl": True,
}
def requirements(self):
# Font loading (optional)
if self.options.with_freetype:
self.requires("freetype/2.13.2")
# HTTP client (optional)
if self.options.with_curl:
self.requires("libcurl/8.4.0")
def build_requirements(self):
# Testing framework
self.test_requires("gtest/1.14.0")
def layout(self):
cmake_layout(self)
def generate(self):
deps = CMakeDeps(self)
deps.generate()
tc = CMakeToolchain(self)
tc.generate()