-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[geos] Relocatable geos-config; dynamic builds on Unix #17616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
89893b6
Provide geos-config, and fix dynamic builds on Unix
dg0yt 9a238b5
x-add-version
dg0yt 8f8e29b
Fix debug suffix handling
dg0yt 0fbdfa8
Update git-tree
dg0yt d222d85
Don't build benchmarks
dg0yt 6c2680b
Revise pc file and geos-config handling
dg0yt 9751a28
Port to non-deprecated cmake functions
dg0yt ab8c1d3
Add usage
dg0yt f90497f
Update git-tree
dg0yt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| diff --git a/tools/geos-config.cmake b/tools/geos-config.cmake | ||
| index 6730e215..4c546b5c 100644 | ||
| --- a/tools/geos-config.cmake | ||
| +++ b/tools/geos-config.cmake | ||
| @@ -1,7 +1,9 @@ | ||
| #!/bin/sh | ||
|
|
||
| -prefix=@ESCAPED_INSTALL_PREFIX@ | ||
| -libdir=${prefix}/lib | ||
| +DIRNAME=$(dirname $0) | ||
| +TOOLS=$(dirname $DIRNAME) | ||
| +prefix=$(CDPATH= cd -- "${DIRNAME%/tools/geos/*}" && pwd -P) | ||
| +libdir=${prefix}${TOOLS##*/geos}/lib | ||
|
|
||
| usage() | ||
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| diff --git a/tools/geos.pc.cmake b/tools/geos.pc.cmake | ||
| index 0a9df7fb..53f43d90 100644 | ||
| --- a/tools/geos.pc.cmake | ||
| +++ b/tools/geos.pc.cmake | ||
| @@ -9,3 +9,4 @@ Requires: | ||
| Version: @GEOS_VERSION@ | ||
| Cflags: -I${includedir} | ||
| Libs: -L${libdir} -lgeos_c | ||
| +Libs.private: -lgeos | ||
| -- | ||
| 2.17.1 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| The package geos provides CMake targets: | ||
|
|
||
| # C API (provides long-term ABI stability) | ||
| find_package(GEOS CONFIG REQUIRED) | ||
| target_link_libraries(main PRIVATE GEOS::geos_c) | ||
|
|
||
| # C++ API (will likely change across versions) | ||
| find_package(GEOS CONFIG REQUIRED) | ||
| target_link_libraries(main PRIVATE GEOS::geos) | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "name": "geos", | ||
| "version": "3.9.1", | ||
| "port-version": 1, | ||
| "description": "Geometry Engine Open Source", | ||
| "homepage": "https://www.osgeo.org/projects/geos/", | ||
| "dependencies": [ | ||
| { | ||
| "name": "vcpkg-cmake", | ||
| "host": true | ||
| }, | ||
| { | ||
| "name": "vcpkg-cmake-config", | ||
| "host": true | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.