[Libreoffice-commits] .: solenv/gbuild

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Wed Aug 10 05:07:24 PDT 2011


 solenv/gbuild/JavaClassSet.mk |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit df8b2883727ddc338cace998b28bdce527e544ba
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date:   Wed Aug 10 14:06:21 2011 +0200

    gbuild: added -g option to javac when building with debug symbols

diff --git a/solenv/gbuild/JavaClassSet.mk b/solenv/gbuild/JavaClassSet.mk
index 6d8f6a4..6276554 100644
--- a/solenv/gbuild/JavaClassSet.mk
+++ b/solenv/gbuild/JavaClassSet.mk
@@ -28,11 +28,17 @@
 
 gb_JavaClassSet_REPOSITORYNAMES := $(gb_Helper_REPOSITORYNAMES)
 gb_JavaClassSet_JAVACCOMMAND := $(JAVACOMPILER)
+gb_JavaClassSet_JAVACDEBUG :=
+
+ifneq ($(gb_DEBUGLEVEL),0),-g)
+gb_JavaClassSet_JAVACDEBUG := -g
+endif
 
 define gb_JavaClassSet__command
 $(call gb_Helper_abbreviate_dirs_native,\
 	mkdir -p $(dir $(1)) && \
 	$(if $(3),$(gb_JavaClassSet_JAVACCOMMAND) \
+		$(gb_JavaClassSet_JAVACDEBUG) \
 		-cp "$(CLASSPATH)" \
 		-d $(call gb_JavaClassSet_get_classdir,$(2)) \
 		$(if $(filter-out $(JARDEPS),$(3)),\


More information about the Libreoffice-commits mailing list