mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 04:47:59 +08:00
[tiff] Add support for jpeg, lzma, and glut. Add c++ support.
This commit is contained in:
parent
3ff95e2a76
commit
986ed6b918
@ -1,4 +1,4 @@
|
||||
Source: tiff
|
||||
Version: 4.0.6-2
|
||||
Build-Depends: zlib
|
||||
Description: A library that supports the manipulation of TIFF image files
|
||||
Version: 4.0.6-3
|
||||
Build-Depends: zlib, libjpeg-turbo, liblzma, freeglut
|
||||
Description: A library that supports the manipulation of TIFF image files
|
||||
|
23
ports/tiff/fix-cxx-shared-libs.patch
Normal file
23
ports/tiff/fix-cxx-shared-libs.patch
Normal file
@ -0,0 +1,23 @@
|
||||
From 4370dea04189fb9d9a94e1f4ee96ef2d24937fc9 Mon Sep 17 00:00:00 2001
|
||||
From: Mikhail Paulyshka <me@mixaill.tk>
|
||||
Date: Thu, 23 Mar 2017 17:55:14 +0300
|
||||
Subject: [PATCH] fix shared libs building
|
||||
|
||||
---
|
||||
libtiff/CMakeLists.txt | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/libtiff/CMakeLists.txt b/libtiff/CMakeLists.txt
|
||||
index 087dfa9..20fa8b4 100644
|
||||
--- a/libtiff/CMakeLists.txt
|
||||
+++ b/libtiff/CMakeLists.txt
|
||||
@@ -142,6 +142,7 @@ if(cxx)
|
||||
add_library(tiffxx ${tiffxx_SOURCES} ${tiffxx_HEADERS})
|
||||
target_link_libraries(tiffxx tiff)
|
||||
set_target_properties(tiffxx PROPERTIES SOVERSION ${SO_COMPATVERSION})
|
||||
+ set_target_properties(tiffxx PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
if(NOT CYGWIN)
|
||||
# This property causes shared libraries on Linux to have the full version
|
||||
# encoded into their final filename. We disable this on Cygwin because
|
||||
--
|
||||
2.11.0.windows.1
|
@ -10,17 +10,20 @@ vcpkg_extract_source_archive(${ARCHIVE})
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/add-component-options.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/fix-uwp.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/fix-uwp.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/fix-cxx-shared-libs.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-Dcxx=OFF
|
||||
-DBUILD_TOOLS=OFF
|
||||
-DBUILD_DOCS=OFF
|
||||
-DBUILD_CONTRIB=OFF
|
||||
-DBUILD_TESTS=OFF
|
||||
-Djbig=OFF # This is disabled by default due to GPL/Proprietary licensing.
|
||||
-Djpeg12=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
Loading…
x
Reference in New Issue
Block a user