Ignore:
Timestamp:
Mar 26, 2011, 8:39:20 PM (14 years ago)
Author:
dmik
Message:

trunk: Merged in openjdk6 b22 from branches/vendor/oracle.

Location:
trunk/openjdk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk

  • trunk/openjdk/jdk/make/common/Defs.gmk

    r189 r278  
    11#
    2 # Copyright 1995-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
    55# This code is free software; you can redistribute it and/or modify it
    66# under the terms of the GNU General Public License version 2 only, as
    7 # published by the Free Software Foundation.  Sun designates this
     7# published by the Free Software Foundation.  Oracle designates this
    88# particular file as subject to the "Classpath" exception as provided
    9 # by Sun in the LICENSE file that accompanied this code.
     9# by Oracle in the LICENSE file that accompanied this code.
    1010#
    1111# This code is distributed in the hope that it will be useful, but WITHOUT
     
    1919# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2020#
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
     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.
    2424#
    2525
     
    111111endif
    112112
    113 # If OPENJDK is defined, we may still need to use some native libraries that
    114 # exist only as part of the closed source. If the closed sources are not
    115 # available, the libraries must have been pre-built. Since these libraries
    116 # and the JDK internal interfaces to these are reasonably stable this is not
    117 # a significant problem. But we do need to provide a way to locate them,
    118 # including a way to point to a new one when there have been changes.
    119 #
    120 # If you have a formal binary plugs download, set ALT_BINARY_PLUGS_PATH
    121 # to the location.
    122 # (Optionally you can set ALT_CLOSED_JDK_IMPORT_PATH to point to the latest
    123 #  build JDK, or last promotion for this JDK version, but will not work
    124 #  on windows).
    125 #
    126 # As the OPENJDK is built, the binary plugs are used instead of building the
    127 # libraries.
    128 # Individual Makefiles that specify USE_BINARY_PLUG_LIBRARY, will get
    129 # the binary plug copy (or a copy from a built JDK).
    130 #
    131 # See common/internal/BinaryPlugs.gmk for more information.
    132 #
    133 # Usage notes:
    134 #
    135 #   ALT_BINARY_PLUGS_JARFILE is probably rarely needed. It can be used
    136 #   to identify the exact jar file to be used for all closed classes..
    137 #
    138 #   ALT_BINARY_PLUGS_PATH points to a directory containing precisely the
    139 #   binaries needed to build.
    140 #
    141 #   ALT_BUILD_BINARY_PLUGS_PATH points to a directory containing binary plug dirs
    142 #   multiple architectures named using the standard conventions
    143 #   This is useful for build scripts that need to build multiple architectures
    144 #   of the OpenJDK.
    145 #
    146 #   ALT_CLOSED_JDK_IMPORT_PATH points to the top-level of a specific platform
    147 #   JDK image.
    148 #
    149 #   The precedence is that
    150 #     1. ALT_BINARY_PLUGS_JARFILE overrides any other location of the classes
    151 #     2. ALT_BINARY_PLUGS_PATH overrides all locations of classes and libraries
    152 #     3. ALT_BUILD_BINARY_PLUGS_PATH is used to find a ALT_BINARY_PLUGS_PATH
    153 #     4. ALT_CLOSED_JDK_IMPORT_PATH is used to locate classes and libraries
    154 #
    155 
    156 # Always needed, defines the name of the imported/exported jarfile
    157 BINARY_PLUGS_JARNAME = rt-closed.jar
    158 
    159 ifdef OPENJDK
    160   ifndef IMPORT_BINARY_PLUGS
    161     IMPORT_BINARY_PLUGS=false
    162   endif
    163   ifdef ALT_CLOSED_JDK_IMPORT_PATH
    164     CLOSED_JDK_IMPORT_PATH = $(ALT_CLOSED_JDK_IMPORT_PATH)
    165     BINARY_PLUGS_PATH = $(CLOSED_JDK_IMPORT_PATH)
    166     BINARY_PLUGS_JARFILE = $(CLOSED_JDK_IMPORT_PATH)/jre/lib/rt.jar
    167   endif
    168   ifdef ALT_BUILD_BINARY_PLUGS_PATH
    169     BUILD_BINARY_PLUGS_PATH = $(ALT_BUILD_BINARY_PLUGS_PATH)
    170   else
    171     BUILD_BINARY_PLUGS_PATH = $(SLASH_JAVA)/re/openjdk/$(JDK_MINOR_VERSION)/promoted/latest/openjdk/binaryplugs
    172   endif
    173   BINARY_PLUGS_PATH = $(BUILD_BINARY_PLUGS_PATH)/$(PLATFORM)-$(ARCH)
    174   BINARY_PLUGS_JARFILE = $(BINARY_PLUGS_PATH)/jre/lib/$(BINARY_PLUGS_JARNAME)
    175   ifdef ALT_BINARY_PLUGS_PATH
    176     BINARY_PLUGS_PATH  = $(ALT_BINARY_PLUGS_PATH)
    177     BINARY_PLUGS_JARFILE = $(BINARY_PLUGS_PATH)/jre/lib/$(BINARY_PLUGS_JARNAME)
    178   endif
    179   ifdef ALT_BINARY_PLUGS_JARFILE
    180     BINARY_PLUGS_JARFILE = $(ALT_BINARY_PLUGS_JARFILE)
    181   endif
    182 endif # OPENJDK
    183 
    184113# Default output directory
    185114ifdef OPENJDK
     
    291220
    292221LDLIBS_COMMON += $(EXTRA_LIBS)
    293 
    294 #
    295 # Default is to build, not import native binaries
    296 #
    297 ifndef IMPORT_NATIVE_BINARIES
    298   IMPORT_NATIVE_BINARIES=false
    299 endif
    300 # If importing libraries in, no incremental builds
    301 ifeq ($(IMPORT_NATIVE_BINARIES),true)
    302  INCREMENTAL_BUILD=false
    303 endif
    304222
    305223# for generated libraries
Note: See TracChangeset for help on using the changeset viewer.