diff options
author | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-08-10 14:06:21 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-08-10 14:07:15 +0200 |
commit | df8b2883727ddc338cace998b28bdce527e544ba (patch) | |
tree | 08fc1bd11210a33939a173c2df186b805d04c967 /solenv/gbuild/JavaClassSet.mk | |
parent | 18602dd206213fef58a801724afef0aa8a81b932 (diff) |
gbuild: added -g option to javac when building with debug symbols
Diffstat (limited to 'solenv/gbuild/JavaClassSet.mk')
-rw-r--r-- | solenv/gbuild/JavaClassSet.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/solenv/gbuild/JavaClassSet.mk b/solenv/gbuild/JavaClassSet.mk index 6d8f6a4557c5..6276554fe654 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)),\ |