< prev index next >

make/test/JtregNativeJdk.gmk

Print this page




  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, , 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     $(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), \




  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, , 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     $(TOPDIR)/test/jdk/native_sanity \
  47     $(TOPDIR)/test/jdk/java/lang/ClassLoader/nativeLibrary \
  48     $(TOPDIR)/test/jdk/java/lang/String/nativeEncoding \
  49     #
  50 
  51 BUILD_JDK_JTREG_OUTPUT_DIR := $(OUTPUTDIR)/support/test/jdk/jtreg/native
  52 
  53 BUILD_JDK_JTREG_IMAGE_DIR := $(TEST_IMAGE_DIR)/jdk/jtreg
  54 
  55 ifeq ($(OPENJDK_TARGET_OS), windows)
  56     WIN_LIB_JAVA := $(SUPPORT_OUTPUTDIR)/native/java.base/libjava/java.lib
  57     BUILD_JDK_JTREG_LIBRARIES_LIBS_libstringPlatformChars := $(WIN_LIB_JAVA)
  58 else ifeq ($(OPENJDK_TARGET_OS), solaris)
  59     BUILD_JDK_JTREG_LIBRARIES_LIBS_libstringPlatformChars := -ljava -lc
  60 else
  61     BUILD_JDK_JTREG_LIBRARIES_LIBS_libstringPlatformChars := -ljava
  62 endif
  63 
  64 $(eval $(call SetupTestFilesCompilation, BUILD_JDK_JTREG_LIBRARIES, \
  65     TYPE := LIBRARY, \
  66     SOURCE_DIRS := $(BUILD_JDK_JTREG_NATIVE_SRC), \
  67     OUTPUT_DIR := $(BUILD_JDK_JTREG_OUTPUT_DIR), \


< prev index next >