-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libgeotiff] support linux build (#3843)
* [libgeotiff] fix compile on linux Fix cmake libtiff functions detetion failure caused by finding no functions in libm. Signed-off-by: Hiroshi Miura <miurahr@linux.com> * [libgeotiff] fix utility binary handling in linux Signed-off-by: Hiroshi Miura <miurahr@linux.com> * [tiff] Fix static transitive dependencies * [libgeotiff] Fix .dll and .exe manipulation * [leptonica] Find dependencies in installed cmake config file * [tiff] Do not add cmake targets to TIFF_LIBRARIES * [tiff] Link consumers against m on unix platforms
- Loading branch information
1 parent
09ccd05
commit 3eeaf56
Showing
9 changed files
with
73 additions
and
62 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Source: leptonica | ||
Version: 1.74.4-3 | ||
Version: 1.74.4-5 | ||
Description: An open source library containing software that is broadly useful for image processing and image analysis applications | ||
Build-Depends: libjpeg-turbo, zlib, libpng, tiff, giflib |
This file contains 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,18 @@ | ||
diff --git a/cmake/templates/LeptonicaConfig.cmake.in b/cmake/templates/LeptonicaConfig.cmake.in | ||
index d53904a..2aa2fea 100644 | ||
--- a/cmake/templates/LeptonicaConfig.cmake.in | ||
+++ b/cmake/templates/LeptonicaConfig.cmake.in | ||
@@ -20,6 +20,13 @@ | ||
# | ||
# =================================================================================== | ||
|
||
+include(CMakeFindDependencyMacro) | ||
+find_dependency(TIFF) | ||
+find_dependency(ZLIB) | ||
+find_dependency(PNG) | ||
+find_dependency(JPEG) | ||
+find_dependency(GIF) | ||
+ | ||
include(${CMAKE_CURRENT_LIST_DIR}/LeptonicaTargets.cmake) | ||
|
||
# ====================================================== |
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Source: libgeotiff | ||
Version: 1.4.2-3 | ||
Version: 1.4.2-4 | ||
Description: Libgeotiff is an open source library normally hosted on top of libtiff for reading, and writing GeoTIFF information tags. | ||
Build-Depends: tiff, proj4, zlib, libjpeg-turbo |
This file contains 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 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Source: tiff | ||
Version: 4.0.9 | ||
Version: 4.0.9-4 | ||
Build-Depends: zlib, libjpeg-turbo, liblzma (windows) | ||
Description: A library that supports the manipulation of TIFF image files |
This file contains 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 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,24 @@ | ||
_find_package(${ARGS}) | ||
|
||
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static") | ||
set(TIFF_EXTRA_LIBRARIES) | ||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows") | ||
find_package(LibLZMA) | ||
list(APPEND TIFF_EXTRA_LIBRARIES ${LIBLZMA_LIBRARIES}) | ||
endif() | ||
|
||
find_package(JPEG) | ||
list(APPEND TIFF_EXTRA_LIBRARIES ${JPEG_LIBRARIES}) | ||
|
||
find_package(ZLIB) | ||
|
||
if(TARGET TIFF::TIFF) | ||
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${TIFF_EXTRA_LIBRARIES} ZLIB::ZLIB) | ||
endif() | ||
if(TIFF_LIBRARIES) | ||
list(APPEND TIFF_LIBRARIES ${TIFF_EXTRA_LIBRARIES} ${ZLIB_LIBRARIES}) | ||
if(UNIX) | ||
list(APPEND TIFF_LIBRARIES m) | ||
endif() | ||
endif() | ||
endif() |