annotate make/lib/Lib-jdk.accessibility.gmk @ 17147:09038ebee480

8180307: Update JDK 9 Required Cipher Algorithms Reviewed-by: valeriep
author mullan
date Wed, 17 May 2017 08:51:46 -0400
parents b6bd1a9bf016
children
rev   line source
ptbrunet@11740 1 #
ptbrunet@16105 2 # Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
ptbrunet@11740 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ptbrunet@11740 4 #
ptbrunet@11740 5 # This code is free software; you can redistribute it and/or modify it
ptbrunet@11740 6 # under the terms of the GNU General Public License version 2 only, as
ptbrunet@11740 7 # published by the Free Software Foundation. Oracle designates this
ptbrunet@11740 8 # particular file as subject to the "Classpath" exception as provided
ptbrunet@11740 9 # by Oracle in the LICENSE file that accompanied this code.
ptbrunet@11740 10 #
ptbrunet@11740 11 # This code is distributed in the hope that it will be useful, but WITHOUT
ptbrunet@11740 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ptbrunet@11740 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ptbrunet@11740 14 # version 2 for more details (a copy is included in the LICENSE file that
ptbrunet@11740 15 # accompanied this code).
ptbrunet@11740 16 #
ptbrunet@11740 17 # You should have received a copy of the GNU General Public License version
ptbrunet@11740 18 # 2 along with this work; if not, write to the Free Software Foundation,
ptbrunet@11740 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ptbrunet@11740 20 #
ptbrunet@11740 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ptbrunet@11740 22 # or visit www.oracle.com if you need additional information or have any
ptbrunet@11740 23 # questions.
ptbrunet@11740 24 #
ptbrunet@11740 25
ptbrunet@11740 26 include LibCommon.gmk
ptbrunet@11740 27
ptbrunet@11740 28 ################################################################################
ptbrunet@11740 29
ptbrunet@11740 30 ifeq ($(OPENJDK_TARGET_OS), windows)
ptbrunet@11740 31
ptbrunet@11740 32 ROOT_SRCDIR := $(JDK_TOPDIR)/src/jdk.accessibility/windows/native
ptbrunet@11740 33 JAVA_AB_SRCDIR := $(ROOT_SRCDIR)/libjavaaccessbridge $(ROOT_SRCDIR)/common
ptbrunet@11740 34 WIN_AB_SRCDIR := $(ROOT_SRCDIR)/libwindowsaccessbridge $(ROOT_SRCDIR)/common
ptbrunet@11740 35 SYSINFO_SRCDIR := $(ROOT_SRCDIR)/libjabsysinfo
ptbrunet@11740 36 ACCESSBRIDGE_CFLAGS := -I$(SUPPORT_OUTPUTDIR)/headers/jdk.accessibility \
ptbrunet@11740 37 -I$(JDK_TOPDIR)/src/java.desktop/windows/native/include \
ptbrunet@11740 38 -I$(JDK_TOPDIR)/src/java.desktop/share/native/include
ptbrunet@11740 39
ptbrunet@11740 40 define SetupJavaDLL
ptbrunet@11740 41 # Parameter 1 Suffix
ptbrunet@11740 42 # Parameter 2 ACCESSBRIDGE_ARCH_ suffix
ptbrunet@11740 43
ptbrunet@11740 44 $(call SetupNativeCompilation,BUILD_JAVAACCESSBRIDGE$1, \
ptbrunet@11740 45 LIBRARY = javaaccessbridge$1, \
ptbrunet@11740 46 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
ptbrunet@11740 47 SRC := $(JAVA_AB_SRCDIR), \
ptbrunet@11740 48 OPTIMIZATION := LOW, \
ptbrunet@11740 49 CFLAGS := $(CFLAGS_JDKLIB) $(ACCESSBRIDGE_CFLAGS) \
ptbrunet@11740 50 $(addprefix -I,$(JAVA_AB_SRCDIR)) \
ptbrunet@16105 51 -I$(ROOT_SRCDIR)/include/bridge \
ptbrunet@11740 52 -DACCESSBRIDGE_ARCH_$2, \
ihse@12977 53 LDFLAGS := $(LDFLAGS_JDKLIB) -subsystem:windows, \
ihse@12977 54 LIBS := kernel32.lib user32.lib gdi32.lib \
ptbrunet@11740 55 winspool.lib comdlg32.lib advapi32.lib shell32.lib \
ptbrunet@11740 56 $(SUPPORT_OUTPUTDIR)/native/java.desktop/libjawt/jawt.lib \
ihse@12977 57 ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib, \
ptbrunet@11740 58 VERSIONINFO_RESOURCE := $(ROOT_SRCDIR)/common/AccessBridgeStatusWindow.rc, \
ptbrunet@11740 59 RC_FLAGS := $(RC_FLAGS) \
ptbrunet@11740 60 -D "JDK_FNAME=javaaccessbridge$1.dll" \
ptbrunet@11740 61 -D "JDK_INTERNAL_NAME=javaaccessbridge$1" \
ptbrunet@11740 62 -D "JDK_FTYPE=0x02L", \
ptbrunet@11740 63 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjavaaccessbridge$1, \
ihse@13506 64 )
ptbrunet@11740 65
ptbrunet@11740 66 $$(BUILD_JAVAACCESSBRIDGE$1): $(SUPPORT_OUTPUTDIR)/native/java.desktop/libjawt/jawt.lib
ptbrunet@11740 67
ptbrunet@11740 68 TARGETS += $$(BUILD_JAVAACCESSBRIDGE$1)
ptbrunet@11740 69 endef
ptbrunet@11740 70
ptbrunet@11740 71 define SetupWinDLL
ptbrunet@11740 72 # Parameter 1 Suffix
ptbrunet@11740 73 # Parameter 2 ACCESSBRIDGE_ARCH_ suffix
ptbrunet@11740 74 $(call SetupNativeCompilation,BUILD_WINDOWSACCESSBRIDGE$1, \
ptbrunet@11740 75 LIBRARY = windowsaccessbridge$1, \
ptbrunet@11740 76 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
ptbrunet@11740 77 SRC := $(WIN_AB_SRCDIR), \
ptbrunet@11740 78 OPTIMIZATION := LOW, \
ptbrunet@11740 79 CFLAGS := $(filter-out -MD, $(CFLAGS_JDKLIB)) -MT $(ACCESSBRIDGE_CFLAGS) \
ptbrunet@11740 80 $(addprefix -I,$(WIN_AB_SRCDIR)) \
ptbrunet@16105 81 -I$(ROOT_SRCDIR)/include/bridge \
ptbrunet@11740 82 -DACCESSBRIDGE_ARCH_$2, \
ihse@12977 83 LDFLAGS := $(LDFLAGS_JDKLIB) -subsystem:windows \
ihse@12977 84 -def:$(ROOT_SRCDIR)/libwindowsaccessbridge/WinAccessBridge.DEF, \
ihse@12977 85 LIBS := kernel32.lib user32.lib gdi32.lib \
ptbrunet@11740 86 winspool.lib comdlg32.lib advapi32.lib shell32.lib \
ihse@12977 87 ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib, \
ptbrunet@11740 88 VERSIONINFO_RESOURCE := $(ROOT_SRCDIR)/common/AccessBridgeStatusWindow.rc, \
ptbrunet@11740 89 RC_FLAGS := $(RC_FLAGS) \
ptbrunet@11740 90 -D "JDK_FNAME=windowsaccessbridge$1.dll" \
ptbrunet@11740 91 -D "JDK_INTERNAL_NAME=windowsaccessbridge$1" \
ptbrunet@11740 92 -D "JDK_FTYPE=0x02L", \
ptbrunet@11740 93 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libwindowsaccessbridge$1, \
ihse@13506 94 )
ptbrunet@11740 95
ptbrunet@11740 96 TARGETS += $$(BUILD_WINDOWSACCESSBRIDGE$1)
ptbrunet@11740 97
ptbrunet@11740 98 endef
ptbrunet@11740 99
ptbrunet@11740 100 define SetupAccessBridgeSysInfo
ptbrunet@11740 101
ptbrunet@11740 102 $(call SetupNativeCompilation,BUILD_ACCESSBRIDGESYSINFO, \
ptbrunet@11740 103 LIBRARY = jabsysinfo, \
ptbrunet@11740 104 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
ptbrunet@11740 105 SRC := $(SYSINFO_SRCDIR), \
ptbrunet@11740 106 OPTIMIZATION := LOW, \
ptbrunet@11740 107 CFLAGS := $(CFLAGS_JDKLIB) $(ACCESSBRIDGE_CFLAGS), \
ptbrunet@11740 108 LDFLAGS := $(LDFLAGS_JDKLIB) \
ptbrunet@11740 109 -subsystem:windows -machine:I386, \
ptbrunet@11740 110 VERSIONINFO_RESOURCE := $(ROOT_SRCDIR)/common/AccessBridgeStatusWindow.rc, \
ptbrunet@11740 111 RC_FLAGS := $(RC_FLAGS) \
ptbrunet@11740 112 -D "JDK_FNAME=jabsysinfo.dll" \
ptbrunet@11740 113 -D "JDK_INTERNAL_NAME=jabsysinfo" \
ptbrunet@11740 114 -D "JDK_FTYPE=0x02L", \
ptbrunet@11740 115 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/lib/libjabsysinfo, \
ihse@13506 116 )
ptbrunet@11740 117
ptbrunet@11740 118 TARGETS += $$(BUILD_ACCESSBRIDGESYSINFO)
ptbrunet@11740 119
ptbrunet@11740 120 endef
ptbrunet@11740 121
ptbrunet@11740 122 ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
ptbrunet@11740 123 $(eval $(call SetupAccessBridgeSysInfo))
ptbrunet@11740 124 $(eval $(call SetupJavaDLL,-32,32))
ptbrunet@11740 125 $(eval $(call SetupJavaDLL,,LEGACY))
ptbrunet@11740 126 $(eval $(call SetupWinDLL,-32,32))
ptbrunet@11740 127 $(eval $(call SetupWinDLL,,LEGACY))
ptbrunet@11740 128 else
ptbrunet@11740 129 $(eval $(call SetupJavaDLL,,64))
ptbrunet@11740 130 $(eval $(call SetupWinDLL,-64,64))
ptbrunet@11740 131 endif
ptbrunet@11740 132
ptbrunet@11740 133 endif
ptbrunet@11740 134
ptbrunet@11740 135 ################################################################################