summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2013-05-02 08:35:46 -0700
committerAndras Timar <atimar@suse.com>2013-05-02 18:58:36 +0200
commitae3f7b70a84f330f76e2e60c4c6bc8c69dbf068f (patch)
tree8168690a665de02d8381feef888bc4207854642d /extensions
parent520fd4968d776218f69b76b6a31876c217fb491b (diff)
fdo#54087 link the correct resource file to npsoplugin.dll
I had to add a new function to gbuild system: set_nativeres, because the trick in extensions/Library_npsoplugin.mk did not work. It linked the default.res, and that made the plugin unusable under Windows. Also, one export was missing compared to LibreOffice 3.5. Conflicts: extensions/Library_npsoplugin.mk extensions/WinResTarget_npsoplugin.mk Change-Id: Ib91fa2a3b72b15912587f22becccb0aebc2aa390
Diffstat (limited to 'extensions')
-rw-r--r--extensions/Library_npsoplugin.mk9
-rw-r--r--extensions/WinResTarget_npsoplugin.mk4
2 files changed, 5 insertions, 8 deletions
diff --git a/extensions/Library_npsoplugin.mk b/extensions/Library_npsoplugin.mk
index 9cf30c997c18..b74d6baaa9fd 100644
--- a/extensions/Library_npsoplugin.mk
+++ b/extensions/Library_npsoplugin.mk
@@ -78,6 +78,8 @@ $(eval $(call gb_Library_add_defs,npsoplugin,\
ifeq ($(COM),MSC)
$(eval $(call gb_Library_add_ldflags,npsoplugin,\
/EXPORT:NPP_GetMIMEDescription \
+ /EXPORT:NPP_Initialize \
+ /EXPORT:NPP_Shutdown \
/EXPORT:NPP_New \
/EXPORT:NPP_Destroy \
/EXPORT:NPP_SetWindow \
@@ -88,7 +90,6 @@ $(eval $(call gb_Library_add_ldflags,npsoplugin,\
/EXPORT:NPP_StreamAsFile \
/EXPORT:NPP_URLNotify \
/EXPORT:NPP_Print \
- /EXPORT:NPP_Shutdown \
/EXPORT:NP_GetEntryPoints \
/EXPORT:NP_Initialize \
/EXPORT:NP_Shutdown \
@@ -96,11 +97,7 @@ $(eval $(call gb_Library_add_ldflags,npsoplugin,\
))
endif
-# Trick to get rid of the default.res to avoid duplicate VERSION
-# resource: Set NATIVERES for npsoplugin to be *only* nsplugin_oo
-
-$(eval $(call gb_LinkTarget_get_target,npsoplugin) : $(call gb_WinResTarget_get_target,nsplugin_oo))
-$(eval $(call gb_LinkTarget_get_target,npsoplugin) : NATIVERES := $(call gb_WinResTarget_get_target,nsplugin_oo))
+$(eval $(call gb_Library_set_nativeres,npsoplugin,npsoplugin/npsoplugin))
endif # GUI=WNT
diff --git a/extensions/WinResTarget_npsoplugin.mk b/extensions/WinResTarget_npsoplugin.mk
index 30bf3db0b29a..cc92638d49f9 100644
--- a/extensions/WinResTarget_npsoplugin.mk
+++ b/extensions/WinResTarget_npsoplugin.mk
@@ -9,8 +9,8 @@
#
#
-$(eval $(call gb_WinResTarget_WinResTarget,nsplugin_oo))
+$(eval $(call gb_WinResTarget_WinResTarget,npsoplugin/npsoplugin))
-$(eval $(call gb_WinResTarget_set_rcfile,nsplugin_oo,extensions/source/nsplugin/source/nsplugin_oo))
+$(eval $(call gb_WinResTarget_set_rcfile,npsoplugin/npsoplugin,extensions/source/nsplugin/source/nsplugin_oo))
# vim:set noet sw=4 ts=4: