jdk/make/lib/PlatformLibraries.gmk
author katleman
Thu, 17 Apr 2014 10:14:07 -0700
changeset 23965 987510c49ac7
parent 23607 e019220f8ee8
child 24699 3ca47cd995d3
permissions -rw-r--r--
Added tag jdk9-b09 for changeset 16bad6bc066b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     1
#
23607
e019220f8ee8 8032443: Java Access Bridge version strings need to be fixed
ptbrunet
parents: 22957
diff changeset
     2
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     4
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    10
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    15
# accompanied this code).
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    16
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    20
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    23
# questions.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    24
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    25
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    26
ifeq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    27
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    28
  $(eval $(call SetupNativeCompilation,BUILD_LIBAPPLESCRIPTENGINE, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    29
      LIBRARY := AppleScriptEngine, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    30
      OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    31
      SRC := $(JDK_TOPDIR)/src/macosx/native/apple/applescript, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    32
      LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    33
      OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    34
      CFLAGS := $(CFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    35
          -I$(JDK_TOPDIR)/src/macosx/native/apple/applescript \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    36
          -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    37
          -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    38
      LDFLAGS := $(LDFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    39
          $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    40
      LDFLAGS_SUFFIX := -framework Cocoa \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    41
          -framework Carbon \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    42
          -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    43
          -framework JavaNativeFoundation \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    44
          $(LDFLAGS_JDKLIB_SUFFIX), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    45
      OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libAppleScriptEngine, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    46
      DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    47
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    48
  $(BUILD_LIBAPPLESCRIPTENGINE): $(BUILD_LIBJAVA)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    49
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    50
  BUILD_LIBRARIES += $(BUILD_LIBAPPLESCRIPTENGINE)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    51
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    52
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    53
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    54
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    55
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    56
ifeq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    57
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    58
  $(eval $(call SetupNativeCompilation,BUILD_LIBOSXAPP, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    59
      LIBRARY := osxapp, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    60
      OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    61
      SRC := $(JDK_TOPDIR)/src/macosx/native/sun/osxapp, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    62
      LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    63
      OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    64
      CFLAGS := $(CFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    65
          -I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \
22957
99352a8b3052 8034173: Move JavaApp.icns to proper place in make/data
erikj
parents: 22951
diff changeset
    66
          -I$(JDK_OUTPUTDIR)/gensrc_headers_icons \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    67
          -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    68
          -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    69
      LDFLAGS := $(LDFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    70
          $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    71
      LDFLAGS_SUFFIX_macosx := \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    72
          -framework Accelerate \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    73
          -framework ApplicationServices \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    74
          -framework AudioToolbox \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    75
          -framework Carbon \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    76
          -framework Cocoa \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    77
          -framework Security \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    78
          -framework ExceptionHandling \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    79
          -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    80
          -framework JavaNativeFoundation \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    81
          -framework JavaRuntimeSupport \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    82
          -framework OpenGL \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    83
          -framework IOSurface \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    84
          -framework QuartzCore, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    85
      OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libosxapp, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    86
      DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    87
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    88
  BUILD_LIBRARIES += $(BUILD_LIBOSXAPP)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    89
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    90
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    91
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    92
##########################################################################################
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    93
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    94
ifeq ($(OPENJDK_TARGET_OS), macosx)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    95
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    96
  LIBOSX_DIRS := \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    97
      $(JDK_TOPDIR)/src/macosx/native/com/apple/concurrent \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    98
      $(JDK_TOPDIR)/src/macosx/native/com/apple/eio \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    99
      $(JDK_TOPDIR)/src/macosx/native/apple/security \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   100
      $(JDK_TOPDIR)/src/macosx/native/apple/launcher
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   101
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   102
  $(eval $(call SetupNativeCompilation,BUILD_LIBOSX, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   103
      LIBRARY := osx, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   104
      OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   105
      SRC := $(LIBOSX_DIRS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   106
      LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   107
      OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   108
      CFLAGS := $(CFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   109
          $(foreach dir, $(LIBOSX_DIRS), -I$(dir)) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   110
          -I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   111
          -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   112
          -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   113
      LDFLAGS := $(LDFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   114
          $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   115
      LDFLAGS_SUFFIX_macosx := \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   116
          -losxapp \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   117
          -framework Cocoa \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   118
          -framework ApplicationServices \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   119
          -F/System/Library/Frameworks/JavaVM.framework/Frameworks \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   120
          -framework JavaNativeFoundation \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   121
          -framework JavaRuntimeSupport \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   122
          -framework Security \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   123
          -framework SystemConfiguration \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   124
          $(LDFLAGS_JDKLIB_SUFFIX), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   125
      OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libosx, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   126
      DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   127
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   128
  BUILD_LIBRARIES += $(BUILD_LIBOSX)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   129
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   130
  $(BUILD_LIBOSX): $(BUILD_LIBOSXAPP)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   131
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   132
  $(BUILD_LIBOSX): $(BUILD_LIBJAVA)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   133
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   134
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   135
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   136
##########################################################################################
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   137
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
   138
ifndef OPENJDK
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   139
  ifeq ($(OPENJDK_TARGET_OS), windows)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   140
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   141
    ACCESSBRIDGE_SRCDIR := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   142
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   143
    define SetupAccessBridge
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   144
      # Parameter 1 Suffix
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   145
      # Parameter 2 Machine
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   146
      # Parameter 3 ACCESSBRIDGE_ARCH_ suffix
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   147
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   148
      $(call SetupNativeCompilation,BUILD_JAWTACCESSBRIDGE$1, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   149
          LIBRARY = JAWTAccessBridge$1, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   150
          OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   151
          SRC := $(ACCESSBRIDGE_SRCDIR), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   152
          INCLUDE_FILES := JAWTAccessBridge.cpp, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   153
          LANG := C++, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   154
          OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   155
          CFLAGS := $(CFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   156
              -DACCESSBRIDGE_ARCH_$3, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   157
          LDFLAGS := $(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   158
              winspool.lib jawt.lib comdlg32.lib advapi32.lib shell32.lib \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   159
              ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   160
              -subsystem:windows -machine:$2 \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   161
              -def:$(ACCESSBRIDGE_SRCDIR)/JAWTAccessBridge.DEF, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   162
          VERSIONINFO_RESOURCE := $(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc, \
23607
e019220f8ee8 8032443: Java Access Bridge version strings need to be fixed
ptbrunet
parents: 22957
diff changeset
   163
          RC_FLAGS := $(RC_FLAGS) \
e019220f8ee8 8032443: Java Access Bridge version strings need to be fixed
ptbrunet
parents: 22957
diff changeset
   164
              -D "JDK_FNAME=JAWTAccessBridge$1.dll" \
e019220f8ee8 8032443: Java Access Bridge version strings need to be fixed
ptbrunet
parents: 22957
diff changeset
   165
              -D "JDK_INTERNAL_NAME=JAWTAccessBridge$1" \
e019220f8ee8 8032443: Java Access Bridge version strings need to be fixed
ptbrunet
parents: 22957
diff changeset
   166
              -D "JDK_FTYPE=0x02L", \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   167
          OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjawtaccessbridge$1, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   168
          DEBUG_SYMBOLS := true)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   169
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   170
      $$(BUILD_JAWTACCESSBRIDGE$1): $(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   171
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   172
      $(call SetupNativeCompilation,BUILD_JAVAACCESSBRIDGE$1, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   173
          LIBRARY = JavaAccessBridge$1, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   174
          OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   175
          SRC := $(ACCESSBRIDGE_SRCDIR), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   176
          INCLUDE_FILES := AccessBridgeATInstance.cpp AccessBridgeDebug.cpp \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   177
              AccessBridgeJavaEntryPoints.cpp \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   178
              AccessBridgeMessages.cpp JavaAccessBridge.cpp, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   179
          LANG := C++, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   180
          OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   181
          CFLAGS := $(CFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   182
              -DACCESSBRIDGE_ARCH_$3, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   183
          LDFLAGS := $(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   184
              winspool.lib comdlg32.lib advapi32.lib shell32.lib \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   185
              ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   186
              -subsystem:windows -machine:$2 \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   187
              -def:$(ACCESSBRIDGE_SRCDIR)/JavaAccessBridge.DEF, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   188
          VERSIONINFO_RESOURCE := $(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc, \
23607
e019220f8ee8 8032443: Java Access Bridge version strings need to be fixed
ptbrunet
parents: 22957
diff changeset
   189
          RC_FLAGS := $(RC_FLAGS) \
e019220f8ee8 8032443: Java Access Bridge version strings need to be fixed
ptbrunet
parents: 22957
diff changeset
   190
              -D "JDK_FNAME=JavaAccessBridge$1.dll" \
e019220f8ee8 8032443: Java Access Bridge version strings need to be fixed
ptbrunet
parents: 22957
diff changeset
   191
              -D "JDK_INTERNAL_NAME=JavaAccessBridge$1" \
e019220f8ee8 8032443: Java Access Bridge version strings need to be fixed
ptbrunet
parents: 22957
diff changeset
   192
              -D "JDK_FTYPE=0x02L", \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   193
          OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjavaaccessbridge$1, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   194
          DEBUG_SYMBOLS := true)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   195
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   196
      $(call SetupNativeCompilation,BUILD_WINDOWSACCESSBRIDGE$1, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   197
          LIBRARY = WindowsAccessBridge$1, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   198
          OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   199
          SRC := $(ACCESSBRIDGE_SRCDIR), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   200
          INCLUDE_FILES := AccessBridgeJavaVMInstance.cpp AccessBridgeMessageQueue.cpp \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   201
              AccessBridgeMessages.cpp AccessBridgeWindowsEntryPoints.cpp \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   202
              WinAccessBridge.cpp AccessBridgeDebug.cpp \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   203
              AccessBridgeEventHandler.cpp, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   204
          LANG := C++, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   205
          OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   206
          CFLAGS := $(filter-out -MD, $(CFLAGS_JDKLIB)) -MT \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   207
              -DACCESSBRIDGE_ARCH_$3, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   208
          LDFLAGS := $(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   209
              winspool.lib comdlg32.lib advapi32.lib shell32.lib \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   210
              ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   211
              -subsystem:windows -machine:$2 \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   212
              -def:$(ACCESSBRIDGE_SRCDIR)/WinAccessBridge.DEF, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   213
          VERSIONINFO_RESOURCE := $(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc, \
23607
e019220f8ee8 8032443: Java Access Bridge version strings need to be fixed
ptbrunet
parents: 22957
diff changeset
   214
          RC_FLAGS := $(RC_FLAGS) \
e019220f8ee8 8032443: Java Access Bridge version strings need to be fixed
ptbrunet
parents: 22957
diff changeset
   215
              -D "JDK_FNAME=WindowsAccessBridge$1.dll" \
e019220f8ee8 8032443: Java Access Bridge version strings need to be fixed
ptbrunet
parents: 22957
diff changeset
   216
              -D "JDK_INTERNAL_NAME=WindowsAccessBridge$1" \
e019220f8ee8 8032443: Java Access Bridge version strings need to be fixed
ptbrunet
parents: 22957
diff changeset
   217
              -D "JDK_FTYPE=0x02L", \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   218
          OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libwindowsaccessbridge$1, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   219
          DEBUG_SYMBOLS := true)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   220
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   221
      BUILD_LIBRARIES += $$(BUILD_JAWTACCESSBRIDGE$1) $$(BUILD_JAVAACCESSBRIDGE$1) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   222
          $$(BUILD_WINDOWSACCESSBRIDGE$1)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   223
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   224
    endef
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   225
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   226
    ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   227
      $(eval $(call SetupAccessBridge,-32,I386,32))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   228
      $(eval $(call SetupAccessBridge,,I386,LEGACY))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   229
    else
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   230
      $(eval $(call SetupAccessBridge,-64,X64,64))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   231
    endif
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
   232
  endif
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14855
diff changeset
   233
endif