< prev index next >

make/test/BuildTestLib.gmk

Print this page

41 
42 TARGETS :=
43 
44 TEST_LIB_SOURCE_DIR := $(TOPDIR)/test/lib
45 TEST_LIB_SUPPORT := $(SUPPORT_OUTPUTDIR)/test/lib
46 
47 $(eval $(call SetupJavaCompilation, BUILD_WB_JAR, \
48     TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
49     SRC := $(TEST_LIB_SOURCE_DIR)/jdk/test/whitebox/, \
50     BIN := $(TEST_LIB_SUPPORT)/wb_classes, \
51     JAR := $(TEST_LIB_SUPPORT)/wb.jar, \
52     DISABLED_WARNINGS := deprecation removal preview, \
53     JAVAC_FLAGS := --enable-preview, \
54 ))
55 
56 TARGETS += $(BUILD_WB_JAR)
57 
58 $(eval $(call SetupJavaCompilation, BUILD_TEST_LIB_JAR, \
59     TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
60     SRC := $(TEST_LIB_SOURCE_DIR), \
61     EXCLUDES := jdk/test/lib/containers jdk/test/lib/security, \
62     BIN := $(TEST_LIB_SUPPORT)/test-lib_classes, \
63     HEADERS := $(TEST_LIB_SUPPORT)/test-lib_headers, \
64     JAR := $(TEST_LIB_SUPPORT)/test-lib.jar, \
65     DISABLED_WARNINGS := try deprecation rawtypes unchecked serial cast removal preview, \
66     JAVAC_FLAGS := --add-exports java.base/sun.security.util=ALL-UNNAMED \
67         --add-exports java.base/jdk.internal.classfile=ALL-UNNAMED \
68         --add-exports java.base/jdk.internal.classfile.attribute=ALL-UNNAMED \
69         --add-exports java.base/jdk.internal.classfile.constantpool=ALL-UNNAMED \
70         --add-exports java.base/jdk.internal.module=ALL-UNNAMED \






71         --enable-preview, \
72 ))
73 
74 TARGETS += $(BUILD_TEST_LIB_JAR)
75 
76 build-test-lib: $(TARGETS)
77 
78 ################################################################################
79 # Targets for building test-image.
80 ################################################################################
81 
82 # Copy the jars to the test image.
83 $(eval $(call SetupCopyFiles, COPY_LIBTEST_JARS, \
84     DEST := $(TEST_IMAGE_DIR)/lib-test, \
85     FILES := $(BUILD_WB_JAR_JAR) $(BUILD_TEST_LIB_JAR_JAR), \
86 ))
87 #
88 
89 test-image-lib: $(COPY_LIBTEST_JARS)
90 

41 
42 TARGETS :=
43 
44 TEST_LIB_SOURCE_DIR := $(TOPDIR)/test/lib
45 TEST_LIB_SUPPORT := $(SUPPORT_OUTPUTDIR)/test/lib
46 
47 $(eval $(call SetupJavaCompilation, BUILD_WB_JAR, \
48     TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
49     SRC := $(TEST_LIB_SOURCE_DIR)/jdk/test/whitebox/, \
50     BIN := $(TEST_LIB_SUPPORT)/wb_classes, \
51     JAR := $(TEST_LIB_SUPPORT)/wb.jar, \
52     DISABLED_WARNINGS := deprecation removal preview, \
53     JAVAC_FLAGS := --enable-preview, \
54 ))
55 
56 TARGETS += $(BUILD_WB_JAR)
57 
58 $(eval $(call SetupJavaCompilation, BUILD_TEST_LIB_JAR, \
59     TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
60     SRC := $(TEST_LIB_SOURCE_DIR), \
61     EXCLUDES := jdk/test/lib/containers jdk/test/lib/security org, \
62     BIN := $(TEST_LIB_SUPPORT)/test-lib_classes, \
63     HEADERS := $(TEST_LIB_SUPPORT)/test-lib_headers, \
64     JAR := $(TEST_LIB_SUPPORT)/test-lib.jar, \
65     DISABLED_WARNINGS := try deprecation rawtypes unchecked serial cast removal preview varargs, \
66     JAVAC_FLAGS := --add-exports java.base/sun.security.util=ALL-UNNAMED \
67         --add-exports java.base/jdk.internal.classfile=ALL-UNNAMED \
68         --add-exports java.base/jdk.internal.classfile.attribute=ALL-UNNAMED \
69         --add-exports java.base/jdk.internal.classfile.constantpool=ALL-UNNAMED \
70         --add-exports java.base/jdk.internal.module=ALL-UNNAMED \
71         --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
72         --add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
73         --add-exports jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED \
74         --add-exports jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \
75         --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
76         --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
77         --enable-preview, \
78 ))
79 
80 TARGETS += $(BUILD_TEST_LIB_JAR)
81 
82 build-test-lib: $(TARGETS)
83 
84 ################################################################################
85 # Targets for building test-image.
86 ################################################################################
87 
88 # Copy the jars to the test image.
89 $(eval $(call SetupCopyFiles, COPY_LIBTEST_JARS, \
90     DEST := $(TEST_IMAGE_DIR)/lib-test, \
91     FILES := $(BUILD_WB_JAR_JAR) $(BUILD_TEST_LIB_JAR_JAR), \
92 ))
93 #
94 
95 test-image-lib: $(COPY_LIBTEST_JARS)
96 
< prev index next >