Adding conanfile
klist / build (pull_request) Successful in 29s

This commit is contained in:
2026-09-19 15:52:59 -04:00
parent 436592e5f1
commit 0e1b32a1d5
+42
View File
@@ -0,0 +1,42 @@
from conan import ConanFile
from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout
from conan.tools.files import copy
import os
class klistConan(ConanFile):
name = "klist"
version = "0.0.1"
description = "A list library"
url = "https://git.kundeng.us/phoenix/klist"
homepage = "https://git.kundeng.us/phoenix/klist"
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeToolchain", "CMakeDeps"
# Only add dependencies if needed
requires = "cmocka/1.1.8"
def layout(self):
cmake_layout(self)
def build_requirements(self):
self.tool_requires("cmake/4.4.3")
# def generate(self):
# tc = CMakeToolchain(self)
# tc.generate()
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install()
def package_info(self):
self.cpp_info.libs = ["klistlib"]
self.cpp_info.includedirs = ["include"]