< prev index next >

make/hotspot/lib/CompileGtest.gmk

Print this page




  59     NAME := jvm, \
  60     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
  61     OUTPUT_DIR := $(JVM_OUTPUTDIR)/gtest, \
  62     OBJECT_DIR := $(JVM_OUTPUTDIR)/gtest/objs, \
  63     SRC := $(GTEST_TEST_SRC), \
  64     EXCLUDES := $(JVM_EXCLUDES), \
  65     EXCLUDE_FILES := gtestLauncher.cpp, \
  66     EXCLUDE_PATTERNS := $(JVM_EXCLUDE_PATTERNS), \
  67     EXTRA_FILES := $(GTEST_FRAMEWORK_SRC)/src/gtest-all.cc, \
  68     EXTRA_OBJECT_FILES := $(filter-out %/operator_new$(OBJ_SUFFIX), \
  69         $(BUILD_LIBJVM_ALL_OBJS)), \
  70     CFLAGS := $(JVM_CFLAGS) -I$(GTEST_FRAMEWORK_SRC) \
  71         -I$(GTEST_FRAMEWORK_SRC)/include \
  72         $(addprefix -I,$(GTEST_TEST_SRC)), \
  73     CFLAGS_windows := -EHsc, \
  74     CFLAGS_solaris := -DGTEST_HAS_EXCEPTIONS=0 -library=stlport4, \
  75     CFLAGS_macosx := -DGTEST_OS_MAC=1, \
  76     DISABLED_WARNINGS_gcc := $(DISABLED_WARNINGS_gcc) \
  77         undef, \
  78     DISABLED_WARNINGS_clang := $(DISABLED_WARNINGS_clang) \
  79         undef switch format-nonliteral tautological-undefined-compare \
  80         self-assign-overloaded, \
  81     DISABLED_WARNINGS_solstudio := $(DISABLED_WARNINGS_solstudio) \
  82         identexpected, \


  83     LDFLAGS := $(JVM_LDFLAGS), \
  84     LDFLAGS_solaris := -library=stlport4 $(call SET_SHARED_LIBRARY_ORIGIN), \
  85     LIBS := $(JVM_LIBS), \
  86     OPTIMIZATION := $(JVM_OPTIMIZATION), \
  87     MAPFILE := $(GTEST_JVM_MAPFILE), \
  88     USE_MAPFILE_FOR_SYMBOLS := true, \
  89     COPY_DEBUG_SYMBOLS := $(GTEST_COPY_DEBUG_SYMBOLS), \
  90     ZIP_EXTERNAL_DEBUG_SYMBOLS := false, \
  91     STRIP_SYMBOLS := false, \
  92     PRECOMPILED_HEADER := $(JVM_PRECOMPILED_HEADER), \
  93     PRECOMPILED_HEADER_EXCLUDE := gtest-all.cc gtestMain.cpp, \
  94     DEFINE_THIS_FILE := false, \
  95 ))
  96 
  97 TARGETS += $(BUILD_GTEST_LIBJVM)
  98 
  99 ################################################################################
 100 
 101 $(eval $(call SetupNativeCompilation, BUILD_GTEST_LAUNCHER, \
 102     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
 103     NAME := gtestLauncher, \
 104     TYPE := EXECUTABLE, \
 105     OUTPUT_DIR := $(JVM_OUTPUTDIR)/gtest, \
 106     EXTRA_FILES := $(GTEST_LAUNCHER_SRC), \
 107     OBJECT_DIR := $(JVM_OUTPUTDIR)/gtest/launcher-objs, \
 108     CFLAGS := $(JVM_CFLAGS) -I$(GTEST_FRAMEWORK_SRC) \
 109         -I$(GTEST_FRAMEWORK_SRC)/include, \
 110     LDFLAGS := $(LDFLAGS_JDKEXE), \
 111     LDFLAGS_unix := -L$(JVM_OUTPUTDIR)/gtest $(call SET_SHARED_LIBRARY_ORIGIN), \
 112     LDFLAGS_solaris := -library=stlport4, \
 113     LIBS_linux := $(LIBCXX), \
 114     LIBS_unix := -ljvm, \
 115     LIBS_windows := $(JVM_OUTPUTDIR)/gtest/objs/jvm.lib, \
 116     COPY_DEBUG_SYMBOLS := $(GTEST_COPY_DEBUG_SYMBOLS), \
 117     ZIP_EXTERNAL_DEBUG_SYMBOLS := false, \
 118     DEFINE_THIS_FILE := false, \
 119 ))
 120 
 121 $(BUILD_GTEST_LAUNCHER): $(BUILD_GTEST_LIBJVM)
 122 
 123 TARGETS += $(BUILD_GTEST_LAUNCHER)
 124 
 125 ################################################################################


  59     NAME := jvm, \
  60     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
  61     OUTPUT_DIR := $(JVM_OUTPUTDIR)/gtest, \
  62     OBJECT_DIR := $(JVM_OUTPUTDIR)/gtest/objs, \
  63     SRC := $(GTEST_TEST_SRC), \
  64     EXCLUDES := $(JVM_EXCLUDES), \
  65     EXCLUDE_FILES := gtestLauncher.cpp, \
  66     EXCLUDE_PATTERNS := $(JVM_EXCLUDE_PATTERNS), \
  67     EXTRA_FILES := $(GTEST_FRAMEWORK_SRC)/src/gtest-all.cc, \
  68     EXTRA_OBJECT_FILES := $(filter-out %/operator_new$(OBJ_SUFFIX), \
  69         $(BUILD_LIBJVM_ALL_OBJS)), \
  70     CFLAGS := $(JVM_CFLAGS) -I$(GTEST_FRAMEWORK_SRC) \
  71         -I$(GTEST_FRAMEWORK_SRC)/include \
  72         $(addprefix -I,$(GTEST_TEST_SRC)), \
  73     CFLAGS_windows := -EHsc, \
  74     CFLAGS_solaris := -DGTEST_HAS_EXCEPTIONS=0 -library=stlport4, \
  75     CFLAGS_macosx := -DGTEST_OS_MAC=1, \
  76     DISABLED_WARNINGS_gcc := $(DISABLED_WARNINGS_gcc) \
  77         undef, \
  78     DISABLED_WARNINGS_clang := $(DISABLED_WARNINGS_clang) \
  79         undef switch format-nonliteral tautological-undefined-compare, \

  80     DISABLED_WARNINGS_solstudio := $(DISABLED_WARNINGS_solstudio) \
  81         identexpected, \
  82     DISABLED_WARNINGS_microsoft := $(DISABLED_WARNINGS_microsoft) \
  83         4996, \
  84     LDFLAGS := $(JVM_LDFLAGS), \
  85     LDFLAGS_solaris := -library=stlport4 $(call SET_SHARED_LIBRARY_ORIGIN), \
  86     LIBS := $(JVM_LIBS), \
  87     OPTIMIZATION := $(JVM_OPTIMIZATION), \
  88     MAPFILE := $(GTEST_JVM_MAPFILE), \
  89     USE_MAPFILE_FOR_SYMBOLS := true, \
  90     COPY_DEBUG_SYMBOLS := $(GTEST_COPY_DEBUG_SYMBOLS), \
  91     ZIP_EXTERNAL_DEBUG_SYMBOLS := false, \
  92     STRIP_SYMBOLS := false, \
  93     PRECOMPILED_HEADER := $(JVM_PRECOMPILED_HEADER), \
  94     PRECOMPILED_HEADER_EXCLUDE := gtest-all.cc gtestMain.cpp, \

  95 ))
  96 
  97 TARGETS += $(BUILD_GTEST_LIBJVM)
  98 
  99 ################################################################################
 100 
 101 $(eval $(call SetupNativeCompilation, BUILD_GTEST_LAUNCHER, \
 102     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
 103     NAME := gtestLauncher, \
 104     TYPE := EXECUTABLE, \
 105     OUTPUT_DIR := $(JVM_OUTPUTDIR)/gtest, \
 106     EXTRA_FILES := $(GTEST_LAUNCHER_SRC), \
 107     OBJECT_DIR := $(JVM_OUTPUTDIR)/gtest/launcher-objs, \
 108     CFLAGS := $(JVM_CFLAGS) -I$(GTEST_FRAMEWORK_SRC) \
 109         -I$(GTEST_FRAMEWORK_SRC)/include, \
 110     LDFLAGS := $(LDFLAGS_JDKEXE), \
 111     LDFLAGS_unix := -L$(JVM_OUTPUTDIR)/gtest $(call SET_SHARED_LIBRARY_ORIGIN), \
 112     LDFLAGS_solaris := -library=stlport4, \
 113     LIBS_linux := $(LIBCXX), \
 114     LIBS_unix := -ljvm, \
 115     LIBS_windows := $(JVM_OUTPUTDIR)/gtest/objs/jvm.lib, \
 116     COPY_DEBUG_SYMBOLS := $(GTEST_COPY_DEBUG_SYMBOLS), \
 117     ZIP_EXTERNAL_DEBUG_SYMBOLS := false, \

 118 ))
 119 
 120 $(BUILD_GTEST_LAUNCHER): $(BUILD_GTEST_LIBJVM)
 121 
 122 TARGETS += $(BUILD_GTEST_LAUNCHER)
 123 
 124 ################################################################################
< prev index next >