Skip to content

Commit

Permalink
Add a Conan package recipe.
Browse files Browse the repository at this point in the history
  • Loading branch information
artob committed Jun 19, 2024
1 parent 6bfd631 commit 235565e
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@

# Editor backup files
*~

# Conan artifacts
conanbuild.sh
conanbuildenv.sh
conanrun.sh
conanrunenv.sh
deactivate_conanbuild.sh
deactivate_conanrun.sh
33 changes: 33 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# See: https://docs.conan.io/2/reference/conanfile.html

from conan import ConanFile
from conan.tools.build import check_min_cppstd
from conan.tools.files import copy
from os import path

class KnowCppConan(ConanFile):
name = "know.cpp"
version = "0.0.0"
description = "The Know Framework for C++."
license = "Unlicense"
author = "KNOW Project"
topics = ("ontology", "header-only", "c++23")
homepage = "https://github.com/KnowOntology/know.cpp"
url = "https://github.com/KnowOntology/know.cpp.git"
languages = "C++"
exports_sources = "src/*"
no_copy_source = True

def layout(self):
self.folders.source = "src"

def validate(self):
#check_min_cppstd(self, 23) # FIXME: Conan 2.4.1 appears to be defective
pass

def package(self):
copy(self, "*.hpp", self.source_folder, path.join(self.package_folder, "include"))

def package_info(self):
self.cpp_info.bindirs = []
self.cpp_info.libdirs = []

0 comments on commit 235565e

Please sign in to comment.