1 #
   2 # Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
   3 # ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
   4 #
   5 
   6 include LauncherCommon.gmk
   7 
   8 ################################################################################
   9 # jabswitch
  10 
  11 ifeq ($(OPENJDK_TARGET_OS), windows)
  12 
  13   JABSWITCH_SRC := $(JDK_TOPDIR)/src/closed/jdk.accessbridge/windows/native/jabswitch
  14   ACCESSBRIDGE_SRC := $(JDK_TOPDIR)/src/closed/jdk.accessbridge/windows/native/libaccessbridge
  15 
  16   $(eval $(call SetupNativeCompilation,BUILD_JABSWITCH, \
  17       SRC := $(JABSWITCH_SRC), \
  18       INCLUDE_FILES := jabswitch.cpp, \
  19       LANG := C++, \
  20       CFLAGS := $(filter-out -Zc:wchar_t-, $(CFLAGS_JDKEXE)) -Zc:wchar_t \
  21           -analyze- -Od -Gd -D_WINDOWS \
  22           -D_UNICODE -DUNICODE -RTC1 -EHsc, \
  23       DISABLED_WARNINGS_microsoft := 4267, \
  24       LDFLAGS := $(LDFLAGS_JDKEXE) \
  25           Advapi32.lib Version.lib User32.lib, \
  26       OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/jdk.accessbridge/jabswitch, \
  27       OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_cmds/jdk.accessbridge, \
  28       PROGRAM := jabswitch, \
  29       DEBUG_SYMBOLS := true, \
  30       VERSIONINFO_RESOURCE := $(ACCESSBRIDGE_SRC)/AccessBridgeStatusWindow.RC, \
  31       RC_FLAGS := $(RC_FLAGS) \
  32           -D "JDK_FNAME=jabswitch.exe" \
  33           -D "JDK_INTERNAL_NAME=jabswitch" \
  34           -D "JDK_FTYPE=0x01L", \
  35       MANIFEST := $(JABSWITCH_SRC)/jabswitch.manifest))
  36 
  37   TARGETS += $(BUILD_JABSWITCH)
  38 endif
  39 
  40 ################################################################################