aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/poppler/export-unofficial-poppler.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/poppler/export-unofficial-poppler.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/poppler/export-unofficial-poppler.patch')
-rw-r--r--vcpkg/ports/poppler/export-unofficial-poppler.patch93
1 files changed, 93 insertions, 0 deletions
diff --git a/vcpkg/ports/poppler/export-unofficial-poppler.patch b/vcpkg/ports/poppler/export-unofficial-poppler.patch
new file mode 100644
index 0000000..4f74013
--- /dev/null
+++ b/vcpkg/ports/poppler/export-unofficial-poppler.patch
@@ -0,0 +1,93 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 81f5ed6..9fb059e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -623,7 +623,12 @@ if(MSVC)
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS)
+ endif()
+ add_library(poppler ${poppler_SRCS} ${LINKER_SCRIPT})
+-target_include_directories(poppler PUBLIC poppler ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/poppler)
++target_include_directories(poppler PUBLIC
++ $<INSTALL_INTERFACE:include/poppler>
++ $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/poppler>
++ $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}>
++ $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
++ $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/poppler>)
+ if (OpenJPEG_FOUND)
+ # check if we can remove this when we depend on newer openjpeg versions, 2.5 seems fixed
+ # target openjp2 may lack interface include directories
+@@ -663,9 +668,16 @@ if(MINGW AND BUILD_SHARED_LIBS)
+ set_target_properties(poppler PROPERTIES SUFFIX "-${POPPLER_SOVERSION}${CMAKE_SHARED_LIBRARY_SUFFIX}")
+ endif()
+ target_link_libraries(poppler LINK_PRIVATE ${poppler_LIBS})
+-install(TARGETS poppler RUNTIME DESTINATION bin LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(TARGETS poppler EXPORT unofficial-poppler-targets
++ RUNTIME DESTINATION bin LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(EXPORT unofficial-poppler-targets NAMESPACE unofficial::poppler:: DESTINATION share/unofficial-poppler)
++set_target_properties(poppler PROPERTIES EXPORT_NAME poppler-private)
+
+ if(ENABLE_UNSTABLE_API_ABI_HEADERS)
++ target_include_directories(poppler PUBLIC
++ $<INSTALL_INTERFACE:include/poppler/fofi>
++ $<INSTALL_INTERFACE:include/poppler/goo>
++ )
+ set(poppler_poppler_installed_headers
+ poppler/Annot.h
+ poppler/AnnotStampImageHelper.h
+@@ -785,7 +797,7 @@ if(ENABLE_UNSTABLE_API_ABI_HEADERS)
+ set(poppler_goo_installed_headers ${poppler_goo_installed_headers} goo/JpegWriter.h)
+ endif()
+
+- if (${CMAKE_VERSION} VERSION_LESS "3.23.0")
++ if (1)
+ install(FILES
+ ${poppler_poppler_installed_headers}
+ ${CMAKE_CURRENT_BINARY_DIR}/poppler/poppler-config.h
+diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
+index b38814c..303dbba 100644
+--- a/cpp/CMakeLists.txt
++++ b/cpp/CMakeLists.txt
+@@ -31,7 +31,9 @@ if(MINGW AND BUILD_SHARED_LIBS)
+ set_target_properties(poppler-cpp PROPERTIES SUFFIX "-${POPPLER_CPP_SOVERSION}${CMAKE_SHARED_LIBRARY_SUFFIX}")
+ endif()
+ target_link_libraries(poppler-cpp poppler Iconv::Iconv)
+-install(TARGETS poppler-cpp RUNTIME DESTINATION bin LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(TARGETS poppler-cpp EXPORT unofficial-poppler-cpp-targets
++ RUNTIME DESTINATION bin LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(EXPORT unofficial-poppler-cpp-targets NAMESPACE unofficial::poppler:: DESTINATION share/unofficial-poppler)
+
+ set(poppler_cpp_all_install_headers
+ poppler-destination.h
+@@ -50,7 +52,7 @@ set(poppler_cpp_all_install_headers
+ ${CMAKE_CURRENT_BINARY_DIR}/poppler-version.h
+ )
+
+-if (${CMAKE_VERSION} VERSION_LESS "3.23.0")
++if (1)
+ install(FILES ${poppler_cpp_all_install_headers} DESTINATION include/poppler/cpp)
+ else()
+ target_sources(poppler-cpp
+diff --git a/qt6/src/CMakeLists.txt b/qt6/src/CMakeLists.txt
+index 1062058..848434c 100644
+--- a/qt6/src/CMakeLists.txt
++++ b/qt6/src/CMakeLists.txt
+@@ -47,7 +47,9 @@ if(USE_CMS)
+ target_link_libraries(poppler-qt6 poppler ${LCMS2_LIBRARIES})
+ target_include_directories(poppler-qt6 SYSTEM PRIVATE ${LCMS2_INCLUDE_DIR})
+ endif()
+-install(TARGETS poppler-qt6 RUNTIME DESTINATION bin LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(TARGETS poppler-qt6 EXPORT unofficial-poppler-qt6-targets
++ RUNTIME DESTINATION bin LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
++install(EXPORT unofficial-poppler-qt6-targets NAMESPACE unofficial::poppler:: DESTINATION share/unofficial-poppler)
+
+ set(poppler_qt6_all_install_headers
+ poppler-qt6.h
+@@ -61,7 +63,7 @@ set(poppler_qt6_all_install_headers
+ ${CMAKE_CURRENT_BINARY_DIR}/poppler-export.h
+ ${CMAKE_CURRENT_BINARY_DIR}/poppler-version.h
+ )
+-if (${CMAKE_VERSION} VERSION_LESS "3.23.0")
++if (1)
+ install(FILES ${poppler_qt6_all_install_headers} DESTINATION include/poppler/qt6)
+ else()
+ target_sources(poppler-qt6