< prev index next >

make/test/JtregNativeJdk.gmk

Print this page




  30 ################################################################################
  31 
  32 default: all
  33 
  34 include $(SPEC)
  35 include MakeBase.gmk
  36 include TestFilesCompilation.gmk
  37 
  38 $(eval $(call IncludeCustomExtension, test/JtregNativeJdk.gmk))
  39 
  40 ################################################################################
  41 # Targets for building the native tests themselves.
  42 ################################################################################
  43 
  44 # Add more directories here when needed.
  45 BUILD_JDK_JTREG_NATIVE_SRC += \
  46     $(TOPDIR)/test/jdk/native_sanity \
  47     $(TOPDIR)/test/jdk/java/lang/String/nativeEncoding \
  48     #
  49 




  50 BUILD_JDK_JTREG_OUTPUT_DIR := $(OUTPUTDIR)/support/test/jdk/jtreg/native
  51 
  52 BUILD_JDK_JTREG_IMAGE_DIR := $(TEST_IMAGE_DIR)/jdk/jtreg
  53 
  54 ifeq ($(OPENJDK_TARGET_OS), windows)
  55     WIN_LIB_JAVA := $(SUPPORT_OUTPUTDIR)/native/java.base/libjava/java.lib
  56     BUILD_JDK_JTREG_LIBRARIES_LIBS_libstringPlatformChars := $(WIN_LIB_JAVA)
  57 else ifeq ($(OPENJDK_TARGET_OS), solaris)
  58     BUILD_JDK_JTREG_LIBRARIES_LIBS_libstringPlatformChars := -ljava -lc

  59 else
  60     BUILD_JDK_JTREG_LIBRARIES_LIBS_libstringPlatformChars := -ljava

  61 endif
  62 
  63 $(eval $(call SetupTestFilesCompilation, BUILD_JDK_JTREG_LIBRARIES, \
  64     TYPE := LIBRARY, \
  65     SOURCE_DIRS := $(BUILD_JDK_JTREG_NATIVE_SRC), \
  66     OUTPUT_DIR := $(BUILD_JDK_JTREG_OUTPUT_DIR), \
  67 ))
  68 
  69 $(eval $(call SetupTestFilesCompilation, BUILD_JDK_JTREG_EXECUTABLES, \
  70     TYPE := PROGRAM, \
  71     SOURCE_DIRS := $(BUILD_JDK_JTREG_NATIVE_SRC), \
  72     OUTPUT_DIR := $(BUILD_JDK_JTREG_OUTPUT_DIR), \
  73 ))
  74 
  75 build-test-jdk-jtreg-native: $(BUILD_JDK_JTREG_LIBRARIES) $(BUILD_JDK_JTREG_EXECUTABLES)
  76 
  77 
  78 ################################################################################
  79 # Targets for building test-image.
  80 ################################################################################


  30 ################################################################################
  31 
  32 default: all
  33 
  34 include $(SPEC)
  35 include MakeBase.gmk
  36 include TestFilesCompilation.gmk
  37 
  38 $(eval $(call IncludeCustomExtension, test/JtregNativeJdk.gmk))
  39 
  40 ################################################################################
  41 # Targets for building the native tests themselves.
  42 ################################################################################
  43 
  44 # Add more directories here when needed.
  45 BUILD_JDK_JTREG_NATIVE_SRC += \
  46     $(TOPDIR)/test/jdk/native_sanity \
  47     $(TOPDIR)/test/jdk/java/lang/String/nativeEncoding \
  48     #
  49 
  50 ifneq ($(OPENJDK_TARGET_OS), windows)
  51     BUILD_JDK_JTREG_NATIVE_SRC += $(TOPDIR)/test/jdk/java/nio/channels/FileChannel/directio
  52 endif
  53 
  54 BUILD_JDK_JTREG_OUTPUT_DIR := $(OUTPUTDIR)/support/test/jdk/jtreg/native
  55 
  56 BUILD_JDK_JTREG_IMAGE_DIR := $(TEST_IMAGE_DIR)/jdk/jtreg
  57 
  58 ifeq ($(OPENJDK_TARGET_OS), windows)
  59     WIN_LIB_JAVA := $(SUPPORT_OUTPUTDIR)/native/java.base/libjava/java.lib
  60     BUILD_JDK_JTREG_LIBRARIES_LIBS_libstringPlatformChars := $(WIN_LIB_JAVA)
  61 else ifeq ($(OPENJDK_TARGET_OS), solaris)
  62     BUILD_JDK_JTREG_LIBRARIES_LIBS_libstringPlatformChars := -ljava -lc
  63     BUILD_JDK_JTREG_LIBRARIES_LIBS_libDirectIO := -ljava -lc
  64 else
  65     BUILD_JDK_JTREG_LIBRARIES_LIBS_libstringPlatformChars := -ljava
  66     BUILD_JDK_JTREG_LIBRARIES_LIBS_libDirectIO := -ljava
  67 endif
  68 
  69 $(eval $(call SetupTestFilesCompilation, BUILD_JDK_JTREG_LIBRARIES, \
  70     TYPE := LIBRARY, \
  71     SOURCE_DIRS := $(BUILD_JDK_JTREG_NATIVE_SRC), \
  72     OUTPUT_DIR := $(BUILD_JDK_JTREG_OUTPUT_DIR), \
  73 ))
  74 
  75 $(eval $(call SetupTestFilesCompilation, BUILD_JDK_JTREG_EXECUTABLES, \
  76     TYPE := PROGRAM, \
  77     SOURCE_DIRS := $(BUILD_JDK_JTREG_NATIVE_SRC), \
  78     OUTPUT_DIR := $(BUILD_JDK_JTREG_OUTPUT_DIR), \
  79 ))
  80 
  81 build-test-jdk-jtreg-native: $(BUILD_JDK_JTREG_LIBRARIES) $(BUILD_JDK_JTREG_EXECUTABLES)
  82 
  83 
  84 ################################################################################
  85 # Targets for building test-image.
  86 ################################################################################
< prev index next >