8187542: Remove superfluous *_TOPDIR variables
Reviewed-by: erikj
This commit is contained in:
parent
467119a352
commit
6648232e22
@ -885,7 +885,7 @@ test-support/</code></pre>
|
||||
<p>While technically using <code>make</code>, the make source files of the OpenJDK does not resemble most other Makefiles. Instead of listing specific targets and actions (perhaps using patterns), the basic modus operandi is to call a high-level function (or properly, macro) from the API in <code>make/common</code>. For instance, to compile all classes in the <code>jdk.internal.foo</code> package in the <code>jdk.foo</code> module, a call like this would be made:</p>
|
||||
<pre><code>$(eval $(call SetupJavaCompilation, BUILD_FOO_CLASSES, \
|
||||
SETUP := GENERATE_OLDBYTECODE, \
|
||||
SRC := $(JDK_TOPDIR)/src/jkd.foo/share/classes, \
|
||||
SRC := $(TOPDIR)/src/jkd.foo/share/classes, \
|
||||
INCLUDES := jdk/internal/foo, \
|
||||
BIN := $(SUPPORT_OUTPUTDIR)/foo_classes, \
|
||||
))</code></pre>
|
||||
|
@ -296,7 +296,7 @@ issues.
|
||||
|
||||
### gcc
|
||||
|
||||
The minimum accepted version of gcc is 4.7. Older versions will generate a warning
|
||||
The minimum accepted version of gcc is 4.7. Older versions will generate a warning
|
||||
by `configure` and are unlikely to work.
|
||||
|
||||
OpenJDK 9 includes patches that should allow gcc 6 to compile, but this should
|
||||
@ -1703,7 +1703,7 @@ a call like this would be made:
|
||||
```
|
||||
$(eval $(call SetupJavaCompilation, BUILD_FOO_CLASSES, \
|
||||
SETUP := GENERATE_OLDBYTECODE, \
|
||||
SRC := $(JDK_TOPDIR)/src/jkd.foo/share/classes, \
|
||||
SRC := $(TOPDIR)/src/jkd.foo/share/classes, \
|
||||
INCLUDES := jdk/internal/foo, \
|
||||
BIN := $(SUPPORT_OUTPUTDIR)/foo_classes, \
|
||||
))
|
||||
|
@ -1,4 +1,4 @@
|
||||
#
|
||||
SRC#
|
||||
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
@ -150,10 +150,7 @@ BOOTJDK_SETUP_BUILD_JDK
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
SRCDIRS_SETUP_TOPDIRS
|
||||
SRCDIRS_SETUP_ALTERNATIVE_TOPDIRS
|
||||
SRCDIRS_SETUP_OUTPUT_DIRS
|
||||
|
||||
SRCDIRS_SETUP_DIRS
|
||||
SRCDIRS_SETUP_IMPORT_MODULES
|
||||
|
||||
###############################################################################
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,48 +23,14 @@
|
||||
# questions.
|
||||
#
|
||||
|
||||
AC_DEFUN_ONCE([SRCDIRS_SETUP_TOPDIRS],
|
||||
[
|
||||
# Where are the sources.
|
||||
LANGTOOLS_TOPDIR="$SRC_ROOT/langtools"
|
||||
CORBA_TOPDIR="$SRC_ROOT/corba"
|
||||
JAXP_TOPDIR="$SRC_ROOT/jaxp"
|
||||
JAXWS_TOPDIR="$SRC_ROOT/jaxws"
|
||||
HOTSPOT_TOPDIR="$SRC_ROOT/hotspot"
|
||||
NASHORN_TOPDIR="$SRC_ROOT/nashorn"
|
||||
JDK_TOPDIR="$SRC_ROOT/jdk"
|
||||
AC_SUBST(LANGTOOLS_TOPDIR)
|
||||
AC_SUBST(CORBA_TOPDIR)
|
||||
AC_SUBST(JAXP_TOPDIR)
|
||||
AC_SUBST(JAXWS_TOPDIR)
|
||||
AC_SUBST(HOTSPOT_TOPDIR)
|
||||
AC_SUBST(NASHORN_TOPDIR)
|
||||
AC_SUBST(TOPDIR)
|
||||
])
|
||||
|
||||
AC_DEFUN_ONCE([SRCDIRS_SETUP_ALTERNATIVE_TOPDIRS],
|
||||
[
|
||||
# This feature is no longer supported.
|
||||
|
||||
BASIC_DEPRECATED_ARG_WITH(add-source-root)
|
||||
BASIC_DEPRECATED_ARG_WITH(override-source-root)
|
||||
BASIC_DEPRECATED_ARG_WITH(adds-and-overrides)
|
||||
BASIC_DEPRECATED_ARG_WITH(override-langtools)
|
||||
BASIC_DEPRECATED_ARG_WITH(override-corba)
|
||||
BASIC_DEPRECATED_ARG_WITH(override-jaxp)
|
||||
BASIC_DEPRECATED_ARG_WITH(override-jaxws)
|
||||
BASIC_DEPRECATED_ARG_WITH(override-hotspot)
|
||||
BASIC_DEPRECATED_ARG_WITH(override-nashorn)
|
||||
BASIC_DEPRECATED_ARG_WITH(override-jdk)
|
||||
])
|
||||
|
||||
AC_DEFUN_ONCE([SRCDIRS_SETUP_OUTPUT_DIRS],
|
||||
AC_DEFUN_ONCE([SRCDIRS_SETUP_DIRS],
|
||||
[
|
||||
BUILD_OUTPUT="$OUTPUT_ROOT"
|
||||
AC_SUBST(BUILD_OUTPUT)
|
||||
JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk"
|
||||
|
||||
BASIC_DEPRECATED_ARG_WITH(import_hotspot)
|
||||
# Where are the sources.
|
||||
AC_SUBST(TOPDIR)
|
||||
])
|
||||
|
||||
################################################################################
|
||||
|
@ -133,13 +133,6 @@ CANONICAL_TOPDIR:=@CANONICAL_TOPDIR@
|
||||
SRC_ROOT:=@TOPDIR@
|
||||
|
||||
OUTPUT_ROOT:=@OUTPUT_ROOT@
|
||||
JDK_TOPDIR:=@JDK_TOPDIR@
|
||||
LANGTOOLS_TOPDIR:=@LANGTOOLS_TOPDIR@
|
||||
CORBA_TOPDIR:=@CORBA_TOPDIR@
|
||||
JAXP_TOPDIR:=@JAXP_TOPDIR@
|
||||
JAXWS_TOPDIR:=@JAXWS_TOPDIR@
|
||||
HOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@
|
||||
NASHORN_TOPDIR:=@NASHORN_TOPDIR@
|
||||
|
||||
IMPORT_MODULES_CLASSES:=@IMPORT_MODULES_CLASSES@
|
||||
IMPORT_MODULES_CMDS:=@IMPORT_MODULES_CMDS@
|
||||
|
@ -107,9 +107,9 @@ ifeq ($(OPENJDK_TARGET_OS), windows)
|
||||
|
||||
# We hard-code gensrc dir to server (since this includes adfiles)
|
||||
PROJECT_CREATOR_ARGS := \
|
||||
-sourceBase $(call FixPath, $(HOTSPOT_TOPDIR)) \
|
||||
-startAt src \
|
||||
-relativeSrcInclude src \
|
||||
-sourceBase $(call FixPath, $(TOPDIR)/src) \
|
||||
-startAt hotspot \
|
||||
-relativeSrcInclude hotspot \
|
||||
-hidePath .hg \
|
||||
-hidePath .jcheck \
|
||||
-hidePath jdk.aot \
|
||||
|
Loading…
x
Reference in New Issue
Block a user