< prev index next >

make/test/JtregNativeJdk.gmk

Print this page

 37 
 38 $(eval $(call IncludeCustomExtension, test/JtregNativeJdk.gmk))
 39 
 40 ################################################################################
 41 # Targets for building the native tests themselves.
 42 ################################################################################
 43 
 44 # This might have been added to by a custom extension.
 45 BUILD_JDK_JTREG_NATIVE_SRC += $(TOPDIR)/test/jdk
 46 
 47 BUILD_JDK_JTREG_OUTPUT_DIR := $(OUTPUTDIR)/support/test/jdk/jtreg/native
 48 
 49 BUILD_JDK_JTREG_IMAGE_DIR := $(TEST_IMAGE_DIR)/jdk/jtreg
 50 
 51 BUILD_JDK_JTREG_EXECUTABLES_CFLAGS_exeJliLaunchTest := \
 52     -I$(TOPDIR)/src/java.base/share/native/libjli \
 53     -I$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjli \
 54     -I$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/native/libjli
 55 
 56 BUILD_JDK_JTREG_LIBRARIES_LDFLAGS_libAsyncStackWalk := $(LIBCXX)

 57 
 58 # Platform specific setup
 59 ifeq ($(call isTargetOs, windows), true)
 60   BUILD_JDK_JTREG_EXCLUDE += libDirectIO.c libInheritedChannel.c exelauncher.c
 61 
 62   WIN_LIB_JAVA := $(SUPPORT_OUTPUTDIR)/native/java.base/libjava/java.lib
 63   BUILD_JDK_JTREG_LIBRARIES_LIBS_libstringPlatformChars := $(WIN_LIB_JAVA)
 64   WIN_LIB_JLI := $(SUPPORT_OUTPUTDIR)/native/java.base/libjli/jli.lib
 65   BUILD_JDK_JTREG_EXECUTABLES_LIBS_exeJliLaunchTest := $(WIN_LIB_JLI)
 66   BUILD_JDK_JTREG_EXECUTABLES_LIBS_exeCallerAccessTest := jvm.lib
 67   BUILD_JDK_JTREG_EXECUTABLES_LIBS_exerevokeall := advapi32.lib
 68   BUILD_JDK_JTREG_LIBRARIES_CFLAGS_libAsyncStackWalk := /EHsc

 69 else
 70   BUILD_JDK_JTREG_LIBRARIES_LIBS_libstringPlatformChars := -ljava
 71   BUILD_JDK_JTREG_LIBRARIES_LIBS_libDirectIO := -ljava
 72   BUILD_JDK_JTREG_EXCLUDE += exerevokeall.c
 73   ifeq ($(call isTargetOs, linux), true)
 74     BUILD_JDK_JTREG_LIBRARIES_LIBS_libInheritedChannel := -ljava
 75     BUILD_JDK_JTREG_EXECUTABLES_LIBS_exelauncher := -ldl
 76   endif
 77   BUILD_JDK_JTREG_EXECUTABLES_LIBS_exeJliLaunchTest := -ljli
 78   BUILD_JDK_JTREG_EXECUTABLES_LIBS_exeCallerAccessTest := -ljvm
 79 endif
 80 
 81 ifeq ($(call isTargetOs, macosx), true)
 82   BUILD_JDK_JTREG_EXCLUDE += exelauncher.c
 83   BUILD_JDK_JTREG_LIBRARIES_LIBS_libTestMainKeyWindow := \
 84       -framework Cocoa
 85   BUILD_JDK_JTREG_EXECUTABLES_LIBS_exeJniInvocationTest := -ljli
 86   BUILD_JDK_JTREG_LIBRARIES_LIBS_libTestDynamicStore := \
 87       -framework Cocoa -framework SystemConfiguration
 88 else

 37 
 38 $(eval $(call IncludeCustomExtension, test/JtregNativeJdk.gmk))
 39 
 40 ################################################################################
 41 # Targets for building the native tests themselves.
 42 ################################################################################
 43 
 44 # This might have been added to by a custom extension.
 45 BUILD_JDK_JTREG_NATIVE_SRC += $(TOPDIR)/test/jdk
 46 
 47 BUILD_JDK_JTREG_OUTPUT_DIR := $(OUTPUTDIR)/support/test/jdk/jtreg/native
 48 
 49 BUILD_JDK_JTREG_IMAGE_DIR := $(TEST_IMAGE_DIR)/jdk/jtreg
 50 
 51 BUILD_JDK_JTREG_EXECUTABLES_CFLAGS_exeJliLaunchTest := \
 52     -I$(TOPDIR)/src/java.base/share/native/libjli \
 53     -I$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjli \
 54     -I$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/native/libjli
 55 
 56 BUILD_JDK_JTREG_LIBRARIES_LDFLAGS_libAsyncStackWalk := $(LIBCXX)
 57 BUILD_JDK_JTREG_LIBRARIES_LDFLAGS_libAsyncInvokers := $(LIBCXX)
 58 
 59 # Platform specific setup
 60 ifeq ($(call isTargetOs, windows), true)
 61   BUILD_JDK_JTREG_EXCLUDE += libDirectIO.c libInheritedChannel.c exelauncher.c
 62 
 63   WIN_LIB_JAVA := $(SUPPORT_OUTPUTDIR)/native/java.base/libjava/java.lib
 64   BUILD_JDK_JTREG_LIBRARIES_LIBS_libstringPlatformChars := $(WIN_LIB_JAVA)
 65   WIN_LIB_JLI := $(SUPPORT_OUTPUTDIR)/native/java.base/libjli/jli.lib
 66   BUILD_JDK_JTREG_EXECUTABLES_LIBS_exeJliLaunchTest := $(WIN_LIB_JLI)
 67   BUILD_JDK_JTREG_EXECUTABLES_LIBS_exeCallerAccessTest := jvm.lib
 68   BUILD_JDK_JTREG_EXECUTABLES_LIBS_exerevokeall := advapi32.lib
 69   BUILD_JDK_JTREG_LIBRARIES_CFLAGS_libAsyncStackWalk := /EHsc
 70   BUILD_JDK_JTREG_LIBRARIES_CFLAGS_libAsyncInvokers := /EHsc
 71 else
 72   BUILD_JDK_JTREG_LIBRARIES_LIBS_libstringPlatformChars := -ljava
 73   BUILD_JDK_JTREG_LIBRARIES_LIBS_libDirectIO := -ljava
 74   BUILD_JDK_JTREG_EXCLUDE += exerevokeall.c
 75   ifeq ($(call isTargetOs, linux), true)
 76     BUILD_JDK_JTREG_LIBRARIES_LIBS_libInheritedChannel := -ljava
 77     BUILD_JDK_JTREG_EXECUTABLES_LIBS_exelauncher := -ldl
 78   endif
 79   BUILD_JDK_JTREG_EXECUTABLES_LIBS_exeJliLaunchTest := -ljli
 80   BUILD_JDK_JTREG_EXECUTABLES_LIBS_exeCallerAccessTest := -ljvm
 81 endif
 82 
 83 ifeq ($(call isTargetOs, macosx), true)
 84   BUILD_JDK_JTREG_EXCLUDE += exelauncher.c
 85   BUILD_JDK_JTREG_LIBRARIES_LIBS_libTestMainKeyWindow := \
 86       -framework Cocoa
 87   BUILD_JDK_JTREG_EXECUTABLES_LIBS_exeJniInvocationTest := -ljli
 88   BUILD_JDK_JTREG_LIBRARIES_LIBS_libTestDynamicStore := \
 89       -framework Cocoa -framework SystemConfiguration
 90 else
< prev index next >