Skip to content

Commit d0908ba

Browse files
committed
Update vendor
1 parent bef14ae commit d0908ba

File tree

16 files changed

+290
-26
lines changed

16 files changed

+290
-26
lines changed

Diff for: example/vendor/cget/pkg/foonathan__debug_assert/install/lib/cmake/debug_assert/debug_assert-targets.cmake

+12-12
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
44
message(FATAL_ERROR "CMake >= 2.8.0 required")
55
endif()
6-
if(CMAKE_VERSION VERSION_LESS "2.8.3")
7-
message(FATAL_ERROR "CMake >= 2.8.3 required")
6+
if(CMAKE_VERSION VERSION_LESS "3.1.0")
7+
message(FATAL_ERROR "CMake >= 3.1.0 required")
88
endif()
99
cmake_policy(PUSH)
10-
cmake_policy(VERSION 2.8.3...3.26)
10+
cmake_policy(VERSION 3.1.0...3.27)
1111
#----------------------------------------------------------------
1212
# Generated CMake target import file.
1313
#----------------------------------------------------------------
@@ -63,10 +63,6 @@ set_target_properties(debug_assert PROPERTIES
6363
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
6464
)
6565

66-
if(CMAKE_VERSION VERSION_LESS 3.1.0)
67-
message(FATAL_ERROR "This file relies on consumers using CMake 3.1.0 or greater.")
68-
endif()
69-
7066
# Load information for each installed configuration.
7167
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/debug_assert-targets-*.cmake")
7268
foreach(_cmake_config_file IN LISTS _cmake_config_files)
@@ -80,9 +76,12 @@ set(_IMPORT_PREFIX)
8076

8177
# Loop over all imported files and verify that they actually exist
8278
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
83-
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
84-
if(NOT EXISTS "${_cmake_file}")
85-
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
79+
if(CMAKE_VERSION VERSION_LESS "3.28"
80+
OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
81+
OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
82+
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
83+
if(NOT EXISTS "${_cmake_file}")
84+
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
8685
\"${_cmake_file}\"
8786
but this file does not exist. Possible reasons include:
8887
* The file was deleted, renamed, or moved to another location.
@@ -91,8 +90,9 @@ but this file does not exist. Possible reasons include:
9190
\"${CMAKE_CURRENT_LIST_FILE}\"
9291
but not all the files it references.
9392
")
94-
endif()
95-
endforeach()
93+
endif()
94+
endforeach()
95+
endif()
9696
unset(_cmake_file)
9797
unset("_cmake_import_check_files_for_${_cmake_target}")
9898
endforeach()

Diff for: example/vendor/cget/pkg/pqrs-org__cpp-hid/install/include/pqrs/hid.hpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#pragma once
22

3-
// pqrs::hid v2.13
3+
// pqrs::hid v2.14
44

55
// (C) Copyright Takayama Fumihiko 2020.
66
// Distributed under the Boost Software License, Version 1.0.
77
// (See https://www.boost.org/LICENSE_1_0.txt)
88

99
#include "hid/country_code.hpp"
1010
#include "hid/hash.hpp"
11+
#include "hid/manufacturer_string.hpp"
1112
#include "hid/product_id.hpp"
13+
#include "hid/product_string.hpp"
1214
#include "hid/report_id.hpp"
1315
#include "hid/usage.hpp"
1416
#include "hid/usage_page.hpp"

Diff for: example/vendor/cget/pkg/pqrs-org__cpp-hid/install/include/pqrs/hid/extra/boost.hpp

+25
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
namespace pqrs {
1010
namespace hid {
11+
12+
//
13+
// number values
14+
//
15+
1116
namespace country_code {
1217
inline std::size_t hash_value(const value_t& value) {
1318
return std::hash<value_t>{}(value);
@@ -44,6 +49,26 @@ inline std::size_t hash_value(const value_t& value) {
4449
}
4550
} // namespace vendor_id
4651

52+
//
53+
// string values
54+
//
55+
56+
namespace manufacturer_string {
57+
inline std::size_t hash_value(const value_t& value) {
58+
return std::hash<value_t>{}(value);
59+
}
60+
} // namespace manufacturer_string
61+
62+
namespace product_string {
63+
inline std::size_t hash_value(const value_t& value) {
64+
return std::hash<value_t>{}(value);
65+
}
66+
} // namespace product_string
67+
68+
//
69+
// usage_pair
70+
//
71+
4772
inline std::size_t hash_value(const usage_pair& value) {
4873
return std::hash<usage_pair>{}(value);
4974
}

Diff for: example/vendor/cget/pkg/pqrs-org__cpp-hid/install/include/pqrs/hid/extra/nlohmann_json.hpp

+33
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99

1010
namespace pqrs {
1111
namespace hid {
12+
13+
//
14+
// number values
15+
//
16+
1217
namespace country_code {
1318
inline void to_json(nlohmann::json& j, const value_t& value) {
1419
j = type_safe::get(value);
@@ -81,6 +86,34 @@ inline void from_json(const nlohmann::json& j, value_t& value) {
8186
}
8287
} // namespace vendor_id
8388

89+
//
90+
// string values
91+
//
92+
93+
namespace manufacturer_string {
94+
inline void to_json(nlohmann::json& j, const value_t& value) {
95+
j = type_safe::get(value);
96+
}
97+
98+
inline void from_json(const nlohmann::json& j, value_t& value) {
99+
json::requires_string(j, "json");
100+
101+
value = value_t(j.get<type_safe::underlying_type<value_t>>());
102+
}
103+
} // namespace manufacturer_string
104+
105+
namespace product_string {
106+
inline void to_json(nlohmann::json& j, const value_t& value) {
107+
j = type_safe::get(value);
108+
}
109+
110+
inline void from_json(const nlohmann::json& j, value_t& value) {
111+
json::requires_string(j, "json");
112+
113+
value = value_t(j.get<type_safe::underlying_type<value_t>>());
114+
}
115+
} // namespace product_string
116+
84117
//
85118
// usage_pair
86119
//
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#pragma once
2+
3+
// (C) Copyright Takayama Fumihiko 2024.
4+
// Distributed under the Boost Software License, Version 1.0.
5+
// (See https://www.boost.org/LICENSE_1_0.txt)
6+
7+
#include <compare>
8+
#include <functional>
9+
#include <iostream>
10+
#include <type_safe/strong_typedef.hpp>
11+
12+
namespace pqrs {
13+
namespace hid {
14+
namespace manufacturer_string {
15+
struct value_t : type_safe::strong_typedef<value_t, std::string>,
16+
type_safe::strong_typedef_op::equality_comparison<value_t> {
17+
using strong_typedef::strong_typedef;
18+
19+
constexpr auto operator<=>(const value_t& other) const {
20+
return type_safe::get(*this) <=> type_safe::get(other);
21+
}
22+
};
23+
24+
inline std::ostream& operator<<(std::ostream& stream, const value_t& value) {
25+
return stream << type_safe::get(value);
26+
}
27+
} // namespace manufacturer_string
28+
} // namespace hid
29+
} // namespace pqrs
30+
31+
namespace std {
32+
template <>
33+
struct hash<pqrs::hid::manufacturer_string::value_t> : type_safe::hashable<pqrs::hid::manufacturer_string::value_t> {
34+
};
35+
} // namespace std
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#pragma once
2+
3+
// (C) Copyright Takayama Fumihiko 2024.
4+
// Distributed under the Boost Software License, Version 1.0.
5+
// (See https://www.boost.org/LICENSE_1_0.txt)
6+
7+
#include <compare>
8+
#include <functional>
9+
#include <iostream>
10+
#include <type_safe/strong_typedef.hpp>
11+
12+
namespace pqrs {
13+
namespace hid {
14+
namespace product_string {
15+
struct value_t : type_safe::strong_typedef<value_t, std::string>,
16+
type_safe::strong_typedef_op::equality_comparison<value_t> {
17+
using strong_typedef::strong_typedef;
18+
19+
constexpr auto operator<=>(const value_t& other) const {
20+
return type_safe::get(*this) <=> type_safe::get(other);
21+
}
22+
};
23+
24+
inline std::ostream& operator<<(std::ostream& stream, const value_t& value) {
25+
return stream << type_safe::get(value);
26+
}
27+
} // namespace product_string
28+
} // namespace hid
29+
} // namespace pqrs
30+
31+
namespace std {
32+
template <>
33+
struct hash<pqrs::hid::product_string::value_t> : type_safe::hashable<pqrs::hid::product_string::value_t> {
34+
};
35+
} // namespace std
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../cget/pkg/pqrs-org__cpp-hid/install/include/pqrs/hid/manufacturer_string.hpp

Diff for: example/vendor/include/pqrs/hid/product_string.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../cget/pkg/pqrs-org__cpp-hid/install/include/pqrs/hid/product_string.hpp

Diff for: tests/vendor/cget/pkg/foonathan__debug_assert/install/lib/cmake/debug_assert/debug_assert-targets.cmake

+12-12
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
44
message(FATAL_ERROR "CMake >= 2.8.0 required")
55
endif()
6-
if(CMAKE_VERSION VERSION_LESS "2.8.3")
7-
message(FATAL_ERROR "CMake >= 2.8.3 required")
6+
if(CMAKE_VERSION VERSION_LESS "3.1.0")
7+
message(FATAL_ERROR "CMake >= 3.1.0 required")
88
endif()
99
cmake_policy(PUSH)
10-
cmake_policy(VERSION 2.8.3...3.26)
10+
cmake_policy(VERSION 3.1.0...3.27)
1111
#----------------------------------------------------------------
1212
# Generated CMake target import file.
1313
#----------------------------------------------------------------
@@ -63,10 +63,6 @@ set_target_properties(debug_assert PROPERTIES
6363
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
6464
)
6565

66-
if(CMAKE_VERSION VERSION_LESS 3.1.0)
67-
message(FATAL_ERROR "This file relies on consumers using CMake 3.1.0 or greater.")
68-
endif()
69-
7066
# Load information for each installed configuration.
7167
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/debug_assert-targets-*.cmake")
7268
foreach(_cmake_config_file IN LISTS _cmake_config_files)
@@ -80,9 +76,12 @@ set(_IMPORT_PREFIX)
8076

8177
# Loop over all imported files and verify that they actually exist
8278
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
83-
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
84-
if(NOT EXISTS "${_cmake_file}")
85-
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
79+
if(CMAKE_VERSION VERSION_LESS "3.28"
80+
OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
81+
OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
82+
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
83+
if(NOT EXISTS "${_cmake_file}")
84+
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
8685
\"${_cmake_file}\"
8786
but this file does not exist. Possible reasons include:
8887
* The file was deleted, renamed, or moved to another location.
@@ -91,8 +90,9 @@ but this file does not exist. Possible reasons include:
9190
\"${CMAKE_CURRENT_LIST_FILE}\"
9291
but not all the files it references.
9392
")
94-
endif()
95-
endforeach()
93+
endif()
94+
endforeach()
95+
endif()
9696
unset(_cmake_file)
9797
unset("_cmake_import_check_files_for_${_cmake_target}")
9898
endforeach()

Diff for: tests/vendor/cget/pkg/pqrs-org__cpp-hid/install/include/pqrs/hid.hpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#pragma once
22

3-
// pqrs::hid v2.13
3+
// pqrs::hid v2.14
44

55
// (C) Copyright Takayama Fumihiko 2020.
66
// Distributed under the Boost Software License, Version 1.0.
77
// (See https://www.boost.org/LICENSE_1_0.txt)
88

99
#include "hid/country_code.hpp"
1010
#include "hid/hash.hpp"
11+
#include "hid/manufacturer_string.hpp"
1112
#include "hid/product_id.hpp"
13+
#include "hid/product_string.hpp"
1214
#include "hid/report_id.hpp"
1315
#include "hid/usage.hpp"
1416
#include "hid/usage_page.hpp"

Diff for: tests/vendor/cget/pkg/pqrs-org__cpp-hid/install/include/pqrs/hid/extra/boost.hpp

+25
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
namespace pqrs {
1010
namespace hid {
11+
12+
//
13+
// number values
14+
//
15+
1116
namespace country_code {
1217
inline std::size_t hash_value(const value_t& value) {
1318
return std::hash<value_t>{}(value);
@@ -44,6 +49,26 @@ inline std::size_t hash_value(const value_t& value) {
4449
}
4550
} // namespace vendor_id
4651

52+
//
53+
// string values
54+
//
55+
56+
namespace manufacturer_string {
57+
inline std::size_t hash_value(const value_t& value) {
58+
return std::hash<value_t>{}(value);
59+
}
60+
} // namespace manufacturer_string
61+
62+
namespace product_string {
63+
inline std::size_t hash_value(const value_t& value) {
64+
return std::hash<value_t>{}(value);
65+
}
66+
} // namespace product_string
67+
68+
//
69+
// usage_pair
70+
//
71+
4772
inline std::size_t hash_value(const usage_pair& value) {
4873
return std::hash<usage_pair>{}(value);
4974
}

Diff for: tests/vendor/cget/pkg/pqrs-org__cpp-hid/install/include/pqrs/hid/extra/nlohmann_json.hpp

+33
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99

1010
namespace pqrs {
1111
namespace hid {
12+
13+
//
14+
// number values
15+
//
16+
1217
namespace country_code {
1318
inline void to_json(nlohmann::json& j, const value_t& value) {
1419
j = type_safe::get(value);
@@ -81,6 +86,34 @@ inline void from_json(const nlohmann::json& j, value_t& value) {
8186
}
8287
} // namespace vendor_id
8388

89+
//
90+
// string values
91+
//
92+
93+
namespace manufacturer_string {
94+
inline void to_json(nlohmann::json& j, const value_t& value) {
95+
j = type_safe::get(value);
96+
}
97+
98+
inline void from_json(const nlohmann::json& j, value_t& value) {
99+
json::requires_string(j, "json");
100+
101+
value = value_t(j.get<type_safe::underlying_type<value_t>>());
102+
}
103+
} // namespace manufacturer_string
104+
105+
namespace product_string {
106+
inline void to_json(nlohmann::json& j, const value_t& value) {
107+
j = type_safe::get(value);
108+
}
109+
110+
inline void from_json(const nlohmann::json& j, value_t& value) {
111+
json::requires_string(j, "json");
112+
113+
value = value_t(j.get<type_safe::underlying_type<value_t>>());
114+
}
115+
} // namespace product_string
116+
84117
//
85118
// usage_pair
86119
//

0 commit comments

Comments
 (0)