< prev index next >

jdk/make/lib/PlatformLibraries.gmk

Print this page


   1 #
   2 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


 110           -framework Cocoa \
 111           -framework ApplicationServices \
 112           -framework JavaNativeFoundation \
 113           -framework JavaRuntimeSupport \
 114           -framework Security \
 115           -framework SystemConfiguration \
 116           $(LDFLAGS_JDKLIB_SUFFIX), \
 117       OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libosx, \
 118       DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 119 
 120   BUILD_LIBRARIES += $(BUILD_LIBOSX)
 121 
 122   $(BUILD_LIBOSX): $(BUILD_LIBOSXAPP)
 123 
 124   $(BUILD_LIBOSX): $(BUILD_LIBJAVA)
 125 
 126 endif
 127 
 128 ##########################################################################################
 129 
 130 ifndef OPENJDK
 131   ifeq ($(OPENJDK_TARGET_OS), windows)
 132 
 133     ACCESSBRIDGE_SRCDIR := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge
 134 
 135     define SetupAccessBridge
 136       # Parameter 1 Suffix
 137       # Parameter 2 Machine
 138       # Parameter 3 ACCESSBRIDGE_ARCH_ suffix
 139 
 140       $(call SetupNativeCompilation,BUILD_JAWTACCESSBRIDGE$1, \
 141           LIBRARY = JAWTAccessBridge$1, \
 142           OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 143           SRC := $(ACCESSBRIDGE_SRCDIR), \
 144           INCLUDE_FILES := JAWTAccessBridge.cpp, \
 145           LANG := C++, \
 146           OPTIMIZATION := LOW, \
 147           CFLAGS := $(CFLAGS_JDKLIB) \
 148               -DACCESSBRIDGE_ARCH_$3, \
 149           LDFLAGS := $(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \
 150               winspool.lib jawt.lib comdlg32.lib advapi32.lib shell32.lib \
 151               ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \
 152               -subsystem:windows -machine:$2 \
 153               -def:$(ACCESSBRIDGE_SRCDIR)/JAWTAccessBridge.DEF, \
 154           VERSIONINFO_RESOURCE := $(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc, \
 155           RC_FLAGS := $(RC_FLAGS) \
 156               -D "JDK_FNAME=JAWTAccessBridge$1.dll" \
 157               -D "JDK_INTERNAL_NAME=JAWTAccessBridge$1" \
 158               -D "JDK_FTYPE=0x02L", \
 159           OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjawtaccessbridge$1, \
 160           DEBUG_SYMBOLS := true)
 161 
 162       $$(BUILD_JAWTACCESSBRIDGE$1): $(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX)
 163 
 164       $(call SetupNativeCompilation,BUILD_JAVAACCESSBRIDGE$1, \
 165           LIBRARY = JavaAccessBridge$1, \
 166           OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 167           SRC := $(ACCESSBRIDGE_SRCDIR), \
 168           INCLUDE_FILES := AccessBridgeATInstance.cpp AccessBridgeDebug.cpp \
 169               AccessBridgeJavaEntryPoints.cpp \
 170               AccessBridgeMessages.cpp JavaAccessBridge.cpp, \
 171           LANG := C++, \
 172           OPTIMIZATION := LOW, \
 173           CFLAGS := $(CFLAGS_JDKLIB) \
 174               -DACCESSBRIDGE_ARCH_$3, \
 175           LDFLAGS := $(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \
 176               winspool.lib comdlg32.lib advapi32.lib shell32.lib \
 177               ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \
 178               -subsystem:windows -machine:$2 \
 179               -def:$(ACCESSBRIDGE_SRCDIR)/JavaAccessBridge.DEF, \
 180           VERSIONINFO_RESOURCE := $(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc, \
 181           RC_FLAGS := $(RC_FLAGS) \
 182               -D "JDK_FNAME=JavaAccessBridge$1.dll" \
 183               -D "JDK_INTERNAL_NAME=JavaAccessBridge$1" \
 184               -D "JDK_FTYPE=0x02L", \
 185           OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjavaaccessbridge$1, \
 186           DEBUG_SYMBOLS := true)
 187 
 188       $(call SetupNativeCompilation,BUILD_WINDOWSACCESSBRIDGE$1, \
 189           LIBRARY = WindowsAccessBridge$1, \
 190           OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 191           SRC := $(ACCESSBRIDGE_SRCDIR), \
 192           INCLUDE_FILES := AccessBridgeJavaVMInstance.cpp AccessBridgeMessageQueue.cpp \
 193               AccessBridgeMessages.cpp AccessBridgeWindowsEntryPoints.cpp \
 194               WinAccessBridge.cpp AccessBridgeDebug.cpp \
 195               AccessBridgeEventHandler.cpp, \
 196           LANG := C++, \
 197           OPTIMIZATION := LOW, \
 198           CFLAGS := $(filter-out -MD, $(CFLAGS_JDKLIB)) -MT \
 199               -DACCESSBRIDGE_ARCH_$3, \


 204               -def:$(ACCESSBRIDGE_SRCDIR)/WinAccessBridge.DEF, \
 205           VERSIONINFO_RESOURCE := $(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc, \
 206           RC_FLAGS := $(RC_FLAGS) \
 207               -D "JDK_FNAME=WindowsAccessBridge$1.dll" \
 208               -D "JDK_INTERNAL_NAME=WindowsAccessBridge$1" \
 209               -D "JDK_FTYPE=0x02L", \
 210           OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libwindowsaccessbridge$1, \
 211           DEBUG_SYMBOLS := true)
 212 
 213       BUILD_LIBRARIES += $$(BUILD_JAWTACCESSBRIDGE$1) $$(BUILD_JAVAACCESSBRIDGE$1) \
 214           $$(BUILD_WINDOWSACCESSBRIDGE$1)
 215 
 216     endef
 217 
 218     ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
 219       $(eval $(call SetupAccessBridge,-32,I386,32))
 220       $(eval $(call SetupAccessBridge,,I386,LEGACY))
 221     else
 222       $(eval $(call SetupAccessBridge,-64,X64,64))
 223     endif
 224   endif
 225 endif
   1 #
   2 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


 110           -framework Cocoa \
 111           -framework ApplicationServices \
 112           -framework JavaNativeFoundation \
 113           -framework JavaRuntimeSupport \
 114           -framework Security \
 115           -framework SystemConfiguration \
 116           $(LDFLAGS_JDKLIB_SUFFIX), \
 117       OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libosx, \
 118       DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 119 
 120   BUILD_LIBRARIES += $(BUILD_LIBOSX)
 121 
 122   $(BUILD_LIBOSX): $(BUILD_LIBOSXAPP)
 123 
 124   $(BUILD_LIBOSX): $(BUILD_LIBJAVA)
 125 
 126 endif
 127 
 128 ##########################################################################################
 129 
 130 ifeq ($(OPENJDK_TARGET_OS), windows)

 131 
 132     ACCESSBRIDGE_SRCDIR := $(JDK_TOPDIR)/src/windows/native/sun/bridge
 133 
 134     define SetupAccessBridge
 135       # Parameter 1 Suffix
 136       # Parameter 2 Machine
 137       # Parameter 3 ACCESSBRIDGE_ARCH_ suffix
 138 
 139       $(call SetupNativeCompilation,BUILD_JAWTACCESSBRIDGE$1, \
 140           LIBRARY = JAWTAccessBridge$1, \
 141           OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 142           SRC := $(ACCESSBRIDGE_SRCDIR), \
 143           INCLUDE_FILES := JAWTAccessBridge.cpp, \
 144           LANG := C++, \
 145           OPTIMIZATION := LOW, \
 146           CFLAGS := $(CFLAGS_JDKLIB) \
 147               -DACCESSBRIDGE_ARCH_$3, \
 148           LDFLAGS := $(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \
 149               winspool.lib jawt.lib comdlg32.lib advapi32.lib shell32.lib \
 150               ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \
 151               -subsystem:windows -machine:$2, \

 152           VERSIONINFO_RESOURCE := $(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc, \
 153           RC_FLAGS := $(RC_FLAGS) \
 154               -D "JDK_FNAME=JAWTAccessBridge$1.dll" \
 155               -D "JDK_INTERNAL_NAME=JAWTAccessBridge$1" \
 156               -D "JDK_FTYPE=0x02L", \
 157           OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjawtaccessbridge$1, \
 158           DEBUG_SYMBOLS := true)
 159 
 160       $$(BUILD_JAWTACCESSBRIDGE$1): $(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX)
 161 
 162       $(call SetupNativeCompilation,BUILD_JAVAACCESSBRIDGE$1, \
 163           LIBRARY = JavaAccessBridge$1, \
 164           OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 165           SRC := $(ACCESSBRIDGE_SRCDIR), \
 166           INCLUDE_FILES := AccessBridgeATInstance.cpp AccessBridgeDebug.cpp \
 167               AccessBridgeJavaEntryPoints.cpp \
 168               AccessBridgeMessages.cpp JavaAccessBridge.cpp, \
 169           LANG := C++, \
 170           OPTIMIZATION := LOW, \
 171           CFLAGS := $(CFLAGS_JDKLIB) \
 172               -DACCESSBRIDGE_ARCH_$3, \
 173           LDFLAGS := $(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \
 174               winspool.lib comdlg32.lib advapi32.lib shell32.lib \
 175               ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \
 176               -subsystem:windows -machine:$2, \

 177           VERSIONINFO_RESOURCE := $(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc, \
 178           RC_FLAGS := $(RC_FLAGS) \
 179               -D "JDK_FNAME=JavaAccessBridge$1.dll" \
 180               -D "JDK_INTERNAL_NAME=JavaAccessBridge$1" \
 181               -D "JDK_FTYPE=0x02L", \
 182           OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjavaaccessbridge$1, \
 183           DEBUG_SYMBOLS := true)
 184 
 185       $(call SetupNativeCompilation,BUILD_WINDOWSACCESSBRIDGE$1, \
 186           LIBRARY = WindowsAccessBridge$1, \
 187           OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 188           SRC := $(ACCESSBRIDGE_SRCDIR), \
 189           INCLUDE_FILES := AccessBridgeJavaVMInstance.cpp AccessBridgeMessageQueue.cpp \
 190               AccessBridgeMessages.cpp AccessBridgeWindowsEntryPoints.cpp \
 191               WinAccessBridge.cpp AccessBridgeDebug.cpp \
 192               AccessBridgeEventHandler.cpp, \
 193           LANG := C++, \
 194           OPTIMIZATION := LOW, \
 195           CFLAGS := $(filter-out -MD, $(CFLAGS_JDKLIB)) -MT \
 196               -DACCESSBRIDGE_ARCH_$3, \


 201               -def:$(ACCESSBRIDGE_SRCDIR)/WinAccessBridge.DEF, \
 202           VERSIONINFO_RESOURCE := $(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc, \
 203           RC_FLAGS := $(RC_FLAGS) \
 204               -D "JDK_FNAME=WindowsAccessBridge$1.dll" \
 205               -D "JDK_INTERNAL_NAME=WindowsAccessBridge$1" \
 206               -D "JDK_FTYPE=0x02L", \
 207           OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libwindowsaccessbridge$1, \
 208           DEBUG_SYMBOLS := true)
 209 
 210       BUILD_LIBRARIES += $$(BUILD_JAWTACCESSBRIDGE$1) $$(BUILD_JAVAACCESSBRIDGE$1) \
 211           $$(BUILD_WINDOWSACCESSBRIDGE$1)
 212 
 213     endef
 214 
 215     ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
 216       $(eval $(call SetupAccessBridge,-32,I386,32))
 217       $(eval $(call SetupAccessBridge,,I386,LEGACY))
 218     else
 219       $(eval $(call SetupAccessBridge,-64,X64,64))
 220     endif
 221 
 222 endif
< prev index next >