[PATCH] vcl: consolidate common objects in Library_vcl.mk
Riccardo Magliocchetti
riccardo.magliocchetti at gmail.com
Fri Feb 17 08:42:07 PST 2012
Store objects from vcl/generic and vcl/headless in a couple of
variables so we don't need to repeat the quite long list for every
target that uses them.
---
vcl/Library_vcl.mk | 64 ++++++++++++++++++++-------------------------------
1 files changed, 25 insertions(+), 39 deletions(-)
diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk
index c21a3d4..fa00922 100644
--- a/vcl/Library_vcl.mk
+++ b/vcl/Library_vcl.mk
@@ -394,13 +394,7 @@ $(eval $(call gb_Library_use_externals,vcl,\
))
endif
-ifeq ($(GUIBASE),unx)
-$(eval $(call gb_Library_add_defs,vcl,\
- -DSAL_DLLPREFIX=\"$(gb_Library_SYSPRE)\" \
- -DSAL_DLLPOSTFIX=\"$(gb_Library_OOOEXT)\" \
- -D_XSALSET_LIBNAME=\"$(call gb_Library_get_runtime_filename,spa)\" \
-))
-$(eval $(call gb_Library_add_exception_objects,vcl,\
+VCL_GENERIC_OBJECTS := \
vcl/generic/app/gensys \
vcl/generic/app/geninst \
vcl/generic/app/gendisp \
@@ -421,7 +415,28 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\
vcl/generic/fontmanager/fontconfig \
vcl/generic/fontmanager/fontmanager \
vcl/generic/fontmanager/helper \
- vcl/generic/fontmanager/parseAFM \
+ vcl/generic/fontmanager/parseAFM
+
+VCL_HEADLESS_OBJECTS := \
+ vcl/headless/svpbmp \
+ vcl/headless/svpdummies \
+ vcl/headless/svpelement \
+ vcl/headless/svpframe \
+ vcl/headless/svpgdi \
+ vcl/headless/svpinst \
+ vcl/headless/svpdata \
+ vcl/headless/svpprn \
+ vcl/headless/svptext \
+ vcl/headless/svpvd
+
+ifeq ($(GUIBASE),unx)
+$(eval $(call gb_Library_add_defs,vcl,\
+ -DSAL_DLLPREFIX=\"$(gb_Library_SYSPRE)\" \
+ -DSAL_DLLPOSTFIX=\"$(gb_Library_OOOEXT)\" \
+ -D_XSALSET_LIBNAME=\"$(call gb_Library_get_runtime_filename,spa)\" \
+))
+$(eval $(call gb_Library_add_exception_objects,vcl,\
+ $(VCL_GENERIC_OBJECTS) \
vcl/unx/generic/plugadapt/salplug \
vcl/unx/generic/printer/cupsmgr \
vcl/unx/generic/printer/jobdata \
@@ -447,41 +462,12 @@ $(eval $(call gb_Library_add_defs,vcl,\
-D_XSALSET_LIBNAME=\"$(call gb_Library_get_runtime_filename,spa)\" \
))
$(eval $(call gb_Library_add_exception_objects,vcl,\
- vcl/generic/app/gensys \
- vcl/generic/app/geninst \
- vcl/generic/app/gendisp \
- vcl/generic/print/bitmap_gfx \
- vcl/generic/print/common_gfx \
- vcl/generic/print/glyphset \
- vcl/generic/print/printerjob \
- vcl/generic/print/psputil \
- vcl/generic/print/genpspgraphics \
- vcl/generic/print/genprnpsp \
- vcl/generic/print/text_gfx \
- vcl/generic/fontmanager/fontsubst \
- vcl/generic/glyphs/gcach_ftyp \
- vcl/generic/glyphs/gcach_layout \
- vcl/generic/glyphs/gcach_rbmp \
- vcl/generic/glyphs/glyphcache \
- vcl/generic/fontmanager/fontcache \
- vcl/generic/fontmanager/fontconfig \
- vcl/generic/fontmanager/fontmanager \
- vcl/generic/fontmanager/helper \
- vcl/generic/fontmanager/parseAFM \
+ $(VCL_GENERIC_OBJECTS) \
vcl/unx/generic/printer/jobdata \
vcl/unx/generic/printer/ppdparser \
vcl/null/printerinfomanager \
vcl/android/androidinst \
- vcl/headless/svpbmp \
- vcl/headless/svpdummies \
- vcl/headless/svpelement \
- vcl/headless/svpframe \
- vcl/headless/svpgdi \
- vcl/headless/svpinst \
- vcl/headless/svpdata \
- vcl/headless/svpprn \
- vcl/headless/svptext \
- vcl/headless/svpvd \
+ $(VCL_HEADLESS_OBJECTS) \
))
$(eval $(call gb_Library_add_linked_libs,vcl,\
--
1.7.5.4
--------------060605080309040803090100--
More information about the LibreOffice
mailing list