annotate make/launcher/Launcher-jdk.accessibility.gmk @ 13506:b6bd1a9bf016

8145596: Enable debug symbols for all libraries Reviewed-by: erikj
author ihse
date Wed, 20 Jan 2016 09:54:13 +0100
parents 768308605946
children e76e59c144d6
rev   line source
ptbrunet@11740 1 #
ptbrunet@11740 2 # Copyright (c) 2014, 2015, 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 LauncherCommon.gmk
ptbrunet@11740 27
ptbrunet@11740 28 ################################################################################
ptbrunet@11740 29 # jabswitch
ptbrunet@11740 30
ptbrunet@11740 31 ifeq ($(OPENJDK_TARGET_OS), windows)
ptbrunet@11740 32
ptbrunet@11740 33 JABSWITCH_SRC := $(JDK_TOPDIR)/src/jdk.accessibility/windows/native/jabswitch
ptbrunet@11740 34 ACCESSBRIDGE_SRC := $(JDK_TOPDIR)/src/jdk.accessibility/windows/native/common
ptbrunet@11740 35
ptbrunet@11740 36 $(eval $(call SetupNativeCompilation,BUILD_JABSWITCH, \
ptbrunet@11740 37 SRC := $(JABSWITCH_SRC), \
ptbrunet@11740 38 INCLUDE_FILES := jabswitch.cpp, \
ptbrunet@11740 39 CFLAGS := $(filter-out -Zc:wchar_t-, $(CFLAGS_JDKEXE)) -Zc:wchar_t \
ptbrunet@11740 40 -analyze- -Od -Gd -D_WINDOWS \
ptbrunet@11740 41 -D_UNICODE -DUNICODE -RTC1 -EHsc, \
ihse@11891 42 DISABLED_WARNINGS_microsoft := 4267 4996, \
ihse@12977 43 LDFLAGS := $(LDFLAGS_JDKEXE), \
ihse@12977 44 LIBS := advapi32.lib version.lib user32.lib, \
ptbrunet@11740 45 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/jdk.accessibility/jabswitch, \
ptbrunet@11740 46 OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_cmds/jdk.accessibility, \
ptbrunet@11740 47 PROGRAM := jabswitch, \
ptbrunet@11740 48 VERSIONINFO_RESOURCE := $(ACCESSBRIDGE_SRC)/AccessBridgeStatusWindow.RC, \
ptbrunet@11740 49 RC_FLAGS := $(RC_FLAGS) \
ptbrunet@11740 50 -D "JDK_FNAME=jabswitch.exe" \
ptbrunet@11740 51 -D "JDK_INTERNAL_NAME=jabswitch" \
ptbrunet@11740 52 -D "JDK_FTYPE=0x01L", \
ihse@11782 53 MANIFEST := $(JABSWITCH_SRC)/jabswitch.manifest, \
ihse@13115 54 MANIFEST_VERSION := $(VERSION_NUMBER_FOUR_POSITIONS), \
ihse@11782 55 ))
ptbrunet@11740 56
ptbrunet@11740 57 TARGETS += $(BUILD_JABSWITCH)
ptbrunet@13237 58
ptbrunet@13237 59 ################################################################################
ptbrunet@13237 60 # jaccessinspector
ptbrunet@13237 61
ptbrunet@13237 62 TOPDIR := $(JDK_TOPDIR)/src/jdk.accessibility/windows/native
ptbrunet@13237 63 TOOLS_CFLAGS := $(addprefix -I, \
ptbrunet@13237 64 $(TOPDIR)/include/bridge \
ptbrunet@13237 65 $(TOPDIR)/common \
ptbrunet@13237 66 $(TOPDIR)/toolscommon)
ptbrunet@13237 67
ptbrunet@13237 68 define SetupInspector
ptbrunet@13237 69 # Parameter 1 File name suffix
ptbrunet@13237 70 # Parameter 2 ACCESSBRIDGE_ARCH_ -D suffix
ptbrunet@13237 71
ptbrunet@13237 72 $$(eval $$(call SetupNativeCompilation, BUILD_JACCESSINSPECTOR$1, \
ptbrunet@13237 73 SRC := $(TOPDIR)/jaccessinspector $(TOPDIR)/common \
ptbrunet@13237 74 $(TOPDIR)/toolscommon $(TOPDIR)/include/bridge, \
erikj@13354 75 CFLAGS := $$(CFLAGS_JDKEXE) $(TOOLS_CFLAGS) -DACCESSBRIDGE_ARCH_$2 -EHsc, \
erikj@13354 76 LDFLAGS := $$(LDFLAGS_JDKEXE) -stack:655360, \
erikj@13354 77 LIBS := advapi32.lib user32.lib, \
ptbrunet@13237 78 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/jdk.accessibility/jaccessinspector$1, \
ptbrunet@13237 79 OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_cmds/jdk.accessibility, \
ptbrunet@13237 80 PROGRAM := jaccessinspector$1, \
ptbrunet@13237 81 VERSIONINFO_RESOURCE := $(TOPDIR)/jaccessinspector/jaccessinspectorWindow.rc, \
ptbrunet@13237 82 RC_FLAGS := $$(RC_FLAGS) \
ptbrunet@13237 83 -D "JDK_FNAME=jaccessinspector$1.exe" \
ptbrunet@13237 84 -D "JDK_INTERNAL_NAME=jaccessinspector$1" \
ptbrunet@13237 85 -D "JDK_FTYPE=0x01L", \
ptbrunet@13237 86 ))
ptbrunet@13237 87
ptbrunet@13237 88 TARGETS += $$(BUILD_JACCESSINSPECTOR$1)
ptbrunet@13237 89
ptbrunet@13237 90 endef
ptbrunet@13237 91
ptbrunet@13237 92 ################################################################################
ptbrunet@13237 93 # jaccesswalker
ptbrunet@13237 94
ptbrunet@13237 95 define SetupWalker
ptbrunet@13237 96 # Parameter 1 File name suffix
ptbrunet@13237 97 # Parameter 2 ACCESSBRIDGE_ARCH_ -D suffix
ptbrunet@13237 98
ptbrunet@13237 99 $$(eval $$(call SetupNativeCompilation,BUILD_JACCESSWALKER$1, \
ptbrunet@13237 100 SRC := $(TOPDIR)/jaccesswalker $(TOPDIR)/common \
ptbrunet@13237 101 $(TOPDIR)/toolscommon $(TOPDIR)/include/bridge, \
erikj@13354 102 CFLAGS := $$(CFLAGS_JDKEXE) $(TOOLS_CFLAGS) -DACCESSBRIDGE_ARCH_$2 -EHsc, \
erikj@13354 103 LDFLAGS := $$(LDFLAGS_JDKEXE) -stack:655360, \
erikj@13354 104 LIBS := advapi32.lib comctl32.lib gdi32.lib user32.lib, \
ptbrunet@13237 105 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/jdk.accessibility/jaccesswalker$1, \
ptbrunet@13237 106 OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_cmds/jdk.accessibility, \
ptbrunet@13237 107 PROGRAM := jaccesswalker$1, \
ptbrunet@13237 108 VERSIONINFO_RESOURCE := $(TOPDIR)/jaccesswalker/jaccesswalkerWindow.rc, \
ptbrunet@13237 109 RC_FLAGS := $$(RC_FLAGS) \
ptbrunet@13237 110 -D "JDK_FNAME=jaccesswalker$1.exe" \
ptbrunet@13237 111 -D "JDK_INTERNAL_NAME=jaccesswalker$1" \
ptbrunet@13237 112 -D "JDK_FTYPE=0x01L", \
ptbrunet@13237 113 ))
ptbrunet@13237 114
ptbrunet@13237 115 TARGETS += $$(BUILD_JACCESSWALKER$1)
ptbrunet@13237 116
ptbrunet@13237 117 endef
ptbrunet@13237 118
ptbrunet@13237 119 ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
ptbrunet@13237 120 $(eval $(call SetupInspector,-32,32))
ptbrunet@13237 121 $(eval $(call SetupWalker,-32,32))
ptbrunet@13237 122 $(eval $(call SetupInspector,,LEGACY))
ptbrunet@13237 123 $(eval $(call SetupWalker,,LEGACY))
ptbrunet@13237 124 else
ptbrunet@13237 125 $(eval $(call SetupInspector,,64))
ptbrunet@13237 126 $(eval $(call SetupWalker,,64))
ptbrunet@13237 127 endif
ptbrunet@13237 128
ptbrunet@11740 129 endif
ptbrunet@11740 130
ptbrunet@11740 131 ################################################################################