< prev index next >

make/hotspot/ide/CreateVSProject.gmk

Print this page




  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 # This must be the first rule
  27 default: all
  28 
  29 include $(SPEC)
  30 include MakeBase.gmk
  31 include JavaCompilation.gmk
  32 include SetupJavaCompilers.gmk
  33 
  34 ifeq ($(OPENJDK_TARGET_OS), windows)
  35   # The next part is a bit hacky. We include the CompileJvm.gmk to be
  36   # able to extact flags, but we do not wish to execute the rules.
  37 
  38   # Use client as base for defines and includes
  39   JVM_VARIANT=client
  40 
  41   include HotspotCommon.gmk
  42   include lib/CompileJvm.gmk
  43 
  44   # Reset targets so we don't build libjvm.
  45   TARGETS :=
  46 
  47   # Helper macro to convert a unix path to a Windows path, suitable for
  48   # inclusion in a command line.
  49   ifeq ($(OPENJDK_BUILD_OS_ENV), windows.cygwin)
  50     FixPath = \
  51         $(strip $(subst \,\\,$(shell $(CYGPATH) -w $1)))
  52     FixLinuxExecutable = \
  53         $(call FixPath, $1)
  54   else ifeq ($(OPENJDK_BUILD_OS_ENV), windows.wsl)
  55     FixPath = \
  56         $(strip $(subst \,\\,$(shell $(WSLPATH) -w $1)))
  57     FixLinuxExecutable = \
  58         "%windir%\Sysnative\wsl.exe $1"
  59   endif
  60 
  61   JVM_DEFINES_client := $(patsubst -D%,%, $(filter -D%, $(JVM_CFLAGS)))
  62   EXTRACTED_DEFINES_client := $(addprefix -define , $(JVM_DEFINES_client))
  63 
  64   JVM_INCLUDES_client := $(patsubst -I%,%, $(filter -I%, $(JVM_CFLAGS)))
  65   EXTRACTED_INCLUDES_client := $(foreach path, $(JVM_INCLUDES_client), -absoluteInclude $(call FixPath, $(path)))
  66 
  67   # Hand-code variant-specific arguments, based on the fact that we use
  68   # client for general arguments. Not optimal but other solutions require
  69   # major changes in ProjectCreator.
  70   ADDITIONAL_VARIANT_ARGS := \
  71       -define_server COMPILER2 \
  72       -ignorePath_client adfiles \
  73       -ignorePath_client c2_ \
  74       -ignorePath_client runtime_ \




  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 # This must be the first rule
  27 default: all
  28 
  29 include $(SPEC)
  30 include MakeBase.gmk
  31 include JavaCompilation.gmk
  32 include SetupJavaCompilers.gmk
  33 
  34 ifeq ($(call isTargetOs, windows), true)
  35   # The next part is a bit hacky. We include the CompileJvm.gmk to be
  36   # able to extact flags, but we do not wish to execute the rules.
  37 
  38   # Use client as base for defines and includes
  39   JVM_VARIANT=client
  40 
  41   include HotspotCommon.gmk
  42   include lib/CompileJvm.gmk
  43 
  44   # Reset targets so we don't build libjvm.
  45   TARGETS :=
  46 
  47   # Helper macro to convert a unix path to a Windows path, suitable for
  48   # inclusion in a command line.
  49   ifeq ($(call isBuildOsEnv, windows.cygwin), true)
  50     FixPath = \
  51         $(strip $(subst \,\\,$(shell $(CYGPATH) -w $1)))
  52     FixLinuxExecutable = \
  53         $(call FixPath, $1)
  54   else ifeq ($(call isBuildOsEnv, windows.wsl), true)
  55     FixPath = \
  56         $(strip $(subst \,\\,$(shell $(WSLPATH) -w $1)))
  57     FixLinuxExecutable = \
  58         "%windir%\Sysnative\wsl.exe $1"
  59   endif
  60 
  61   JVM_DEFINES_client := $(patsubst -D%,%, $(filter -D%, $(JVM_CFLAGS)))
  62   EXTRACTED_DEFINES_client := $(addprefix -define , $(JVM_DEFINES_client))
  63 
  64   JVM_INCLUDES_client := $(patsubst -I%,%, $(filter -I%, $(JVM_CFLAGS)))
  65   EXTRACTED_INCLUDES_client := $(foreach path, $(JVM_INCLUDES_client), -absoluteInclude $(call FixPath, $(path)))
  66 
  67   # Hand-code variant-specific arguments, based on the fact that we use
  68   # client for general arguments. Not optimal but other solutions require
  69   # major changes in ProjectCreator.
  70   ADDITIONAL_VARIANT_ARGS := \
  71       -define_server COMPILER2 \
  72       -ignorePath_client adfiles \
  73       -ignorePath_client c2_ \
  74       -ignorePath_client runtime_ \


< prev index next >