diff options
author | David Tardon <dtardon@redhat.com> | 2011-07-25 10:34:22 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-07-25 10:34:22 +0200 |
commit | 785e1d92052b416df04025391a265e2d7db16fbc (patch) | |
tree | a96307d4d5f72ddeb15b49dcc86d847ccc3869cc /RepositoryExternal.mk | |
parent | ca73c8e41b216d1f4fc87038c37efef085d5ac28 (diff) |
cppunit can be system
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r-- | RepositoryExternal.mk | 26 |
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) |