summaryrefslogtreecommitdiff
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-12-23 12:21:19 +0100
committerDavid Tardon <dtardon@redhat.com>2011-12-23 12:21:19 +0100
commit3446cda18dd484bd3fe8f14e3ee0a9081e902430 (patch)
tree2256cb2cb4eddad087e81b3600a80e698dc644e2 /RepositoryExternal.mk
parentdfbf0cabfa8310502e19642d56c746cc0d454d27 (diff)
gbuildize jvmfwk
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r--RepositoryExternal.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 11896cd801d8..88366d9dbf57 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -901,6 +901,29 @@ endef
endif # SYSTEM_CURL
+ifneq ($(VALGRIND_CFLAGS),)
+
+define gb_LinkTarget__use_valgrind
+$(call gb_LinkTarget_add_defs,$(1),\
+ -DHAVE_VALGRIND_H \
+)
+
+$(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+ $(VALGRIND_CFLAGS) \
+)
+
+endef
+
+else # !VALGRIND_CFLAGS
+
+define gb_LinkTarget__use_valgrind
+
+endef
+
+endif # VALGRIND_CFLAGS
+
+
# MacOSX-only frameworks ############################################
# (in alphabetical order)