summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/avro/avro-c++/0001-Remove-cpp-unittest-compilation.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/avro/avro-c++/0001-Remove-cpp-unittest-compilation.patch')
-rw-r--r--meta-oe/recipes-support/avro/avro-c++/0001-Remove-cpp-unittest-compilation.patch88
1 files changed, 88 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/avro/avro-c++/0001-Remove-cpp-unittest-compilation.patch b/meta-oe/recipes-support/avro/avro-c++/0001-Remove-cpp-unittest-compilation.patch
new file mode 100644
index 0000000000..f407fa6ecd
--- /dev/null
+++ b/meta-oe/recipes-support/avro/avro-c++/0001-Remove-cpp-unittest-compilation.patch
@@ -0,0 +1,88 @@
1From 6be1c45e1f7ee78499bdca76c25ec23a61317134 Mon Sep 17 00:00:00 2001
2From: Rui Costa <rui.ms.costa@ctw.bmwgroup.com>
3Date: Wed, 20 Mar 2024 14:58:27 +0000
4Subject: [PATCH 1/2] Remove cpp unittest compilation
5
6Upstream-Status: Inappropriate [oe-specific]
7---
8 lang/c++/CMakeLists.txt | 61 -----------------------------------------
9 1 file changed, 61 deletions(-)
10
11diff --git a/CMakeLists.txt b/CMakeLists.txt
12index 4a3793152..d94ba42d3 100644
13--- a/CMakeLists.txt
14+++ b/CMakeLists.txt
15@@ -131,70 +131,9 @@ set_target_properties (avrocpp_s PROPERTIES
16 target_link_libraries (avrocpp ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES})
17 target_include_directories(avrocpp PRIVATE ${SNAPPY_INCLUDE_DIR})
18
19-add_executable (precompile test/precompile.cc)
20-
21-target_link_libraries (precompile avrocpp_s ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES})
22-
23-macro (gen file ns)
24- add_custom_command (OUTPUT ${file}.hh
25- COMMAND avrogencpp
26- -p -
27- -i ${CMAKE_CURRENT_SOURCE_DIR}/jsonschemas/${file}
28- -o ${file}.hh -n ${ns} -U
29- DEPENDS avrogencpp ${CMAKE_CURRENT_SOURCE_DIR}/jsonschemas/${file})
30- add_custom_target (${file}_hh DEPENDS ${file}.hh)
31-endmacro (gen)
32-
33-gen (empty_record empty)
34-gen (bigrecord testgen)
35-gen (bigrecord_r testgen_r)
36-gen (bigrecord2 testgen2)
37-gen (tweet testgen3)
38-gen (union_array_union uau)
39-gen (union_map_union umu)
40-gen (union_conflict uc)
41-gen (recursive rec)
42-gen (reuse ru)
43-gen (circulardep cd)
44-gen (tree1 tr1)
45-gen (tree2 tr2)
46-gen (crossref cr)
47-gen (primitivetypes pt)
48-gen (cpp_reserved_words cppres)
49-
50 add_executable (avrogencpp impl/avrogencpp.cc)
51 target_link_libraries (avrogencpp avrocpp_s ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES})
52
53-enable_testing()
54-
55-macro (unittest name)
56- add_executable (${name} test/${name}.cc)
57- target_link_libraries (${name} avrocpp ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES})
58- add_test (NAME ${name} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
59- COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${name})
60-endmacro (unittest)
61-
62-unittest (buffertest)
63-unittest (unittest)
64-unittest (SchemaTests)
65-unittest (LargeSchemaTests)
66-unittest (CodecTests)
67-unittest (StreamTests)
68-unittest (SpecificTests)
69-unittest (DataFileTests)
70-unittest (JsonTests)
71-unittest (AvrogencppTests)
72-unittest (CompilerTests)
73-unittest (AvrogencppTestReservedWords)
74-
75-add_dependencies (AvrogencppTestReservedWords cpp_reserved_words_hh)
76-
77-add_dependencies (AvrogencppTests bigrecord_hh bigrecord_r_hh bigrecord2_hh
78- tweet_hh
79- union_array_union_hh union_map_union_hh union_conflict_hh
80- recursive_hh reuse_hh circulardep_hh tree1_hh tree2_hh crossref_hh
81- primitivetypes_hh empty_record_hh)
82-
83 include (InstallRequiredSystemLibraries)
84
85 set (CPACK_PACKAGE_FILE_NAME "avrocpp-${AVRO_VERSION_MAJOR}")
86--
872.44.0
88