make/test/BuildTestLib.gmk
author erikj
Tue, 27 Oct 2015 17:51:36 +0100
changeset 33055 3676b99f33cf
parent 32562 b4ed30cd962e
child 33436 c6d79360ecff
permissions -rw-r--r--
8140312: Enable new sjavac server only mode in jdk build Reviewed-by: ihse, tbell
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
32562
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
     1
#
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
     2
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
     4
#
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    10
#
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    15
# accompanied this code).
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    16
#
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    20
#
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    23
# questions.
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    24
#
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    25
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    26
default: all
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    27
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    28
include $(SPEC)
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    29
include MakeBase.gmk
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    30
include JavaCompilation.gmk
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    31
include SetupJavaCompilers.gmk
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    32
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    33
TARGETS :=
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    34
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    35
TEST_LIB_SOURCE_DIR := $(TOPDIR)/test/lib
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    36
TEST_LIB_SUPPORT := $(SUPPORT_OUTPUTDIR)/test/lib
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    37
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    38
# Unfortunately, test-lib.jar does not compile properly without warnings.
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    39
$(eval $(call SetupJavaCompiler, BOOT_JAVAC_NOWARNINGS, \
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    40
    JAVAC := $(JAVAC), \
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    41
    FLAGS := -XDignore.symbol.file=true -g, \
33055
3676b99f33cf 8140312: Enable new sjavac server only mode in jdk build
erikj
parents: 32562
diff changeset
    42
    DISABLE_SJAVAC := true, \
32562
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    43
))
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    44
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    45
$(eval $(call SetupJavaCompilation, BUILD_WB_JAR, \
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    46
    SETUP := BOOT_JAVAC, \
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    47
    SRC := $(TEST_LIB_SOURCE_DIR)/sun, \
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    48
    BIN := $(TEST_LIB_SUPPORT), \
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    49
    JAR := $(TEST_LIB_SUPPORT)/wb.jar, \
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    50
))
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    51
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    52
TARGETS += $(BUILD_WB_JAR)
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    53
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    54
# test-lib.jar will contain only hprof classes until JDK-8081381 is resolved
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    55
$(eval $(call SetupJavaCompilation, BUILD_TEST_LIB_JAR, \
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    56
    SETUP := BOOT_JAVAC_NOWARNINGS, \
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    57
    SRC := $(TEST_LIB_SOURCE_DIR)/share/classes/jdk/test/lib/hprof, \
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    58
    BIN := $(TEST_LIB_SUPPORT), \
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    59
    JAR := $(TEST_LIB_SUPPORT)/test-lib.jar, \
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    60
))
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    61
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    62
TARGETS += $(BUILD_TEST_LIB_JAR)
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    63
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    64
##########################################################################################
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    65
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    66
all: $(TARGETS)
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    67
b4ed30cd962e 8136378: Build test libs using properly integrated makefile
ihse
parents:
diff changeset
    68
.PHONY: default all