< prev index next >

make/test/JtregNative.gmk

Print this page
rev 17358 : 8181147: JNI_GetStringPlatformChars should have a fast path for UTF-8
Reviewed-by: martin, erikj, sherman


  27 # This file builds the native component of the JTReg tests for JDK.
  28 # It also covers the test-image part, where the built files are copied to the
  29 # test image.
  30 ################################################################################
  31 
  32 default: all
  33 
  34 include $(SPEC)
  35 include MakeBase.gmk
  36 include TestFilesCompilation.gmk
  37 
  38 $(eval $(call IncludeCustomExtension, jdk, test/JtregNative.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     $(JDK_TOPDIR)/test/native_sanity \

  47     #
  48 
  49 BUILD_JDK_JTREG_OUTPUT_DIR := $(BUILD_OUTPUT)/support/test/jdk/jtreg/native
  50 
  51 BUILD_JDK_JTREG_IMAGE_DIR := $(TEST_IMAGE_DIR)/jdk/jtreg









  52 
  53 $(eval $(call SetupTestFilesCompilation, BUILD_JDK_JTREG_LIBRARIES, \
  54     TYPE := LIBRARY, \
  55     SOURCE_DIRS := $(BUILD_JDK_JTREG_NATIVE_SRC), \
  56     OUTPUT_DIR := $(BUILD_JDK_JTREG_OUTPUT_DIR), \
  57 ))
  58 
  59 $(eval $(call SetupTestFilesCompilation, BUILD_JDK_JTREG_EXECUTABLES, \
  60     TYPE := PROGRAM, \
  61     SOURCE_DIRS := $(BUILD_JDK_JTREG_NATIVE_SRC), \
  62     OUTPUT_DIR := $(BUILD_JDK_JTREG_OUTPUT_DIR), \
  63 ))
  64 
  65 build-test-jdk-jtreg-native: $(BUILD_JDK_JTREG_LIBRARIES) $(BUILD_JDK_JTREG_EXECUTABLES)
  66 
  67 
  68 ################################################################################
  69 # Targets for building test-image.
  70 ################################################################################
  71 


  27 # This file builds the native component of the JTReg tests for JDK.
  28 # It also covers the test-image part, where the built files are copied to the
  29 # test image.
  30 ################################################################################
  31 
  32 default: all
  33 
  34 include $(SPEC)
  35 include MakeBase.gmk
  36 include TestFilesCompilation.gmk
  37 
  38 $(eval $(call IncludeCustomExtension, jdk, test/JtregNative.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     $(JDK_TOPDIR)/test/native_sanity \
  47     $(JDK_TOPDIR)/test/java/lang/String/nativeEncoding \
  48     #
  49 
  50 BUILD_JDK_JTREG_OUTPUT_DIR := $(BUILD_OUTPUT)/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 ################################################################################
  81 
< prev index next >