diff make/common/shared/Sanity.gmk @ 1214:c06d30bd8c69

6841728: Make building the Nimbus L 'n' F optional (100054) Summary: Add DISABLE_NIMBUS variable to prevent Nimbus subdirs being built Reviewed-by: mr, ohair
author andrew
date Thu, 21 May 2009 16:29:58 +0100
parents 4b922e8fef3b
children 0c3ef2d612a4
line wrap: on
line diff
--- a/make/common/shared/Sanity.gmk	Mon May 18 10:36:38 2009 -0700
+++ b/make/common/shared/Sanity.gmk	Thu May 21 16:29:58 2009 +0100
@@ -1502,6 +1502,9 @@
 # JIBX_LIBS_PATH must be valid
 ######################################################
 sane-jibx:
+ifdef DISABLE_NIMBUS	
+	$(call SanityWarning,Disabling Nimbus will remove public API in javax.swing.plaf.nimbus.)
+else
 	@if [ ! -r $(subst \,/,$(JIBX_LIBS_PATH))/jibx-run.jar ]; then \
 	  $(ECHO) "ERROR: You do not have access to valid JIBX library files. \n" \
 	    "      Please check your access to \n" \
@@ -1509,6 +1512,7 @@
 	    "      and/or check your value of ALT_JDK_DEVTOOLS_DIR, ALT_JIBX_LIBS_PATH \n" \
 	    "" >> $(ERROR_FILE) ; \
 	fi
+endif
 
 ######################################################
 # MOZILLA_HEADERS_PATH must be valid