summaryrefslogtreecommitdiff
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-07-25 10:34:22 +0200
committerDavid Tardon <dtardon@redhat.com>2011-07-25 10:34:22 +0200
commit785e1d92052b416df04025391a265e2d7db16fbc (patch)
treea96307d4d5f72ddeb15b49dcc86d847ccc3869cc /RepositoryExternal.mk
parentca73c8e41b216d1f4fc87038c37efef085d5ac28 (diff)
cppunit can be system
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r--RepositoryExternal.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index cc6c36e163b6..791c5d576702 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -35,6 +35,32 @@
# in the system case, no libraries should be registered, but the target-local
# variable LIBS should be set to FOO_LIBS, and INCLUDES to FOO_CFLAGS.
+ifeq ($(SYSTEM_CPPUNIT),YES)
+
+define gb_LinkTarget__use_cppunit
+$(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+ $(CPPUNIT_CFLAGS) \
+)
+
+$(call gb_LinkTarget_add_libs,$(1),\
+ $(CPPUNIT_LIBS) \
+)
+endef
+
+else
+
+$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO,\
+ cppunit \
+))
+
+define gb_LinkTarget__use_cppunit
+$(call gb_LinkTarget_add_linked_libs,$(1),\
+ cppunit \
+)
+endef
+
+endif
ifeq ($(SYSTEM_ZLIB),YES)