make/launcher/Launcher-jdk.accessibility.gmk
author rgoel
Mon, 17 Sep 2018 14:16:31 +0530
changeset 51763 caef940517be
parent 49244 995a5556edfa
child 53683 48ff68e2fe5c
child 56723 d927981eeb64
permissions -rw-r--r--
8210490: TimeZone.getDisplayName given Locale.US doesn't always honor the Locale. Summary: specified locale for formatting.. Reviewed-by: naoto
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
29883
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
     1
#
49070
d7859531621b 8198751: Refactor SetupNativeCompilation to take NAME and TYPE
ihse
parents: 47217
diff changeset
     2
# Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
29883
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
     4
#
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    10
#
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    15
# accompanied this code).
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    16
#
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    20
#
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    23
# questions.
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    24
#
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    25
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    26
include LauncherCommon.gmk
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    27
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    28
################################################################################
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    29
# jabswitch
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    30
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    31
ifeq ($(OPENJDK_TARGET_OS), windows)
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    32
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    33
  JABSWITCH_SRC := $(TOPDIR)/src/jdk.accessibility/windows/native/jabswitch
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    34
  ACCESSBRIDGE_SRC := $(TOPDIR)/src/jdk.accessibility/windows/native/common
29883
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    35
49244
995a5556edfa 8199639: Introduce SetupJdkLibrary and SetupJdkExecutable
ihse
parents: 49070
diff changeset
    36
  $(eval $(call SetupJdkExecutable, BUILD_JABSWITCH, \
49070
d7859531621b 8198751: Refactor SetupNativeCompilation to take NAME and TYPE
ihse
parents: 47217
diff changeset
    37
      NAME := jabswitch, \
29883
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    38
      SRC := $(JABSWITCH_SRC), \
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    39
      INCLUDE_FILES := jabswitch.cpp, \
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    40
      CFLAGS := $(filter-out -Zc:wchar_t-, $(CFLAGS_JDKEXE)) -Zc:wchar_t \
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    41
          -analyze- -Od -Gd -D_WINDOWS \
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    42
          -D_UNICODE -DUNICODE -RTC1 -EHsc, \
30434
6b881118c93b 8074859: Turn on warnings as error
ihse
parents: 29931
diff changeset
    43
      DISABLED_WARNINGS_microsoft := 4267 4996, \
33406
4680f7495292 8140661: Rename LDFLAGS_SUFFIX to LIBS
ihse
parents: 30434
diff changeset
    44
      LDFLAGS := $(LDFLAGS_JDKEXE), \
4680f7495292 8140661: Rename LDFLAGS_SUFFIX to LIBS
ihse
parents: 30434
diff changeset
    45
      LIBS := advapi32.lib version.lib user32.lib, \
29883
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    46
      VERSIONINFO_RESOURCE := $(ACCESSBRIDGE_SRC)/AccessBridgeStatusWindow.RC, \
29925
6d47adfc6b47 8077847: Better handling of Windows executable manifest version
ihse
parents: 29883
diff changeset
    47
      MANIFEST := $(JABSWITCH_SRC)/jabswitch.manifest, \
33984
2333676816eb 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 30434
diff changeset
    48
      MANIFEST_VERSION := $(VERSION_NUMBER_FOUR_POSITIONS), \
29925
6d47adfc6b47 8077847: Better handling of Windows executable manifest version
ihse
parents: 29883
diff changeset
    49
  ))
29883
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    50
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
    51
  TARGETS += $(BUILD_JABSWITCH)
34411
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    52
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    53
################################################################################
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    54
# jaccessinspector
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    55
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    56
  TOPDIR := $(TOPDIR)/src/jdk.accessibility/windows/native
34411
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    57
  TOOLS_CFLAGS := $(addprefix -I, \
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    58
      $(TOPDIR)/include/bridge \
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    59
      $(TOPDIR)/common \
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    60
      $(TOPDIR)/toolscommon)
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    61
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    62
  define SetupInspector
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    63
  # Parameter 1 File name suffix
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    64
  # Parameter 2 ACCESSBRIDGE_ARCH_ -D suffix
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    65
49244
995a5556edfa 8199639: Introduce SetupJdkLibrary and SetupJdkExecutable
ihse
parents: 49070
diff changeset
    66
    $$(eval $$(call SetupJdkExecutable, BUILD_JACCESSINSPECTOR$1, \
49070
d7859531621b 8198751: Refactor SetupNativeCompilation to take NAME and TYPE
ihse
parents: 47217
diff changeset
    67
      NAME := jaccessinspector$1, \
34411
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    68
      SRC := $(TOPDIR)/jaccessinspector $(TOPDIR)/common \
42187
b2f0bdbfd4f2 8167213: Re-examine the alternative to deliver include/bridge/AccessBridgeCalls.c
ptbrunet
parents: 35276
diff changeset
    69
          $(TOPDIR)/toolscommon $(TOPDIR)/bridge, \
34784
43a8becc16f3 8143895: Fix LDFLAGS issues after JDK-8056925
erikj
parents: 34411
diff changeset
    70
      CFLAGS := $$(CFLAGS_JDKEXE) $(TOOLS_CFLAGS) -DACCESSBRIDGE_ARCH_$2 -EHsc, \
43a8becc16f3 8143895: Fix LDFLAGS issues after JDK-8056925
erikj
parents: 34411
diff changeset
    71
      LDFLAGS := $$(LDFLAGS_JDKEXE) -stack:655360, \
43a8becc16f3 8143895: Fix LDFLAGS issues after JDK-8056925
erikj
parents: 34411
diff changeset
    72
      LIBS := advapi32.lib user32.lib, \
34411
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    73
      VERSIONINFO_RESOURCE := $(TOPDIR)/jaccessinspector/jaccessinspectorWindow.rc, \
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    74
    ))
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    75
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    76
    TARGETS += $$(BUILD_JACCESSINSPECTOR$1)
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    77
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    78
  endef
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    79
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    80
################################################################################
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    81
# jaccesswalker
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    82
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    83
  define SetupWalker
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    84
  # Parameter 1 File name suffix
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    85
  # Parameter 2 ACCESSBRIDGE_ARCH_ -D suffix
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    86
49244
995a5556edfa 8199639: Introduce SetupJdkLibrary and SetupJdkExecutable
ihse
parents: 49070
diff changeset
    87
    $$(eval $$(call SetupJdkExecutable, BUILD_JACCESSWALKER$1, \
49070
d7859531621b 8198751: Refactor SetupNativeCompilation to take NAME and TYPE
ihse
parents: 47217
diff changeset
    88
      NAME := jaccesswalker$1, \
34411
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    89
      SRC := $(TOPDIR)/jaccesswalker $(TOPDIR)/common \
42187
b2f0bdbfd4f2 8167213: Re-examine the alternative to deliver include/bridge/AccessBridgeCalls.c
ptbrunet
parents: 35276
diff changeset
    90
          $(TOPDIR)/toolscommon $(TOPDIR)/bridge, \
34784
43a8becc16f3 8143895: Fix LDFLAGS issues after JDK-8056925
erikj
parents: 34411
diff changeset
    91
      CFLAGS := $$(CFLAGS_JDKEXE) $(TOOLS_CFLAGS) -DACCESSBRIDGE_ARCH_$2 -EHsc, \
43a8becc16f3 8143895: Fix LDFLAGS issues after JDK-8056925
erikj
parents: 34411
diff changeset
    92
      LDFLAGS := $$(LDFLAGS_JDKEXE) -stack:655360, \
43a8becc16f3 8143895: Fix LDFLAGS issues after JDK-8056925
erikj
parents: 34411
diff changeset
    93
      LIBS := advapi32.lib comctl32.lib gdi32.lib user32.lib, \
34411
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    94
      VERSIONINFO_RESOURCE := $(TOPDIR)/jaccesswalker/jaccesswalkerWindow.rc, \
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    95
   ))
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    96
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    97
    TARGETS += $$(BUILD_JACCESSWALKER$1)
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    98
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
    99
  endef
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
   100
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
   101
  ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
   102
    $(eval $(call SetupInspector,-32,32))
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
   103
    $(eval $(call SetupWalker,-32,32))
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
   104
    $(eval $(call SetupInspector,,LEGACY))
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
   105
    $(eval $(call SetupWalker,,LEGACY))
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
   106
  else
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
   107
    $(eval $(call SetupInspector,,64))
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
   108
    $(eval $(call SetupWalker,,64))
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
   109
  endif
b46324665539 8056925: Add jaccessinspector and jaccesswalker to the bin directory
ptbrunet
parents: 33406
diff changeset
   110
29883
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
   111
endif
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
   112
e02d168adbc6 8076182: Open Source Java Access Bridge - Create Patch for JEP C127 8055831
ptbrunet
parents:
diff changeset
   113
################################################################################