Compare commits

3 Commits

Author SHA1 Message Date
18e2962105 jtckdint: add recipe (#26015)
* jtckdint: add recipe

* fix c_std_11

* remove C++11 check

* update 1.0
2025-03-01 09:41:21 +00:00
7d9efb76c6 gdal: add options for optional drivers (#26427)
* Remove options marked as deprecated in GDAL

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Add options for GDAL_BUILD_OPTIONAL_DRIVERS and OGR_BUILD_OPTIONAL_DRIVERS

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Use cache variables instead of variables for CMakeToolchain

Signed-off-by: Uilian Ries <uilianries@gmail.com>

---------

Signed-off-by: Uilian Ries <uilianries@gmail.com>
2025-03-01 09:39:51 +00:00
05f57366be cppcheck: add version 2.17.1 (#26700)
* Update config.yml

* Update conandata.yml

* Update conandata.yml
2025-03-01 09:37:51 +00:00
9 changed files with 212 additions and 126 deletions

View File

@ -1,4 +1,7 @@
sources:
"2.17.1":
url: "https://github.com/danmar/cppcheck/archive/2.17.1.tar.gz"
sha256: "bfd681868248ec03855ca7c2aea7bcb1f39b8b18860d76aec805a92a967b966c"
"2.17.0":
url: "https://github.com/danmar/cppcheck/archive/2.17.0.tar.gz"
sha256: "5a639adf8d5f2520a280eb0f0fc25605cd8a3d4336a27f4a3e3e0f0c0c9789da"

View File

@ -1,4 +1,6 @@
versions:
"2.17.1":
folder: all
"2.17.0":
folder: all
"2.16.2":

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,4 @@
sources:
"1.0":
url: "https://github.com/jart/jtckdint/archive/refs/tags/1.0.tar.gz"
sha256: "a117f12bfe41f17d947c8ccc122d18b162d634c5ae9059391a6d36cee83a000f"

View File

@ -0,0 +1,37 @@
from conan import ConanFile
from conan.tools.build import check_min_cppstd
from conan.tools.files import copy, get
from conan.tools.layout import basic_layout
import os
required_conan_version = ">=2.0"
class JtckdintConan(ConanFile):
name = "jtckdint"
description = "C23 Checked Arithmetic"
license = "ISC"
url = "https://github.com/conan-io/conan-center-index"
homepage = "https://github.com/jart/jtckdint"
topics = ("integer", "checked", "arithmetic", "header-only")
package_type = "header-library"
settings = "os", "arch", "compiler", "build_type"
no_copy_source = True
def layout(self):
basic_layout(self, src_folder="src")
def package_id(self):
self.info.clear()
def source(self):
get(self, **self.conan_data["sources"][self.version], strip_root=True)
def package(self):
copy(self, "LICENSE.txt", self.source_folder, os.path.join(self.package_folder, "licenses"))
copy(self, "*.h", self.source_folder, os.path.join(self.package_folder, "include"))
def package_info(self):
self.cpp_info.bindirs = []
self.cpp_info.libdirs = []

View File

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.15)
project(test_package LANGUAGES C)
find_package(jtckdint REQUIRED CONFIG)
add_executable(${PROJECT_NAME} test_package.c)
target_link_libraries(${PROJECT_NAME} PRIVATE jtckdint::jtckdint)
target_compile_features(${PROJECT_NAME} PRIVATE c_std_11)

View File

@ -0,0 +1,25 @@
from conan import ConanFile
from conan.tools.build import can_run
from conan.tools.cmake import cmake_layout, CMake
import os
class TestPackageConan(ConanFile):
settings = "os", "arch", "compiler", "build_type"
generators = "CMakeDeps", "CMakeToolchain"
def layout(self):
cmake_layout(self)
def requirements(self):
self.requires(self.tested_reference_str)
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
if can_run(self):
bin_path = os.path.join(self.cpp.build.bindir, "test_package")
self.run(bin_path, env="conanrun")

View File

@ -0,0 +1,11 @@
#include <stdint.h>
#include "jtckdint.h"
int main(void) {
uint32_t c;
int32_t a = 0x7fffffff;
int32_t b = 2;
ckd_add(&c, a, b);
return 0;
}

View File

@ -0,0 +1,3 @@
versions:
"1.0":
folder: all