Defs-versions.gmk 6.7 KB
Newer Older
1
#
2
# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
3 4 5 6
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# 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 12 13 14 15 16 17 18 19 20
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
21 22 23
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
24 25 26 27 28 29
#

#
# WARNING: This file is shared with other workspaces.
#

30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
# This file needs these set: PLATFORM, ARCH_FAMILY, and ARCH_DATA_MODEL.

# Windows uses Microsoft compilers by default
ifeq ($(PLATFORM), windows)
  override CC_VERSION = msvc
endif

# Solaris uses Sun Studio compilers by default
ifeq ($(PLATFORM), solaris)
  override CC_VERSION = sun
endif

# Linux uses GNU compilers by default
ifeq ($(PLATFORM), linux)
  override CC_VERSION = gcc
endif
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62

##########################################################################
#
# List of JDK official minimum, expected, or required versions:
#
# REQUIRED_ALSA_VERSION
#   Linux only: The ALSA sound library version expected.
#
# REQUIRED_ANT_VER
#   The minimum 'ant' version.
#
# REQUIRED_BOOT_VER
#   The minimum boot jdk version.
#
# REQUIRED_CC_VER
#   The primary C compiler version expected.
#
63 64 65 66 67 68
# REQUIRED_COMPILER_NAME
#   The long descriptive name of the compiler we should use
#
# REQUIRED_COMPILER_VERSION
#   The one word name that identifies the compilers being used.
#
69 70 71 72 73 74 75 76 77 78 79 80 81 82
# REQUIRED_CYGWIN_VER
#   Windows only: If CYGWIN is used, the minimum CYGWIN version.
#
# REQUIRED_DXSDK_VER
#   Windows only: The version of DirectX SDK expected.
#
# REQUIRED_FREE_SPACE
#   The minimum disk space needed as determined by running 'du -sk' on a fully
#   built workspace.
#
# REQUIRED_FREETYPE_VERSION
#   If we are using freetype, the freetype version expected.
#
# REQUIRED_GCC_VER
83
#   Solaris and Linux only. The required version of gcc/g++ for the legacy OJI plugin.
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
#
# REQUIRED_LINK_VER
#   Windows only: The version of link.exe expected.
#
# REQUIRED_MAKE_VER
#   The minimum version of GNU make.
#
# REQUIRED_MKS_VER
#   Windows only: If MKS used instead of CYGWIN, the minimum version of MKS.
#
# REQUIRED_OS_VARIANT_NAME
#   The OS variation name required.
#     Solaris: Solaris or OpenSolaris
#     Windows: Windows2000, WindowsXP, Windows2003, etc.
#     Linux: Fedora, RedHat, SuSE, Ubuntu, etc.
#
# REQUIRED_OS_VARIANT_VERSION
#   The version number associated with the above OS variant name.
#     Solaris: output of uname -r
#     Windows: 5.0 for Windows2000, 5.1 for WindowsXP, 5.2 for Windows2003, etc.
#     Linux: number for the variant, e.g. 9 for Fedora 9
#
# REQUIRED_OS_VERSION
#   The formal OS version number.
#     Solaris & Windows: same as REQUIRED_OS_VARIANT_VERSION
#     Linux: the kernel version, or output of uname -r
#
# REQUIRED_UNZIP_VER
#   The minimum version of unzip.
#
# REQUIRED_ZIP_VER
#   The minimum version of unzip.
#
###########
#
# Differences in the build platform from these versions may trigger warnings
#   messages during the sanity checking when building the JDK.
#
# When building the OpenJDK most of these required or expected  versions are 
#  ignored or allowed to vary widely to accomodate the many build situations
#  of the OpenJDK.
#
##########################################################################

# Solaris specific
ifeq ($(PLATFORM), solaris)
130
  REQUIRED_OS_NAME            = SunOS
131 132 133 134 135 136 137 138
  REQUIRED_OS_VERSION         = 5.10
  REQUIRED_OS_VARIANT_NAME    = Solaris
  REQUIRED_OS_VARIANT_VERSION = $(REQUIRED_OS_VERSION)
  ifeq ($(ARCH_FAMILY), sparc)
    REQUIRED_FREE_SPACE       = 1300000
  else
    REQUIRED_FREE_SPACE       = 1040000
  endif
139 140
  REQUIRED_COMPILER_NAME      = Sun Studio 12 Update 1
  REQUIRED_COMPILER_VERSION   = SS12u1
141
  ifeq ($(CC_VERSION),sun)
142
    REQUIRED_CC_VER           = 5.10
143 144 145 146 147 148 149 150 151
  endif
  ifeq ($(CC_VERSION),gcc)
    REQUIRED_CC_VER           = 3.4.3
  endif
  REQUIRED_GCC_VER            = 2.95.2
endif

# Linux specific
ifeq ($(PLATFORM), linux)
152
  REQUIRED_OS_NAME            = Linux
153 154 155 156 157
  REQUIRED_OS_VERSION         = 2.6
  REQUIRED_OS_VARIANT_NAME    = Fedora
  REQUIRED_OS_VARIANT_VERSION = 9
  REQUIRED_FREE_SPACE         = 1460000
  REQUIRED_ALSA_VERSION       = 0.9.1
158 159
  REQUIRED_COMPILER_NAME      = GCC4
  REQUIRED_COMPILER_VERSION   = GCC4
160 161 162 163 164
  REQUIRED_GCC_VER            = 2.95
  ifeq ($(CC_VERSION),gcc)
    REQUIRED_CC_VER           = 4.3.0
  endif
  ifeq ($(CC_VERSION),sun)
165
    REQUIRED_CC_VER           = 5.10
166 167 168 169 170
  endif
endif

# Windows specific
ifeq ($(PLATFORM), windows)
171
  REQUIRED_OS_NAME            = Windows
172 173 174 175 176 177 178 179 180 181 182 183 184 185
  ifeq ($(ARCH_DATA_MODEL),64)
    REQUIRED_OS_VERSION       = 5.2
    REQUIRED_OS_VARIANT_NAME  = Windows2003
  else
    REQUIRED_OS_VERSION       = 5.1
    REQUIRED_OS_VARIANT_NAME  = WindowsXP
  endif
  REQUIRED_OS_VARIANT_VERSION = $(REQUIRED_OS_VERSION)
  REQUIRED_CYGWIN_VER         = 4.0
  REQUIRED_MKS_VER            = 6.1
  REQUIRED_FREE_SPACE         = 500000
  REQUIRED_DXSDK_VER          = 0x0900
  ifeq ($(CC_VERSION),msvc)
    ifeq ($(ARCH_DATA_MODEL), 32)
186 187 188 189
      REQUIRED_COMPILER_NAME    = Visual Studio 10
      REQUIRED_COMPILER_VERSION = VS2010
      REQUIRED_CC_VER           = 16.00.30319.01
      REQUIRED_LINK_VER         = 10.00.30319.01
190 191
    else
      ifeq ($(ARCH), ia64)
192 193 194 195
        REQUIRED_COMPILER_NAME    = Microsoft Platform SDK - November 2001 Edition
        REQUIRED_COMPILER_VERSION = VS2003
        REQUIRED_CC_VER           = 13.00.9337.7
        REQUIRED_LINK_VER         = 7.00.9337.7
196 197
      endif
      ifeq ($(ARCH), amd64)
198 199 200 201
        REQUIRED_COMPILER_NAME    = Visual Studio 10
        REQUIRED_COMPILER_VERSION = VS2010
        REQUIRED_CC_VER           = 16.00.30319.01
        REQUIRED_LINK_VER         = 10.00.30319.01
202 203 204 205 206 207 208 209 210 211
      endif
    endif
  endif
  ifeq ($(CC_VERSION),gcc)
    REQUIRED_CC_VER           = 3.4.3
  endif
endif

# Generic
REQUIRED_ANT_VER          = 1.6.3
212
REQUIRED_BOOT_VER         = 1.6
213
REQUIRED_FREETYPE_VERSION = 2.3.0
214
REQUIRED_MAKE_VER         = 3.81
215 216 217
REQUIRED_UNZIP_VER        = 5.12
REQUIRED_ZIP_VER          = 2.2