From 69d46dd7a6adfffd71da055bb65108c80d27395f Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Sat, 7 Apr 2012 18:37:50 +0200 Subject: do not include contents of huge sc/sd/sw libs into tiny unittests This decreases debug build dir size by about 0.5G for gcc and 1G for clang. --- sw/CppunitTest_sw_swdoc_test.mk | 3 +-- sw/inc/docufld.hxx | 2 +- sw/inc/swdll.hxx | 3 ++- sw/inc/swscanner.hxx | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) (limited to 'sw') diff --git a/sw/CppunitTest_sw_swdoc_test.mk b/sw/CppunitTest_sw_swdoc_test.mk index 164ddaaaf115..34d32f9c2889 100644 --- a/sw/CppunitTest_sw_swdoc_test.mk +++ b/sw/CppunitTest_sw_swdoc_test.mk @@ -34,8 +34,6 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sw_swdoc_test, \ sw/qa/core/Test-BigPtrArray \ )) -$(eval $(call gb_CppunitTest_add_library_objects,sw_swdoc_test,sw)) - $(eval $(call gb_CppunitTest_add_linked_libs,sw_swdoc_test, \ avmedia \ basegfx \ @@ -58,6 +56,7 @@ $(eval $(call gb_CppunitTest_add_linked_libs,sw_swdoc_test, \ svt \ svx \ svxcore \ + sw \ swd \ test \ tk \ diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx index b110d681edeb..f2ed7f6419d1 100644 --- a/sw/inc/docufld.hxx +++ b/sw/inc/docufld.hxx @@ -229,7 +229,7 @@ public: Filename --------------------------------------------------------------------*/ -class SwFileNameFieldType : public SwFieldType +class SW_DLLPUBLIC SwFileNameFieldType : public SwFieldType { SwDoc *pDoc; public: diff --git a/sw/inc/swdll.hxx b/sw/inc/swdll.hxx index 154f67062b8d..6f4bde8ff3c9 100644 --- a/sw/inc/swdll.hxx +++ b/sw/inc/swdll.hxx @@ -30,6 +30,7 @@ #include #include +#include "swdllapi.h" namespace sw { class Filters; } @@ -40,7 +41,7 @@ namespace sw { class Filters; } */ namespace SwGlobals { - void ensure(); + SW_DLLPUBLIC void ensure(); sw::Filters & getFilters(); } diff --git a/sw/inc/swscanner.hxx b/sw/inc/swscanner.hxx index d1c6fe91e10f..1bec6c2b7fb0 100644 --- a/sw/inc/swscanner.hxx +++ b/sw/inc/swscanner.hxx @@ -30,6 +30,7 @@ #include #include +#include "swdllapi.h" class SwTxtNode; @@ -39,7 +40,7 @@ class SwTxtNode; * nacheinander zur Verfuegung stellt. *************************************************************************/ -class SwScanner +class SW_DLLPUBLIC SwScanner { rtl::OUString aWord; const SwTxtNode& rNode; -- cgit