Skip to content

Commit 2831f1d

Browse files
committed
Merge branch 'libpq-conan-ioGH-24895-broken-symlinks-in-catalog' into libpq-conan-ioGH-24895-broken-symlinks-conan-ioGH-25282-mingw-undef-refs
2 parents 12426ed + 3b5043f commit 2831f1d

File tree

306 files changed

+2975
-4905
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

306 files changed

+2975
-4905
lines changed

.c3i/authorized_users.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,3 +1427,15 @@ authorized_users:
14271427
- mattkretz
14281428
- DannyLihard
14291429
- stevenwdv
1430+
- smessmer
1431+
- fischjo3SICKAG
1432+
- jrosiek
1433+
- Thiesius
1434+
- xakod
1435+
- FWiesner
1436+
- aasmune
1437+
- sicheste
1438+
- Alan5142
1439+
- mefff
1440+
- HazyMrf
1441+
- danniesim

.c3i/conan_v2_ready_references.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ required_for_references:
6262
- asyncpp
6363
- atomic_queue
6464
- audiofile
65+
- audiowaveform
6566
- autoconf
6667
- autoconf-archive
6768
- automake
@@ -412,6 +413,7 @@ required_for_references:
412413
- fastnoise2
413414
- fastpfor
414415
- fastprng
416+
- fcl
415417
- fernandovelcic-hexdump
416418
- fff
417419
- ffmpeg
@@ -649,6 +651,7 @@ required_for_references:
649651
- kissfft
650652
- kitten
651653
- kmod
654+
- kplot
652655
- krb5
653656
- ktx
654657
- kuba-zip
@@ -904,6 +907,7 @@ required_for_references:
904907
- llama-cpp
905908
- llhttp
906909
- llnl-units
910+
- llvm-core
907911
- llvm-openmp
908912
- lmdb
909913
- lodepng
@@ -1122,6 +1126,7 @@ required_for_references:
11221126
- openimageio
11231127
- openjdk
11241128
- openjpeg
1129+
- openjph
11251130
- openldap
11261131
- openmesh
11271132
- openmpi
@@ -1140,6 +1145,7 @@ required_for_references:
11401145
- openvino
11411146
- openvr
11421147
- openxlsx
1148+
- optimlib
11431149
- optional-lite
11441150
- opus
11451151
- opusfile
@@ -1253,6 +1259,7 @@ required_for_references:
12531259
- qcbor
12541260
- qdbm
12551261
- qhull
1262+
- qoi
12561263
- qpdf
12571264
- qpoases
12581265
- qr-code-generator
@@ -1269,6 +1276,7 @@ required_for_references:
12691276
- quill
12701277
- quirc
12711278
- qwt
1279+
- qxlsx
12721280
- qxmpp
12731281
- r8brain-free-src
12741282
- rabbitmq-c
@@ -1280,6 +1288,7 @@ required_for_references:
12801288
- rapidcheck
12811289
- rapidcsv
12821290
- rapidfuzz
1291+
- rapidhash
12831292
- rapidjson
12841293
- rapidxml
12851294
- rapidyaml
@@ -1491,6 +1500,7 @@ required_for_references:
14911500
- tiny-dnn
14921501
- tiny-regex-c
14931502
- tiny-utf8
1503+
- tinyad
14941504
- tinyalsa
14951505
- tinycbor
14961506
- tinycolormap

.c3i/config_v1.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ tasks:
5454
detailed_status_checks: false
5555
update_labels: true
5656
build_bump_deps_pr: false
57+
user_feedback:
58+
description: "> [!WARNING]\n> Conan Center will stop receiving updates for Conan 1.x packages soon - please see [announcement](https://github.com/conan-io/conan-center-index/discussions/25461)."
5759
description_bump_deps_pr: ":vertical_traffic_light: Thank for your Bump dependencies PR. The build service will be triggered soon by a Conan team member."
5860
wait_for_multibranch: # CCI jobs should wait for other multibranch job for that same PR
5961
job_name: "prod-v2/cci" # e.g. "cci-v2/cci" -> this means waiting for cci-v2/cci/PR-<number>

.c3i/waitlist_users.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ waitlist_users:
1010
- sabapathim
1111
- pixelsoba
1212
- liss-h
13+
- friedbyalice
14+
- nathaniel-brough

recipes/assimp/5.x/conandata.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
sources:
2+
"5.4.3":
3+
url: "https://github.com/assimp/assimp/archive/refs/tags/v5.4.3.tar.gz"
4+
sha256: "66dfbaee288f2bc43172440a55d0235dfc7bf885dda6435c038e8000e79582cb"
25
"5.4.2":
36
url: "https://github.com/assimp/assimp/archive/refs/tags/v5.4.2.tar.gz"
47
sha256: "7414861a7b038e407b510e8b8c9e58d5bf8ca76c9dfe07a01d20af388ec5086a"

recipes/assimp/5.x/conanfile.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ class AssimpConan(ConanFile):
105105
options.update(dict.fromkeys(_format_option_map, [True, False]))
106106
default_options.update(dict.fromkeys(_format_option_map, True))
107107

108+
short_paths = True
109+
108110
@property
109111
def _min_cppstd(self):
110112
if Version(self.version) < "5.2.0":
@@ -238,6 +240,7 @@ def generate(self):
238240
tc.variables["ASSIMP_UBSAN"] = False
239241
tc.variables["ASSIMP_WARNINGS_AS_ERRORS"] = False
240242
tc.variables["USE_STATIC_CRT"] = is_msvc_static_runtime(self)
243+
tc.variables["ASSIMP_BUILD_USE_CCACHE"] = False
241244

242245
for option, (definition, _) in self._format_option_map.items():
243246
value = self.options.get_safe(option)

recipes/assimp/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
versions:
2+
"5.4.3":
3+
folder: "5.x"
24
"5.4.2":
35
folder: "5.x"
46
"5.4.1":

recipes/au/all/conandata.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
sources:
2+
"0.3.5":
3+
url: "https://github.com/aurora-opensource/au/archive/refs/tags/0.3.5.tar.gz"
4+
sha256: "7ec826dc42968dc1633de56e4f9d06e70de73e820d2ac4788e8453343a622c9b"
5+
patches:
6+
"0.3.5":
7+
- patch_file: "patches/0001-v0.3.5-disable-gtest.patch"
8+
patch_description: "Remove GTest dependency and disable tests build"
9+
patch_type: "conan"

recipes/au/all/conanfile.py

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
from conan import ConanFile
2+
from conan.errors import ConanInvalidConfiguration
3+
from conan.tools.build import check_min_cppstd
4+
from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout
5+
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rm, rmdir
6+
from conan.tools.scm import Version
7+
import os
8+
9+
10+
required_conan_version = ">=1.53.0"
11+
12+
class PackageConan(ConanFile):
13+
name = "au"
14+
description = "A C++14-compatible physical units library"
15+
license = "Apache-2.0"
16+
url = "https://github.com/conan-io/conan-center-index"
17+
homepage = "https://github.com/aurora-opensource/au"
18+
topics = ("units", "C++14")
19+
package_type = "header-library"
20+
settings = "os", "arch", "compiler", "build_type"
21+
22+
@property
23+
def _min_cppstd(self):
24+
return 14
25+
26+
@property
27+
def _compilers_minimum_version(self):
28+
return {
29+
"apple-clang": "10",
30+
"clang": "7",
31+
"gcc": "7",
32+
"msvc": "191",
33+
"Visual Studio": "15",
34+
}
35+
36+
def export_sources(self):
37+
export_conandata_patches(self)
38+
39+
def layout(self):
40+
cmake_layout(self, src_folder="src")
41+
42+
def package_id(self):
43+
self.info.clear()
44+
45+
def validate(self):
46+
if self.settings.compiler.cppstd:
47+
check_min_cppstd(self, self._min_cppstd)
48+
minimum_version = self._compilers_minimum_version.get(str(self.settings.compiler), False)
49+
if minimum_version and Version(self.settings.compiler.version) < minimum_version:
50+
raise ConanInvalidConfiguration(
51+
f"{self.ref} requires C++{self._min_cppstd}, which your compiler does not support."
52+
)
53+
54+
def build_requirements(self):
55+
self.tool_requires("cmake/[>=3.24 <4]")
56+
57+
def source(self):
58+
get(self, **self.conan_data["sources"][self.version], strip_root=True)
59+
60+
def generate(self):
61+
tc = CMakeToolchain(self)
62+
tc.generate()
63+
64+
def build(self):
65+
apply_conandata_patches(self)
66+
cmake = CMake(self)
67+
cmake.configure()
68+
cmake.build()
69+
70+
def package(self):
71+
cmake = CMake(self)
72+
cmake.install()
73+
74+
copy(self, "LICENSE.txt", self.source_folder, os.path.join(self.package_folder, "licenses"))
75+
rmdir(self, os.path.join(self.package_folder, "lib", "cmake"))
76+
77+
def package_info(self):
78+
self.cpp_info.set_property("cmake_file_name", "Au")
79+
self.cpp_info.set_property("cmake_target_name", "Au::au")
80+
81+
if self.settings.os in ["Linux", "FreeBSD"]:
82+
self.cpp_info.system_libs.append("m")
83+
self.cpp_info.system_libs.append("pthread")
84+
self.cpp_info.system_libs.append("dl")
85+
86+
# TODO: to remove in conan v2 once cmake_find_package_* generators removed
87+
self.cpp_info.filenames["cmake_find_package"] = "Au"
88+
self.cpp_info.filenames["cmake_find_package_multi"] = "Au"
89+
self.cpp_info.names["cmake_find_package"] = "Au::au"
90+
self.cpp_info.names["cmake_find_package_multi"] = "Au::au"
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index b18407f..dbd35af 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -37,23 +37,23 @@ set(AU_EXPORT_SET_NAME AuHeaders)
6+
7+
enable_testing()
8+
9+
-# Bring in GoogleTest so we can build and run the tests.
10+
-include(FetchContent)
11+
-FetchContent_Declare(
12+
- googletest
13+
- GIT_REPOSITORY https://github.com/google/googletest.git
14+
- GIT_TAG 58d77fa8070e8cec2dc1ed015d66b454c8d78850 # Release 1.12.1
15+
- FIND_PACKAGE_ARGS
16+
- 1.12.1
17+
- NAMES GTest
18+
-)
19+
-
20+
-# https://google.github.io/googletest/quickstart-cmake.html
21+
-# For Windows: Prevent overriding the parent project's compiler/linker settings
22+
-set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
23+
-
24+
-FetchContent_MakeAvailable(googletest)
25+
-include(GoogleTest)
26+
+## Bring in GoogleTest so we can build and run the tests.
27+
+#include(FetchContent)
28+
+#FetchContent_Declare(
29+
+# googletest
30+
+# GIT_REPOSITORY https://github.com/google/googletest.git
31+
+# GIT_TAG 58d77fa8070e8cec2dc1ed015d66b454c8d78850 # Release 1.12.1
32+
+# FIND_PACKAGE_ARGS
33+
+# 1.12.1
34+
+# NAMES GTest
35+
+#)
36+
+#
37+
+## https://google.github.io/googletest/quickstart-cmake.html
38+
+## For Windows: Prevent overriding the parent project's compiler/linker settings
39+
+#set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
40+
+#
41+
+#FetchContent_MakeAvailable(googletest)
42+
+#include(GoogleTest)
43+
44+
add_subdirectory(au)
45+
46+
diff --git a/cmake/HeaderOnlyLibrary.cmake b/cmake/HeaderOnlyLibrary.cmake
47+
index 28daf00..fbf0fab 100644
48+
--- a/cmake/HeaderOnlyLibrary.cmake
49+
+++ b/cmake/HeaderOnlyLibrary.cmake
50+
@@ -75,7 +75,7 @@ function(header_only_library)
51+
)
52+
53+
# Add the test, if requested.
54+
- if (DEFINED ARG_GTEST_SRCS)
55+
+ if (OFF)
56+
add_executable("${ARG_NAME}_test")
57+
target_sources("${ARG_NAME}_test" PRIVATE ${ARG_GTEST_SRCS})
58+
target_link_libraries(
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
cmake_minimum_required(VERSION 3.15)
2+
3+
project(test_package LANGUAGES CXX)
4+
5+
find_package(Au REQUIRED CONFIG)
6+
7+
add_executable(${PROJECT_NAME} test_package.cpp)
8+
target_link_libraries(${PROJECT_NAME} PRIVATE Au::au)
9+
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_14)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
from conan import ConanFile
2+
from conan.tools.build import can_run
3+
from conan.tools.cmake import cmake_layout, CMake
4+
import os
5+
6+
7+
# It will become the standard on Conan 2.x
8+
class TestPackageConan(ConanFile):
9+
settings = "os", "arch", "compiler", "build_type"
10+
generators = "CMakeDeps", "CMakeToolchain", "VirtualRunEnv"
11+
test_type = "explicit"
12+
13+
def requirements(self):
14+
self.requires(self.tested_reference_str)
15+
16+
def layout(self):
17+
cmake_layout(self)
18+
19+
def build(self):
20+
cmake = CMake(self)
21+
cmake.configure()
22+
cmake.build()
23+
24+
def test(self):
25+
if can_run(self):
26+
bin_path = os.path.join(self.cpp.build.bindir, "test_package")
27+
self.run(bin_path, env="conanrun")
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <iostream>
2+
3+
#include "au/au.hh"
4+
#include "au/io.hh"
5+
#include "au/units/meters.hh"
6+
7+
using namespace au;
8+
9+
int main(void) {
10+
constexpr auto length = meters(100.0);
11+
12+
std::cout << length << " == " << length.in(kilo(meters)) <<" km" << std::endl;
13+
14+
return EXIT_SUCCESS;
15+
}

recipes/au/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
versions:
2+
"0.3.5":
3+
folder: all

recipes/bitserializer/all/conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def generate(self):
131131
deps.generate()
132132

133133
def _patch_sources(self):
134-
if Version(self.version) >= "0.50" and self.options.with_rapidyaml:
134+
if Version(self.version) >= "0.50":
135135
# Remove 'ryml' subdirectory from #include
136136
replace_in_file(
137137
self, os.path.join(self.source_folder, "include", "bitserializer", "rapidyaml_archive.h"),

0 commit comments

Comments
 (0)