summaryrefslogtreecommitdiff
path: root/unotools/Library_utl.mk
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/Library_utl.mk')
-rw-r--r--unotools/Library_utl.mk21
1 files changed, 17 insertions, 4 deletions
diff --git a/unotools/Library_utl.mk b/unotools/Library_utl.mk
index b77a8ebb6826..75c5ab1f5953 100644
--- a/unotools/Library_utl.mk
+++ b/unotools/Library_utl.mk
@@ -25,20 +25,31 @@
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
+# declare a library
+# utl is the name of the library as it is found in Repository.mk
$(eval $(call gb_Library_Library,utl))
+# declare packages that will be delivered before compilation of utl
+# learn more about TYPE in the Package.mk template
$(eval $(call gb_Library_add_package_headers,utl,unotools_inc))
+# for platforms supporting PCH: declare the location of the pch file
+# this is the name of the cxx file (without extension)
$(eval $(call gb_Library_add_precompiled_header,utl,$(SRCDIR)/unotools/inc/pch/precompiled_unotools))
+# in case UNO services are exported: declare location of component file
+$(eval $(call gb_Library_set_componentfile,utl,unotools/util/utl))
+
+# add any additional include paths for this library here
$(eval $(call gb_Library_set_include,utl,\
$$(INCLUDE) \
-I$(realpath $(SRCDIR)/unotools/inc/pch) \
-I$(OUTDIR)/inc \
))
-$(eval $(call gb_Library_set_defs,utl,\
- $$(DEFS) \
+# add any additional definitions to be set for compilation here
+# (e.g. -DLIB_DLLIMPLEMENTATION)
+$(eval $(call gb_Library_add_defs,utl,\
-DUNOTOOLS_DLLIMPLEMENTATION \
))
@@ -47,6 +58,8 @@ $(eval $(call gb_Library_add_api,utl,\
udkapi \
))
+# add libraries to be linked to utl; again these names need to be given as
+# specified in Repository.mk
$(eval $(call gb_Library_add_linked_libs,utl,\
comphelper \
cppu \
@@ -59,8 +72,8 @@ $(eval $(call gb_Library_add_linked_libs,utl,\
$(gb_STDLIBS) \
))
-$(eval $(call gb_Library_set_componentfile,utl,unotools/util/utl))
-
+# add all source files that shall be compiled with exceptions enabled
+# the name is relative to $(SRCROOT) and must not contain an extension
$(eval $(call gb_Library_add_exception_objects,utl,\
unotools/source/accessibility/accessiblerelationsethelper \
unotools/source/accessibility/accessiblestatesethelper \