[pango] fix exports

This commit is contained in:
codicodi 2017-05-04 17:47:22 +02:00
parent e6a47f5c6a
commit 61a5a8a943
3 changed files with 5 additions and 16 deletions

View File

@ -1,21 +1,12 @@
From 9e7d3a6ea06e1fb661e0aa4b60c6efa9a5684d9d Mon Sep 17 00:00:00 2001
From: Mikhail Paulyshka <me@mixaill.tk>
Date: Sat, 29 Apr 2017 21:28:12 +0300
Subject: [PATCH] do not use dllexport for static build
---
config.h.win32 | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/config.h.win32 b/config.h.win32
index 31b330f..e25b5d8 100644
index 31b330f..e5ed86c 100644
--- a/config.h.win32
+++ b/config.h.win32
@@ -147,7 +147,11 @@
/* defines how to decorate public symbols while building */
#ifdef _MSC_VER
+#ifdef _WINDLL
+#ifdef PANGO_EXPORTS
#define _PANGO_EXTERN __declspec(dllexport) extern
#else
+#define _PANGO_EXTERN extern
@ -23,6 +14,3 @@ index 31b330f..e25b5d8 100644
+#else
#define _PANGO_EXTERN __attribute__((visibility("default"))) __declspec(dllexport) extern
#endif
--
2.11.0.windows.1

View File

@ -58,7 +58,8 @@ macro(pango_add_module MODULE_NAME)
G_LOG_DOMAIN="Pango" PANGO_ENABLE_BACKEND PANGO_ENABLE_ENGINE
G_DISABLE_SINGLE_INCLUDES SYSCONFDIR="/dummy/etc" LIBDIR="/dummy/lib")
target_compile_definitions(${MODULE_NAME} PRIVATE HAVE_CAIRO_FREETYPE=1)
set_target_properties(${MODULE_NAME} PROPERTIES
set_target_properties(${MODULE_NAME} PROPERTIES
DEFINE_SYMBOL PANGO_EXPORTS
OUTPUT_NAME ${MODULE_NAME}-${PANGO_DLL_SUFFIX}
ARCHIVE_OUTPUT_NAME ${MODULE_NAME}-${PANGO_LIB_SUFFIX})
install(TARGETS ${MODULE_NAME} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)

View File

@ -1,4 +1,4 @@
Source: pango
Version: 1.40.5-1
Version: 1.40.5-2
Description: Text and font handling library.
Build-Depends: glib, gettext, cairo, fontconfig, freetype, harfbuzz