diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-02-26 11:24:59 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-02-26 11:24:59 +0100 |
| commit | 440d47cae6431de3332ac934b6056a970cc1a0d7 (patch) | |
| tree | aae63811972647f6ffe8a13d440171cfc8752860 /conanfile.py | |
| parent | 124d4f363a9d86b023aadec0eb0a3eb6fc1cbfdd (diff) | |
| download | newtype-440d47cae6431de3332ac934b6056a970cc1a0d7.tar.xz newtype-440d47cae6431de3332ac934b6056a970cc1a0d7.zip | |
build: remove conan
Diffstat (limited to 'conanfile.py')
| -rw-r--r-- | conanfile.py | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/conanfile.py b/conanfile.py deleted file mode 100644 index 222ac72..0000000 --- a/conanfile.py +++ /dev/null @@ -1,65 +0,0 @@ -from conan import ConanFile -from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout -from conan.tools.build import check_min_cppstd - - -class NewtypeConan(ConanFile): - name = "newtype" - version = "2.0.0" - license = "BSD-3-Clause" - description = "A library of types and functions to create strong type aliases" - url = "https://github.com/fmorgner/newtype" - - settings = ("os", "arch", "compiler", "build_type") - - scm = { - "type": "git", - "url": "auto", - "revision": "auto" - } - - generators = [ - "CMakeDeps" - ] - - exports_sources = [ - "source/*", - "test_package/*", - "LICENSE", - ] - - def build(self): - cmake = CMake(self) - cmake.configure() - if not self.conf.get("tools.build:skip_test", default=False): - cmake.build() - cmake.test() - - def build_requirements(self): - self.tool_requires("cmake/[>3.25]") - self.tool_requires("ninja/[>1.11]") - self.test_requires("catch2/[>3.3]") - - def generate(self): - toolchain = CMakeToolchain(self, generator="Ninja Multi-Config") - toolchain.variables["CMAKE_EXPORT_COMPILE_COMMANDS"] = True - toolchain.variables["PROJECT_VERSION"] = self.version - toolchain.variables["PROJECT_DESCRIPTION"] = self.description - toolchain.generate() - - def layout(self): - cmake_layout(self, generator="Ninja Multi-Config", src_folder="source") - - def package(self): - cmake = CMake(self) - cmake.install() - - def package_id(self): - self.info.clear() - - def package_info(self): - self.cpp_info.bindirs = [] - self.cpp_info.libdirs = [] - - def validate(self): - check_min_cppstd(self, 20) |
