aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libharu/export-targets.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/libharu/export-targets.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libharu/export-targets.patch')
-rw-r--r--vcpkg/ports/libharu/export-targets.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/vcpkg/ports/libharu/export-targets.patch b/vcpkg/ports/libharu/export-targets.patch
new file mode 100644
index 0000000..fab3e5b
--- /dev/null
+++ b/vcpkg/ports/libharu/export-targets.patch
@@ -0,0 +1,32 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index b87af66..10ec58f 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -87,9 +87,26 @@ if(UNIX AND NOT APPLE)
+ target_link_libraries (hpdf ${M_LIB})
+ endif()
+
++if(LIBHPDF_SHARED)
++ if(WIN32 AND NOT CYGWIN)
++ set_target_properties(hpdf PROPERTIES DEFINE_SYMBOL HPDF_DLL_MAKE)
++ endif()
++endif()
++
++target_include_directories(hpdf PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
++
++add_library(haru INTERFACE)
++set_property(TARGET haru APPEND PROPERTY INTERFACE_LINK_LIBRARIES hpdf)
++
+ install(
+- TARGETS hpdf
++ TARGETS hpdf haru
++ EXPORT unofficial-libharu-config
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ )
++
++install(EXPORT unofficial-libharu-config
++ NAMESPACE unofficial::libharu::
++ DESTINATION share/unofficial-libharu
++)