Skip to content

Commit 82f06db

Browse files
authored
openjph: Add version 0.21.2 (#26504)
* OpenJPH: Add version 0.21.2 * add newest release of OpenJPH * remove version 0.17.0 * Remove cmake exports from package
1 parent 8cc8fd7 commit 82f06db

File tree

4 files changed

+41
-9
lines changed

4 files changed

+41
-9
lines changed

recipes/openjph/all/conandata.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
sources:
2+
"0.21.2":
3+
url: "https://github.com/aous72/OpenJPH/archive/0.21.2.tar.gz"
4+
sha256: "5c25f5fe820ccb4fee3b7a0d3246bf836508e313708f0b57f3654dbe8b0c4a01"
25
"0.18.0":
36
url: "https://github.com/aous72/OpenJPH/archive/0.18.0.tar.gz"
47
sha256: "2484908bf5a171cda957643d9bc85c39d58ef939016e2d1a00122b1cefbbd4f8"
5-
"0.17.0":
6-
url: "https://github.com/aous72/OpenJPH/archive/0.17.0.tar.gz"
7-
sha256: "9cd09a5f3a8046b10bded787212afd2410836f9c266964a36f61dc4b63f99b6c"
88
"0.16.0":
99
url: "https://github.com/aous72/OpenJPH/archive/0.16.0.tar.gz"
1010
sha256: "94bea4d7057f7a5dcb3f8eee3f854955ce153d98dad99602dd0ba50a560d7cf6"
1111
patches:
12-
"0.18.0":
13-
- patch_file: "patches/0.15.0_cmake-cxx-standard.patch"
12+
"0.21.2":
13+
- patch_file: "patches/0.21.2_cmake-cxx-standard.patch"
1414
patch_description: "Remove setting of CXX standard to a fixed value overriding the toolchain provided by Conan"
1515
patch_type: "conan"
16-
"0.17.0":
16+
"0.18.0":
1717
- patch_file: "patches/0.15.0_cmake-cxx-standard.patch"
1818
patch_description: "Remove setting of CXX standard to a fixed value overriding the toolchain provided by Conan"
1919
patch_type: "conan"

recipes/openjph/all/conanfile.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from conan.errors import ConanInvalidConfiguration
33
from conan.tools.build import check_min_cppstd
44
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
5-
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rmdir
5+
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rm, rmdir
66
from conan.tools.microsoft import is_msvc
77
from conan.tools.scm import Version
88

@@ -100,6 +100,12 @@ def package(self):
100100
cm = CMake(self)
101101
cm.install()
102102

103+
if Version(self.version) >= "0.21.2":
104+
# Introduced with version 0.21.*, there is now cmake exports added upstream.
105+
rm(self, "*.cmake", os.path.join(self.package_folder, "lib", "cmake"), recursive=True)
106+
rmdir(self, os.path.join(self.package_folder, "lib", "cmake", "openjph"))
107+
rmdir(self, os.path.join(self.package_folder, "lib", "cmake"))
108+
103109
# Cleanup package own pkgconfig
104110
rmdir(self, os.path.join(self.package_folder, "lib", "pkgconfig"))
105111

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git CMakeLists.txt CMakeLists.txt
2+
index 716d5ad..9949c27 100644
3+
--- CMakeLists.txt
4+
+++ CMakeLists.txt
5+
@@ -103,7 +103,7 @@ message(STATUS "Building ${CMAKE_BUILD_TYPE}")
6+
7+
## C++ version and flags
8+
# C++14 is needed for gtest, otherwise, C++11 is sufficient for the library
9+
-set(CMAKE_CXX_STANDARD 14)
10+
+#set(CMAKE_CXX_STANDARD 14)
11+
if (MSVC)
12+
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
13+
endif()
14+
diff --git src/apps/ojph_stream_expand/CMakeLists.txt src/apps/ojph_stream_expand/CMakeLists.txt
15+
index 24bc2d1..9b0d4c0 100644
16+
--- src/apps/ojph_stream_expand/CMakeLists.txt
17+
+++ src/apps/ojph_stream_expand/CMakeLists.txt
18+
@@ -1,7 +1,7 @@
19+
## building ojph_stream_expand
20+
##############################
21+
22+
-set(CMAKE_CXX_STANDARD 14)
23+
+#set(CMAKE_CXX_STANDARD 14)
24+
25+
file(GLOB OJPH_STREAM_EXPAND "*.cpp" "*.h")
26+
file(GLOB OJPH_SOCKETS "../others/ojph_sockets.cpp")

recipes/openjph/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
versions:
2-
"0.18.0":
2+
"0.21.2":
33
folder: all
4-
"0.17.0":
4+
"0.18.0":
55
folder: all
66
"0.16.0":
77
folder: all

0 commit comments

Comments
 (0)