make/hotspot/lib/CompileGtest.gmk
branchihse-nativecompilation-branch
changeset 56197 8fcca3163b7f
parent 47314 743814386712
child 56723 d927981eeb64
equal deleted inserted replaced
56196:a96f5d80fa35 56197:8fcca3163b7f
     1 #
     1 #
     2 # Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
    61 # But we want to avoid imposing -qpic=large onto the regular libjvm.so, which
    61 # But we want to avoid imposing -qpic=large onto the regular libjvm.so, which
    62 # has no problem with its TOC, so do this only for object files which are
    62 # has no problem with its TOC, so do this only for object files which are
    63 # exclusive to the gtest libjvm.so.
    63 # exclusive to the gtest libjvm.so.
    64 
    64 
    65 $(eval $(call SetupNativeCompilation, BUILD_GTEST_LIBJVM, \
    65 $(eval $(call SetupNativeCompilation, BUILD_GTEST_LIBJVM, \
       
    66     NAME := jvm, \
    66     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
    67     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
    67     LIBRARY := jvm, \
       
    68     OUTPUT_DIR := $(JVM_OUTPUTDIR)/gtest, \
    68     OUTPUT_DIR := $(JVM_OUTPUTDIR)/gtest, \
    69     OBJECT_DIR := $(JVM_OUTPUTDIR)/gtest/objs, \
    69     OBJECT_DIR := $(JVM_OUTPUTDIR)/gtest/objs, \
    70     SRC := $(GTEST_TEST_SRC), \
    70     SRC := $(GTEST_TEST_SRC), \
    71     EXCLUDES := $(JVM_EXCLUDES), \
    71     EXCLUDES := $(JVM_EXCLUDES), \
    72     EXCLUDE_FILES := gtestLauncher.cpp, \
    72     EXCLUDE_FILES := gtestLauncher.cpp, \
   105 
   105 
   106 ################################################################################
   106 ################################################################################
   107 
   107 
   108 $(eval $(call SetupNativeCompilation, BUILD_GTEST_LAUNCHER, \
   108 $(eval $(call SetupNativeCompilation, BUILD_GTEST_LAUNCHER, \
   109     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
   109     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
   110     PROGRAM := gtestLauncher, \
   110     NAME := gtestLauncher, \
       
   111     TYPE := EXECUTABLE, \
   111     OUTPUT_DIR := $(JVM_OUTPUTDIR)/gtest, \
   112     OUTPUT_DIR := $(JVM_OUTPUTDIR)/gtest, \
   112     EXTRA_FILES := $(GTEST_LAUNCHER_SRC), \
   113     EXTRA_FILES := $(GTEST_LAUNCHER_SRC), \
   113     OBJECT_DIR := $(JVM_OUTPUTDIR)/gtest/launcher-objs, \
   114     OBJECT_DIR := $(JVM_OUTPUTDIR)/gtest/launcher-objs, \
   114     CFLAGS := $(JVM_CFLAGS) -I$(GTEST_FRAMEWORK_SRC) \
   115     CFLAGS := $(JVM_CFLAGS) -I$(GTEST_FRAMEWORK_SRC) \
   115         -I$(GTEST_FRAMEWORK_SRC)/include, \
   116         -I$(GTEST_FRAMEWORK_SRC)/include, \