jdk/makefiles/CompileNativeLibraries.gmk
changeset 15324 74584166bb07
parent 14855 d104ff4d4bb9
child 15334 19ab20cb461f
equal deleted inserted replaced
15323:9087838098e6 15324:74584166bb07
  3292 
  3292 
  3293 endif
  3293 endif
  3294 
  3294 
  3295 ##########################################################################################
  3295 ##########################################################################################
  3296 
  3296 
       
  3297 ifndef OPENJDK
       
  3298 ifeq ($(OPENJDK_TARGET_OS), windows)
       
  3299 
       
  3300   ACCESSBRIDGE_SRCDIR:=$(JDK_TOPDIR)/src/closed/windows/native/sun/bridge
       
  3301 
       
  3302   define SetupAccessBridge
       
  3303     # Parameter 1 Suffix
       
  3304     # Parameter 2 Machine
       
  3305     # Parameter 3 ACCESSBRIDGE_ARCH_ suffix
       
  3306 
       
  3307     $(call SetupNativeCompilation,BUILD_JAWTACCESSBRIDGE$1,\
       
  3308 		LIBRARY=JAWTAccessBridge$1,\
       
  3309 		OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
       
  3310 		SRC:=$(ACCESSBRIDGE_SRCDIR),\
       
  3311 		INCLUDE_FILES:=JAWTAccessBridge.cpp,\
       
  3312 		LANG:=C++,\
       
  3313 		OPTIMIZATION:=LOW,\
       
  3314 		CFLAGS:=$(CFLAGS_JDKLIB) \
       
  3315 			-DACCESSBRIDGE_ARCH_$3,\
       
  3316 		LDFLAGS:=$(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \
       
  3317 			 winspool.lib jawt.lib comdlg32.lib advapi32.lib shell32.lib \
       
  3318 			 ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \
       
  3319 			 -subsystem:windows -machine:$2 \
       
  3320 			 -def:$(ACCESSBRIDGE_SRCDIR)/JAWTAccessBridge.DEF,\
       
  3321 		VERSIONINFO_RESOURCE:=$(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc,\
       
  3322 		RC_FLAGS:=$(RC_FLAGS),\
       
  3323 		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjawtaccessbridge$1,\
       
  3324 		DEBUG_SYMBOLS:=true)
       
  3325 
       
  3326     $$(BUILD_JAWTACCESSBRIDGE$1): $(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX)
       
  3327 
       
  3328     $(call SetupNativeCompilation,BUILD_JAVAACCESSBRIDGE$1,\
       
  3329 		LIBRARY=JavaAccessBridge$1,\
       
  3330 		OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
       
  3331 		SRC:=$(ACCESSBRIDGE_SRCDIR),\
       
  3332 		INCLUDE_FILES:=AccessBridgeATInstance.cpp AccessBridgeDebug.cpp \
       
  3333 			       AccessBridgeJavaEntryPoints.cpp \
       
  3334 			       AccessBridgeMessages.cpp JavaAccessBridge.cpp,\
       
  3335 		LANG:=C++,\
       
  3336 		OPTIMIZATION:=LOW,\
       
  3337 		CFLAGS:=$(CFLAGS_JDKLIB) \
       
  3338 			-DACCESSBRIDGE_ARCH_$3,\
       
  3339 		LDFLAGS:=$(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \
       
  3340 			 winspool.lib comdlg32.lib advapi32.lib shell32.lib \
       
  3341 			 ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \
       
  3342 			 -subsystem:windows -machine:$2 \
       
  3343 			 -def:$(ACCESSBRIDGE_SRCDIR)/JavaAccessBridge.DEF,\
       
  3344 		VERSIONINFO_RESOURCE:=$(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc,\
       
  3345 		RC_FLAGS:=$(RC_FLAGS),\
       
  3346 		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjavaaccessbridge$1,\
       
  3347 		DEBUG_SYMBOLS:=true)
       
  3348 
       
  3349     $(call SetupNativeCompilation,BUILD_WINDOWSACCESSBRIDGE$1,\
       
  3350 		LIBRARY=WindowsAccessBridge$1,\
       
  3351 		OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
       
  3352 		SRC:=$(ACCESSBRIDGE_SRCDIR),\
       
  3353 		INCLUDE_FILES:=AccessBridgeJavaVMInstance.cpp AccessBridgeMessageQueue.cpp \
       
  3354 			       AccessBridgeMessages.cpp AccessBridgeWindowsEntryPoints.cpp \
       
  3355 			       WinAccessBridge.cpp AccessBridgeDebug.cpp \
       
  3356 			       AccessBridgeEventHandler.cpp,\
       
  3357 		LANG:=C++,\
       
  3358 		OPTIMIZATION:=LOW,\
       
  3359 		CFLAGS:=$(filter-out -MD,$(CFLAGS_JDKLIB)) -MT \
       
  3360 			-DACCESSBRIDGE_ARCH_$3,\
       
  3361 		LDFLAGS:=$(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \
       
  3362 			 winspool.lib comdlg32.lib advapi32.lib shell32.lib \
       
  3363 			 ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \
       
  3364 			 -subsystem:windows -machine:$2 \
       
  3365 			 -def:$(ACCESSBRIDGE_SRCDIR)/WinAccessBridge.DEF,\
       
  3366 		VERSIONINFO_RESOURCE:=$(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc,\
       
  3367 		RC_FLAGS:=$(RC_FLAGS),\
       
  3368 		OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libwindowsaccessbridge$1,\
       
  3369 		DEBUG_SYMBOLS:=true)
       
  3370 
       
  3371     BUILD_LIBRARIES += $$(BUILD_JAWTACCESSBRIDGE$1) $$(BUILD_JAVAACCESSBRIDGE$1) \
       
  3372 		       $$(BUILD_WINDOWSACCESSBRIDGE$1)
       
  3373 
       
  3374   endef
       
  3375 
       
  3376   ifeq ($(OPENJDK_TARGET_CPU_BITS),32)
       
  3377     $(eval $(call SetupAccessBridge,-32,I386,32))
       
  3378     $(eval $(call SetupAccessBridge,,I386,LEGACY))
       
  3379   else
       
  3380     $(eval $(call SetupAccessBridge,-64,X64,64))
       
  3381   endif
       
  3382 endif
       
  3383 endif
       
  3384 
       
  3385 
       
  3386 ##########################################################################################
       
  3387 
  3297 all: $(COPY_FILES) $(BUILD_LIBRARIES)
  3388 all: $(COPY_FILES) $(BUILD_LIBRARIES)
  3298 
  3389 
  3299 .PHONY: all
  3390 .PHONY: all