1 # 2 # Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 # 5 # This code is free software; you can redistribute it and/or modify it 6 # under the terms of the GNU General Public License version 2 only, as 7 # published by the Free Software Foundation. Oracle designates this 8 # particular file as subject to the "Classpath" exception as provided 9 # by Oracle in the LICENSE file that accompanied this code. 10 # 11 # This code is distributed in the hope that it will be useful, but WITHOUT 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 # version 2 for more details (a copy is included in the LICENSE file that 15 # accompanied this code). 16 # 17 # You should have received a copy of the GNU General Public License version 18 # 2 along with this work; if not, write to the Free Software Foundation, 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 # 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 # 25 26 # 27 # WARNING: This file is shared with other workspaces. 28 # 29 30 # This file needs these set: CC_VERSION, PLATFORM, ARCH_FAMILY, and ARCH_DATA_MODEL. 31 32 ########################################################################## 33 # 34 # List of JDK official minimum, expected, or required versions: 35 # 36 # REQUIRED_ALSA_VERSION 37 # Linux only: The ALSA sound library version expected. 38 # 39 # REQUIRED_ANT_VER 40 # The minimum 'ant' version. 41 # 42 # REQUIRED_BOOT_VER 43 # The minimum boot jdk version. 44 # 45 # REQUIRED_CC_VER 46 # The primary C compiler version expected. 47 # 48 # REQUIRED_COMPILER_NAME 49 # The long descriptive name of the compiler we should use 50 # 51 # REQUIRED_COMPILER_VERSION 52 # The one word name that identifies the compilers being used. 53 # 54 # REQUIRED_CYGWIN_VER 55 # Windows only: If CYGWIN is used, the minimum CYGWIN version. 56 # 57 # REQUIRED_DXSDK_VER 58 # Windows only: The version of DirectX SDK expected. 59 # 60 # REQUIRED_FREE_SPACE 61 # The minimum disk space needed as determined by running 'du -sk' on a fully 62 # built workspace. 63 # 64 # REQUIRED_FREETYPE_VERSION 65 # If we are using freetype, the freetype version expected. 66 # 67 # REQUIRED_GCC_VER 68 # Solaris and Linux only. The required version of gcc/g++ for the plugin. 69 # 70 # REQUIRED_LINK_VER 71 # Windows only: The version of link.exe expected. 72 # 73 # REQUIRED_MAKE_VER 74 # The minimum version of GNU make. 75 # 76 # REQUIRED_MKS_VER 77 # Windows only: If MKS used instead of CYGWIN, the minimum version of MKS. 78 # 79 # REQUIRED_OS_VARIANT_NAME 80 # The OS variation name required. 81 # Solaris: Solaris or OpenSolaris 82 # Windows: Windows2000, WindowsXP, Windows2003, etc. 83 # Linux: Fedora, RedHat, SuSE, Ubuntu, etc. 84 # 85 # REQUIRED_OS_VARIANT_VERSION 86 # The version number associated with the above OS variant name. 87 # Solaris: output of uname -r 88 # Windows: 5.0 for Windows2000, 5.1 for WindowsXP, 5.2 for Windows2003, etc. 89 # Linux: number for the variant, e.g. 9 for Fedora 9 90 # 91 # REQUIRED_OS_VERSION 92 # The formal OS version number. 93 # Solaris & Windows: same as REQUIRED_OS_VARIANT_VERSION 94 # Linux: the kernel version, or output of uname -r 95 # 96 # REQUIRED_UNZIP_VER 97 # The minimum version of unzip. 98 # 99 # REQUIRED_ZIP_VER 100 # The minimum version of unzip. 101 # 102 ########### 103 # 104 # Differences in the build platform from these versions may trigger warnings 105 # messages during the sanity checking when building the JDK. 106 # 107 # When building the OpenJDK most of these required or expected versions are 108 # ignored or allowed to vary widely to accomodate the many build situations 109 # of the OpenJDK. 110 # 111 ########################################################################## 112 113 # Solaris specific 114 ifeq ($(PLATFORM), solaris) 115 REQUIRED_OS_VERSION = 5.10 116 REQUIRED_OS_VARIANT_NAME = Solaris 117 REQUIRED_OS_VARIANT_VERSION = $(REQUIRED_OS_VERSION) 118 ifeq ($(ARCH_FAMILY), sparc) 119 REQUIRED_FREE_SPACE = 1300000 120 else 121 REQUIRED_FREE_SPACE = 1040000 122 endif 123 REQUIRED_COMPILER_NAME = Sun Studio 12 124 REQUIRED_COMPILER_VERSION = SS12 125 ifeq ($(CC_VERSION),sun) 126 REQUIRED_CC_VER = 5.9 127 endif 128 ifeq ($(CC_VERSION),gcc) 129 REQUIRED_CC_VER = 3.4.3 130 endif 131 REQUIRED_GCC_VER = 2.95.2 132 endif 133 134 # Linux specific 135 ifeq ($(PLATFORM), linux) 136 REQUIRED_OS_VERSION = 2.6 137 REQUIRED_OS_VARIANT_NAME = Fedora 138 REQUIRED_OS_VARIANT_VERSION = 9 139 REQUIRED_FREE_SPACE = 1460000 140 REQUIRED_ALSA_VERSION = 0.9.1 141 REQUIRED_COMPILER_NAME = GCC4 142 REQUIRED_COMPILER_VERSION = GCC4 143 REQUIRED_GCC_VER = 2.95 144 ifeq ($(CC_VERSION),gcc) 145 REQUIRED_CC_VER = 4.3.0 146 endif 147 ifeq ($(CC_VERSION),sun) 148 REQUIRED_CC_VER = 5.9 149 endif 150 endif 151 152 # Windows specific 153 ifeq ($(PLATFORM), windows) 154 ifeq ($(ARCH_DATA_MODEL),64) 155 REQUIRED_OS_VERSION = 5.2 156 REQUIRED_OS_VARIANT_NAME = Windows2003 157 else 158 REQUIRED_OS_VERSION = 5.1 159 REQUIRED_OS_VARIANT_NAME = WindowsXP 160 endif 161 REQUIRED_OS_VARIANT_VERSION = $(REQUIRED_OS_VERSION) 162 REQUIRED_CYGWIN_VER = 4.0 163 REQUIRED_MKS_VER = 6.1 164 REQUIRED_FREE_SPACE = 500000 165 REQUIRED_DXSDK_VER = 0x0900 166 ifeq ($(CC_VERSION),msvc) 167 ifeq ($(ARCH_DATA_MODEL), 32) 168 REQUIRED_COMPILER_NAME = Visual Studio 10 169 REQUIRED_COMPILER_VERSION = VS2010 170 REQUIRED_CC_VER = 16.00.30319.01 171 REQUIRED_LINK_VER = 10.00.30319.01 172 else 173 ifeq ($(ARCH), ia64) 174 REQUIRED_COMPILER_NAME = Microsoft Platform SDK - November 2001 Edition 175 REQUIRED_COMPILER_VERSION = VS2003 176 REQUIRED_CC_VER = 13.00.9337.7 177 REQUIRED_LINK_VER = 7.00.9337.7 178 endif 179 ifeq ($(ARCH), amd64) 180 REQUIRED_COMPILER_NAME = Visual Studio 10 181 REQUIRED_COMPILER_VERSION = VS2010 182 REQUIRED_CC_VER = 16.00.30319.01 183 REQUIRED_LINK_VER = 10.00.30319.01 184 endif 185 endif 186 endif 187 ifeq ($(CC_VERSION),gcc) 188 REQUIRED_CC_VER = 3.4.3 189 endif 190 endif 191 192 # Generic 193 REQUIRED_ANT_VER = 1.6.3 194 REQUIRED_BOOT_VER = 1.6 195 REQUIRED_FREETYPE_VERSION = 2.3.0 196 REQUIRED_MAKE_VER = 3.78 197 REQUIRED_UNZIP_VER = 5.12 198 REQUIRED_ZIP_VER = 2.2 199