Skip to content

Commit 23ef699

Browse files
authored
[geogram] update to 1.9.2 (microsoft#42920)
1 parent 352cf2f commit 23ef699

File tree

5 files changed

+44
-42
lines changed

5 files changed

+44
-42
lines changed

ports/geogram/fix-vcpkg-install.patch

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
diff --git a/CMakeLists.txt b/CMakeLists.txt
2-
index 1fd796c..05bd735 100644
2+
index 6934fca..c2f855d 100644
33
--- a/CMakeLists.txt
44
+++ b/CMakeLists.txt
5-
@@ -53,7 +53,7 @@ endif()
6-
include(cmake/geogram.cmake)
5+
@@ -68,7 +68,7 @@ set(GEOGRAM_INSTALL_PKGCONFIG_DIR ${CMAKE_INSTALL_LIBDIR}/pkgconfig CACHE PATH "
6+
set(GEOGRAM_INSTALL_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/modules CACHE PATH "CMake file install destination")
77

88

99
-set(VORPALINE_INCLUDE_SUBPATH geogram${VORPALINE_VERSION_MAJOR})
1010
+set(VORPALINE_INCLUDE_SUBPATH ./)
1111

1212
# Determine the current Build-OS (Build-platform without the compiler info)
1313
string(REGEX REPLACE "-[^-]+$" "" VORPALINE_OS ${VORPALINE_PLATFORM})
14-
@@ -115,6 +115,7 @@ endif()
14+
@@ -130,6 +130,7 @@ endif()
1515
add_subdirectory(src/lib/third_party)
1616

1717
if(GEOGRAM_WITH_GRAPHICS)
18-
+ find_package(GLFW3 REQUIRED)
19-
add_subdirectory(src/lib/geogram_gfx)
18+
+find_package(GLFW3 REQUIRED)
19+
add_subdirectory(src/lib/geogram_gfx)
2020
endif()
2121

22-
@@ -145,7 +146,44 @@ file(REMOVE ${CMAKE_BINARY_DIR}/doc/LICENSE.txt)
22+
@@ -160,7 +161,44 @@ file(REMOVE ${CMAKE_BINARY_DIR}/doc/LICENSE.txt)
2323

2424
# FindGeogram.cmake
2525

26-
-install(FILES cmake/FindGeogram.cmake DESTINATION lib/cmake/modules COMPONENT devkit)
26+
-install(FILES cmake/FindGeogram.cmake DESTINATION ${GEOGRAM_INSTALL_CMAKE_DIR} COMPONENT devkit)
2727
+# This installation is not suitable for vcpkg
2828
+# install(FILES cmake/FindGeogram.cmake DESTINATION lib/cmake/modules COMPONENT devkit)
2929
+
@@ -66,26 +66,31 @@ index 1fd796c..05bd735 100644
6666
# Configure CPack
6767

6868
diff --git a/src/lib/geogram/CMakeLists.txt b/src/lib/geogram/CMakeLists.txt
69-
index ed2dca0..30f87b7 100644
69+
index d50b3d2..41ec3e4 100644
7070
--- a/src/lib/geogram/CMakeLists.txt
7171
+++ b/src/lib/geogram/CMakeLists.txt
72-
@@ -45,7 +45,7 @@ target_include_directories(geogram PRIVATE
72+
@@ -69,7 +69,7 @@ endif()
7373
# path for targets that depend on geogram.
7474
# See: https://cmake.org/cmake/help/v3.3/command/target_include_directories.html
7575
# https://stackoverflow.com/questions/26243169/cmake-target-include-directories-meaning-of-scope
7676
-target_include_directories(geogram PUBLIC ${PROJECT_SOURCE_DIR}/src/lib)
7777
+target_include_directories(geogram PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/lib>)
7878

7979
if(ANDROID)
80-
target_include_directories(geogram PRIVATE
81-
@@ -72,8 +72,19 @@ if(WIN32)
82-
target_link_libraries(geogram psapi)
80+
target_include_directories(geogram PRIVATE
81+
@@ -78,6 +78,9 @@ ${ANDROID_NDK}/sources/android/native_app_glue
82+
message(STATUS "building for Android")
8383
endif()
8484

8585
+if(WIN32 AND VORPALINE_BUILD_DYNAMIC)
8686
+ target_compile_definitions(geogram PUBLIC GEO_DYNAMIC_LIBS)
8787
+endif()
88-
+
88+
89+
set_target_properties(geogram PROPERTIES
90+
VERSION ${VORPALINE_VERSION}
91+
@@ -101,7 +104,14 @@ target_link_libraries(geogram ${GEOGRAMPLUS_LIBS})
92+
endif()
93+
8994
# Install the library
9095
-install_devkit_targets(geogram)
9196
+install(
@@ -100,10 +105,10 @@ index ed2dca0..30f87b7 100644
100105
# Install include files for the standard devkit
101106
install(
102107
diff --git a/src/lib/geogram_gfx/CMakeLists.txt b/src/lib/geogram_gfx/CMakeLists.txt
103-
index a6f8372..195b1e2 100644
108+
index 391e607..13b6bcb 100644
104109
--- a/src/lib/geogram_gfx/CMakeLists.txt
105110
+++ b/src/lib/geogram_gfx/CMakeLists.txt
106-
@@ -52,14 +52,21 @@ if(VORPALINE_BUILD_DYNAMIC)
111+
@@ -52,14 +52,21 @@ target_link_libraries(geogram_gfx ${OPENGL_LIBRARIES})
107112
endif()
108113

109114
# Install the library
@@ -119,20 +124,20 @@ index a6f8372..195b1e2 100644
119124

120125
# Install include files for the standard devkit
121126
install(
122-
DIRECTORY .
123-
DESTINATION include/${VORPALINE_INCLUDE_SUBPATH}/geogram_gfx
124-
COMPONENT devkit
125-
- FILES_MATCHING PATTERN *.h
126-
+ FILES_MATCHING PATTERN *.h PATTERN *.xpm # xpm is the colrbar file
127+
DIRECTORY .
128+
DESTINATION include/${VORPALINE_INCLUDE_SUBPATH}/geogram_gfx
129+
COMPONENT devkit
130+
-FILES_MATCHING PATTERN *.h
131+
+FILES_MATCHING PATTERN *.h PATTERN *.xpm # xpm is the colrbar file
127132
)
128133

129134
# Install include files for the full devkit
130135
@@ -67,7 +74,7 @@ install(
131-
DIRECTORY .
132-
DESTINATION include/${VORPALINE_INCLUDE_SUBPATH}/geogram_gfx
133-
COMPONENT devkit-full
134-
- FILES_MATCHING PATTERN *.h
135-
+ FILES_MATCHING PATTERN *.h PATTERN *.xpm # xpm is the colrbar file
136+
DIRECTORY .
137+
DESTINATION include/${VORPALINE_INCLUDE_SUBPATH}/geogram_gfx
138+
COMPONENT devkit-full
139+
-FILES_MATCHING PATTERN *.h
140+
+FILES_MATCHING PATTERN *.h PATTERN *.xpm # xpm is the colrbar file
136141
)
137142

138143
install(

ports/geogram/portfile.cmake

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,26 @@
1-
vcpkg_download_distfile(FIX_IMPLICIT_INT_PATCH
2-
URLS https://github.com/BrunoLevy/geogram/commit/382da2d2f0d39bf8df2f65051c338e7e827e31db.patch?full_index=1
3-
FILENAME geogram-implicit-ini-382da2d2f0d39bf8df2f65051c338e7e827e31db.patch
4-
SHA512 1a85195b76cd7140fe890893bf1f57a1f9c30dbc2865bab28b7eda9d97b9bab5be7cbc638b24d8da489aee1e25e0e7289655ade13893bdc225d1b332f1d845a0
5-
)
6-
71
vcpkg_from_github(
82
OUT_SOURCE_PATH SOURCE_PATH
93
REPO BrunoLevy/geogram
104
REF "v${VERSION}"
11-
SHA512 ae3d95be1c5061ace92921b3fcfb0027d23c595b131b0d31f1788adbe0d8f92367bef71736d6c936504bd37eba5fcdae658369f03734e233bf3eab14bca6f9e5
5+
SHA512 ed60352bfc3bc65dfbeac7c34b5ecf59e12cd61678e961f7d3ca445315bc13d377df93982f070be69815824ea1d6490a683e108b0456a4ebf4019e9d9e206599
126
PATCHES
137
fix-vcpkg-install.patch
14-
"${FIX_IMPLICIT_INT_PATCH}"
158
)
169

1710
#third_party: amgcl
1811
vcpkg_from_github(
1912
OUT_SOURCE_PATH AMGCL_SOURCE_PATH
2013
REPO ddemidov/amgcl
21-
REF 8083b23fbe69c43cee0d4bc17e4334572e292c93
22-
SHA512 1b29871ace68c53b46711012921261929f8bd612f93b47d2c59523cd3d68366956fe1c9ec81a94b3aaab63357001799c9e34af79376b940fa6b7a53cdf136897
14+
REF a705f0822a332e215c41bccbeb6a7d92e90c49f2
15+
SHA512 09dda0eb318ee4cd74af9ea67d9fcdce8a4399ab08b08cd72e2c7de953ad584204402b932c2a3222b7c74b25934267230bbc333a377e25f87ad045087ace2000
2316
)
2417

2518
#third_party: libMeshb
2619
vcpkg_from_github(
2720
OUT_SOURCE_PATH LIBMESHB_SOURCE_PATH
2821
REPO LoicMarechal/libMeshb
29-
REF b4a91513317119ff71a1186906a052da0e535913
30-
SHA512 bff30a233c2746a454d552be66f5654bf4af995d6f1eb00a4d21ed10c86234a5be4d6f31282645858e0a829b10fd98cad7188c69be65cdabbd18478fc26bad1f
22+
REF e3678731ef14497c720ee7017a14450eba2602d2
23+
SHA512 5c8f25805ce02cb48600914893f24ecd2dcbb8226692d47089605ff99db8785781407ec9152e29b0c3bc44d16f6d893cd171e5337c3cb1861468da05471872b6
3124
)
3225

3326
#third_party: rply

ports/geogram/vcpkg.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "geogram",
3-
"version": "1.8.3",
4-
"port-version": 3,
3+
"version": "1.9.2",
54
"description": "Geogram is a programming library of geometric algorithms.",
65
"homepage": "https://github.com/BrunoLevy/geogram",
76
"license": "BSD-3-Clause",

versions/baseline.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3057,8 +3057,8 @@
30573057
"port-version": 3
30583058
},
30593059
"geogram": {
3060-
"baseline": "1.8.3",
3061-
"port-version": 3
3060+
"baseline": "1.9.2",
3061+
"port-version": 0
30623062
},
30633063
"geographiclib": {
30643064
"baseline": "2.5",

versions/g-/geogram.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "84861deff832f4b9ee663513caf8285bff677d44",
5+
"version": "1.9.2",
6+
"port-version": 0
7+
},
38
{
49
"git-tree": "7ecc3086e630018469ee01f4bc48d4dde9372ed8",
510
"version": "1.8.3",

0 commit comments

Comments
 (0)