Sanity-Settings.gmk revision 3767
3767N/A# Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. 0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A# This code is free software; you can redistribute it and/or modify it 0N/A# under the terms of the GNU General Public License version 2 only, as 2362N/A# published by the Free Software Foundation. Oracle designates this 0N/A# particular file as subject to the "Classpath" exception as provided 2362N/A# by Oracle in the LICENSE file that accompanied this code. 0N/A# This code is distributed in the hope that it will be useful, but WITHOUT 0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A# version 2 for more details (a copy is included in the LICENSE file that 0N/A# accompanied this code). 0N/A# You should have received a copy of the GNU General Public License version 0N/A# 2 along with this work; if not, write to the Free Software Foundation, 0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A# Shared sanity settings file. Fills in the variable ALL_SETTINGS. 0N/A# On Windows in particular, it can happen that quotes get into the PATH 0N/A# variable. This is very bad, and must be caught early or you can 0N/A# see errors like: sh: -c: line 0: syntax error near unexpected token 0N/A dummy1:=$(error ERROR: PATH variable contains single quotes, fix your PATH.) 0N/A# Used to add a heading to ALL_SETTINGS 0N/A# Used to add a line to ALL_SETTINGS for an optional value 0N/A# (need if test for windows which has issues with ; characters in values) 0N/Adefine addOptionalSetting 0N/A$(if $($1)," $1 = $($1)\n"," $1 = $($1)\n") 0N/A# Used to add a line to ALL_SETTINGS for something that must have a value 0N/Adefine addRequiredSetting 0N/A# Used to add a line to ALL_SETTINGS for something that must have a value 0N/Adefine addRequiredVersionSetting 0N/A$(if $($1)," $1 = $($1) [requires at least $(REQUIRED_$1)]\n",$(warning WARNING: $1 should not be empty [Sanity-Settings.gmk])) 0N/A# Used to add a series of lines to ALL_SETTINGS 0N/A" $1 = $($1)\n ALT_$1 = $(ALT_$1)\n" 0N/A# Variable that contains a string of all information 0N/A# Make sure this is a 'do it now' variable. 0N/AALL_SETTINGS:=$(call addHeading,Bootstrap Settings) 0N/AALL_SETTINGS+=$(call addAltSetting,BOOTDIR) 0N/AALL_SETTINGS+=$(call addRequiredVersionSetting,BOOT_VER) 0N/AALL_SETTINGS+=$(call addAltSetting,OUTPUTDIR) 0N/AALL_SETTINGS+=$(call addRequiredSetting,ABS_OUTPUTDIR) 0N/AALL_SETTINGS+=$(call addHeading,Build Tool Settings) 0N/AALL_SETTINGS+=$(call addAltSetting,SLASH_JAVA) 0N/AALL_SETTINGS+=$(call addRequiredSetting,VARIANT) 0N/AALL_SETTINGS+=$(call addAltSetting,JDK_DEVTOOLS_DIR) 0N/AALL_SETTINGS+=$(call addOptionalSetting,ANT_HOME) 0N/AALL_SETTINGS+=$(call addAltSetting,UNIXCOMMAND_PATH) 0N/AALL_SETTINGS+=$(call addAltSetting,COMPILER_PATH) 0N/AALL_SETTINGS+=$(call addAltSetting,DEVTOOLS_PATH) 0N/Aifeq ($(PLATFORM),linux) 0N/A ALL_SETTINGS+=$(call addAltSetting,UNIXCCS_PATH) 0N/A ALL_SETTINGS+=$(call addAltSetting,USRBIN_PATH) 0N/A ALL_SETTINGS+=$(call addAltSetting,GCC29_COMPILER_PATH) 0N/Aifeq ($(PLATFORM),solaris) 0N/A ALL_SETTINGS+=$(call addAltSetting,UNIXCCS_PATH) 0N/A ALL_SETTINGS+=$(call addAltSetting,GCC_COMPILER_PATH) 0N/Aifeq ($(PLATFORM),windows) 942N/A ifneq ($(MSVCRNN_DLL),) 795N/A ALL_SETTINGS+=$(call addAltSetting,MSVCRNN_DLL_PATH) 3258N/A ALL_SETTINGS+=$(call addRequiredSetting,INCLUDE) 3258N/A ALL_SETTINGS+=$(call addRequiredSetting,LIB) 0N/AALL_SETTINGS+=$(call addOptionalSetting,COMPILER_NAME) 0N/AALL_SETTINGS+=$(call addOptionalSetting,COMPILER_VERSION) 3767N/A ALL_SETTINGS+=$(call addRequiredVersionSetting,CC_VER) 3767N/A ALL_SETTINGS+=$(call addOptionalSetting,CC_VER) 0N/Aifeq ($(PLATFORM),solaris) 0N/A ifeq ($(ARCH_DATA_MODEL), 32) 0N/A ALL_SETTINGS+=$(call addRequiredVersionSetting,GCC_VER) 0N/AALL_SETTINGS+=$(call addRequiredVersionSetting,ZIP_VER) 0N/AALL_SETTINGS+=$(call addRequiredVersionSetting,UNZIP_VER) 0N/Aifeq ($(PLATFORM),windows) 0N/A ALL_SETTINGS+=$(call addRequiredVersionSetting,LINK_VER) 3419N/A ALL_SETTINGS+=$(call addRequiredSetting,CC) 3419N/A ALL_SETTINGS+=$(call addRequiredSetting,LINK) 3419N/A ALL_SETTINGS+=$(call addRequiredSetting,DUMPBIN) 0N/AALL_SETTINGS+=$(call addRequiredVersionSetting,ANT_VER) 0N/AALL_SETTINGS+=$(call addRequiredSetting,TEMPDIR) 0N/AALL_SETTINGS+=$(call addHeading,Build Directives) 0N/AALL_SETTINGS+=$(call addOptionalSetting,OPENJDK) 0N/AALL_SETTINGS+=$(call addOptionalSetting,USE_HOTSPOT_INTERPRETER_MODE) 0N/AALL_SETTINGS+=$(call addOptionalSetting,PEDANTIC) 0N/AALL_SETTINGS+=$(call addOptionalSetting,DEV_ONLY) 0N/AALL_SETTINGS+=$(call addOptionalSetting,NO_DOCS) 0N/AALL_SETTINGS+=$(call addOptionalSetting,NO_IMAGES) 0N/AALL_SETTINGS+=$(call addOptionalSetting,TOOLS_ONLY) 0N/AALL_SETTINGS+=$(call addOptionalSetting,INSANE) 0N/AALL_SETTINGS+=$(call addRequiredSetting,COMPILE_APPROACH) 0N/Aifeq ($(COMPILE_APPROACH), parallel) 0N/A ALL_SETTINGS+=$(call addAltSetting,PARALLEL_COMPILE_JOBS) 0N/AALL_SETTINGS+=$(call addOptionalSetting,FASTDEBUG) 0N/AALL_SETTINGS+=$(call addRequiredSetting,COMPILER_WARNINGS_FATAL) 0N/AALL_SETTINGS+=$(call addOptionalSetting,COMPILER_WARNING_LEVEL) 3262N/AALL_SETTINGS+=$(call addOptionalSetting,SHOW_ALL_WARNINGS) 0N/AALL_SETTINGS+=$(call addRequiredSetting,INCREMENTAL_BUILD) 0N/AALL_SETTINGS+=$(call addOptionalSetting,CC_HIGHEST_OPT) 0N/AALL_SETTINGS+=$(call addOptionalSetting,CC_HIGHER_OPT) 0N/AALL_SETTINGS+=$(call addOptionalSetting,CC_LOWER_OPT) 0N/AALL_SETTINGS+=$(call addOptionalSetting,CXXFLAGS) 0N/AALL_SETTINGS+=$(call addOptionalSetting,CFLAGS) 0N/AALL_SETTINGS+=$(call addOptionalSetting,BOOT_JAVA_CMD) 0N/AALL_SETTINGS+=$(call addOptionalSetting,BOOT_JAVAC_CMD) 0N/AALL_SETTINGS+=$(call addOptionalSetting,BOOT_JAR_CMD) 0N/AALL_SETTINGS+=$(call addOptionalSetting,BOOT_JARSIGNER_CMD)