< prev index next >

make/lib/Awt2dLibraries.gmk

Print this page




  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 $(eval $(call IncludeCustomExtension, lib/Awt2dLibraries-pre.gmk))
  27 
  28 WIN_AWT_LIB := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libawt/awt.lib
  29 
  30 LIBAWT_DEFAULT_HEADER_DIRS := \
  31     libawt/awt/image \
  32     libawt/awt/image/cvutils \
  33     libawt/java2d \
  34     libawt/java2d/loops \
  35     libawt/java2d/pipe \
  36     #
  37 
  38 ################################################################################
  39 
  40 # We must not include java.desktop/unix/native/libmlib_image, which is only
  41 # for usage by solaris-sparc in libmlib_image_v.
  42 BUILD_LIBMLIB_EXCLUDE_SRC_PATTERNS := /unix/
  43 
  44 BUILD_LIBMLIB_CFLAGS := -D__USE_J2D_NAMES -D__MEDIALIB_OLD_NAMES -DMLIB_NO_LIBSUNMATH
  45 
  46 ifeq ($(call isTargetCpuBits, 64), true)
  47   BUILD_LIBMLIB_CFLAGS += -DMLIB_OS64BIT
  48 endif
  49 
  50 $(eval $(call SetupJdkLibrary, BUILD_LIBMLIB_IMAGE, \
  51     NAME := mlib_image, \
  52     EXTRA_SRC := common/awt/medialib, \
  53     EXCLUDE_FILES := mlib_c_ImageBlendTable.c, \
  54     EXCLUDE_SRC_PATTERNS := $(BUILD_LIBMLIB_EXCLUDE_SRC_PATTERNS), \
  55     OPTIMIZATION := HIGHEST, \
  56     CFLAGS := $(CFLAGS_JDKLIB) \
  57         $(BUILD_LIBMLIB_CFLAGS), \
  58     DISABLED_WARNINGS_gcc := unused-function, \
  59     LDFLAGS := $(LDFLAGS_JDKLIB) \
  60         $(call SET_SHARED_LIBRARY_ORIGIN), \
  61     LIBS := $(JDKLIB_LIBS), \
  62     LIBS_unix := $(LIBM) $(LIBDL), \


 681       EXTRA_HEADER_DIRS := $(LIBJAWT_EXTRA_HEADER_DIRS), \
 682       LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK), \
 683       LIBS := $(JDKLIB_LIBS) $(KERNEL32_LIB) advapi32.lib $(WIN_AWT_LIB), \
 684   ))
 685 
 686   $(BUILD_LIBJAWT): $(BUILD_LIBAWT)
 687 
 688   $(eval $(call SetupCopyFiles, COPY_JAWT_LIB, \
 689       FILES := $(BUILD_LIBJAWT_IMPORT_LIBRARY), \
 690       DEST := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
 691   ))
 692 
 693   $(COPY_JAWT_LIB): $(BUILD_LIBJAWT)
 694 
 695   TARGETS += $(COPY_JAWT_LIB)
 696 
 697 else # not windows
 698 
 699   ifeq ($(call isTargetOs, macosx), true)
 700     # libjawt on macosx do not use the unix code
 701     LIBJAWT_EXCLUDE_SRC_PATTERNS := /unix/
 702   endif
 703 
 704   ifeq ($(call isTargetOs, macosx), true)
 705     JAWT_LIBS := -lawt_lwawt
 706   else
 707     JAWT_LIBS :=
 708     ifeq ($(call isTargetOs, solaris), false)
 709       JAWT_LIBS += -lawt
 710     endif
 711     ifeq ($(ENABLE_HEADLESS_ONLY), false)
 712       JAWT_LIBS += -lawt_xawt
 713     else
 714       JAWT_LIBS += -lawt_headless
 715       ifeq ($(call isTargetOs, linux), true)
 716         JAWT_CFLAGS += -DHEADLESS
 717       endif
 718     endif
 719   endif
 720 
 721   $(eval $(call SetupJdkLibrary, BUILD_LIBJAWT, \


 771     # While the following ought to work, it will currently pull in the closed
 772     # additions to this library, and this was not done previously in the build.
 773     # LIBSPLASHSCREEN_EXTRA_SRC += libjavajpeg
 774     LIBSPLASHSCREEN_EXTRA_SRC += $(TOPDIR)/src/java.desktop/share/native/libjavajpeg
 775   else
 776     LIBJPEG_LIBS := -ljpeg
 777   endif
 778 
 779   ifeq ($(USE_EXTERNAL_LIBPNG), false)
 780     LIBSPLASHSCREEN_HEADER_DIRS += libsplashscreen/libpng
 781   else
 782     LIBSPLASHSCREEN_EXCLUDES += libpng
 783   endif
 784 
 785   ifeq ($(USE_EXTERNAL_LIBZ), false)
 786     LIBSPLASHSCREEN_EXTRA_SRC += java.base:libzip/zlib
 787   endif
 788 
 789   ifeq ($(call isTargetOs, macosx), true)
 790     # libsplashscreen on macosx do not use the unix code
 791     LIBSPLASHSCREEN_EXCLUDE_SRC_PATTERNS := /unix/
 792   endif
 793 
 794   LIBSPLASHSCREEN_CFLAGS += -DSPLASHSCREEN -DPNG_NO_MMX_CODE -DPNG_ARM_NEON_OPT=0
 795 
 796   ifeq ($(call isTargetOs, linux), true)
 797     ifeq ($(call isTargetCpuArch, ppc), true)
 798       LIBSPLASHSCREEN_CFLAGS += -DPNG_POWERPC_VSX_OPT=0
 799     endif
 800   endif
 801 
 802   ifeq ($(call isTargetOs, macosx), true)
 803     LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX
 804 
 805     BUILD_LIBSPLASHSCREEN_java_awt_SplashScreen.c_CFLAGS := -x objective-c -O0
 806     BUILD_LIBSPLASHSCREEN_splashscreen_gfx_impl.c_CFLAGS := -x objective-c -O0
 807     BUILD_LIBSPLASHSCREEN_splashscreen_gif.c_CFLAGS := -x objective-c -O0
 808     BUILD_LIBSPLASHSCREEN_splashscreen_impl.c_CFLAGS := -x objective-c -O0
 809     BUILD_LIBSPLASHSCREEN_splashscreen_jpeg.c_CFLAGS := -x objective-c -O0
 810     BUILD_LIBSPLASHSCREEN_splashscreen_png.c_CFLAGS := -x objective-c -O0
 811     BUILD_LIBSPLASHSCREEN_splashscreen_sys.m_CFLAGS := -O0
 812 
 813   else ifeq ($(call isTargetOs, windows), true)
 814     LIBSPLASHSCREEN_CFLAGS += -DWITH_WIN32
 815   else
 816     LIBSPLASHSCREEN_CFLAGS += -DWITH_X11 $(X_CFLAGS)
 817   endif
 818 
 819   LIBSPLASHSCREEN_LIBS :=
 820 
 821   ifeq ($(call isTargetOs, macosx), true)
 822     LIBSPLASHSCREEN_LIBS += \
 823         $(LIBM) -lpthread -liconv -losxapp \
 824         -framework ApplicationServices \
 825         -framework Foundation \
 826         -framework Security \
 827         -framework Cocoa \
 828         -framework JavaNativeFoundation
 829   else ifeq ($(call isTargetOs, windows), true)
 830     LIBSPLASHSCREEN_LIBS += kernel32.lib user32.lib gdi32.lib delayimp.lib $(WIN_JAVA_LIB) jvm.lib
 831   else
 832     LIBSPLASHSCREEN_LIBS += $(X_LIBS) -lX11 -lXext $(LIBM) -lpthread -ldl
 833   endif
 834 
 835   LIBSPLASHSCREEN_HEADER_DIRS += \
 836       libosxapp \
 837       java.base:include \
 838       java.base:libjava \
 839       #
 840 
 841   $(eval $(call SetupJdkLibrary, BUILD_LIBSPLASHSCREEN, \
 842       NAME := splashscreen, \
 843       EXTRA_SRC := $(LIBSPLASHSCREEN_EXTRA_SRC), \
 844       EXCLUDE_SRC_PATTERNS := $(LIBSPLASHSCREEN_EXCLUDE_SRC_PATTERNS), \
 845       EXCLUDE_FILES := imageioJPEG.c jpegdecoder.c pngtest.c, \
 846       EXCLUDES := $(LIBSPLASHSCREEN_EXCLUDES), \




  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 $(eval $(call IncludeCustomExtension, lib/Awt2dLibraries-pre.gmk))
  27 
  28 WIN_AWT_LIB := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libawt/awt.lib
  29 
  30 LIBAWT_DEFAULT_HEADER_DIRS := \
  31     libawt/awt/image \
  32     libawt/awt/image/cvutils \
  33     libawt/java2d \
  34     libawt/java2d/loops \
  35     libawt/java2d/pipe \
  36     #
  37 
  38 ################################################################################
  39 
  40 # We must not include java.desktop/unix/native/libmlib_image, which is only
  41 # for usage by solaris-sparc in libmlib_image_v.
  42 BUILD_LIBMLIB_EXCLUDE_SRC_PATTERNS := unix
  43 
  44 BUILD_LIBMLIB_CFLAGS := -D__USE_J2D_NAMES -D__MEDIALIB_OLD_NAMES -DMLIB_NO_LIBSUNMATH
  45 
  46 ifeq ($(call isTargetCpuBits, 64), true)
  47   BUILD_LIBMLIB_CFLAGS += -DMLIB_OS64BIT
  48 endif
  49 
  50 $(eval $(call SetupJdkLibrary, BUILD_LIBMLIB_IMAGE, \
  51     NAME := mlib_image, \
  52     EXTRA_SRC := common/awt/medialib, \
  53     EXCLUDE_FILES := mlib_c_ImageBlendTable.c, \
  54     EXCLUDE_SRC_PATTERNS := $(BUILD_LIBMLIB_EXCLUDE_SRC_PATTERNS), \
  55     OPTIMIZATION := HIGHEST, \
  56     CFLAGS := $(CFLAGS_JDKLIB) \
  57         $(BUILD_LIBMLIB_CFLAGS), \
  58     DISABLED_WARNINGS_gcc := unused-function, \
  59     LDFLAGS := $(LDFLAGS_JDKLIB) \
  60         $(call SET_SHARED_LIBRARY_ORIGIN), \
  61     LIBS := $(JDKLIB_LIBS), \
  62     LIBS_unix := $(LIBM) $(LIBDL), \


 681       EXTRA_HEADER_DIRS := $(LIBJAWT_EXTRA_HEADER_DIRS), \
 682       LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK), \
 683       LIBS := $(JDKLIB_LIBS) $(KERNEL32_LIB) advapi32.lib $(WIN_AWT_LIB), \
 684   ))
 685 
 686   $(BUILD_LIBJAWT): $(BUILD_LIBAWT)
 687 
 688   $(eval $(call SetupCopyFiles, COPY_JAWT_LIB, \
 689       FILES := $(BUILD_LIBJAWT_IMPORT_LIBRARY), \
 690       DEST := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
 691   ))
 692 
 693   $(COPY_JAWT_LIB): $(BUILD_LIBJAWT)
 694 
 695   TARGETS += $(COPY_JAWT_LIB)
 696 
 697 else # not windows
 698 
 699   ifeq ($(call isTargetOs, macosx), true)
 700     # libjawt on macosx do not use the unix code
 701     LIBJAWT_EXCLUDE_SRC_PATTERNS := unix
 702   endif
 703 
 704   ifeq ($(call isTargetOs, macosx), true)
 705     JAWT_LIBS := -lawt_lwawt
 706   else
 707     JAWT_LIBS :=
 708     ifeq ($(call isTargetOs, solaris), false)
 709       JAWT_LIBS += -lawt
 710     endif
 711     ifeq ($(ENABLE_HEADLESS_ONLY), false)
 712       JAWT_LIBS += -lawt_xawt
 713     else
 714       JAWT_LIBS += -lawt_headless
 715       ifeq ($(call isTargetOs, linux), true)
 716         JAWT_CFLAGS += -DHEADLESS
 717       endif
 718     endif
 719   endif
 720 
 721   $(eval $(call SetupJdkLibrary, BUILD_LIBJAWT, \


 771     # While the following ought to work, it will currently pull in the closed
 772     # additions to this library, and this was not done previously in the build.
 773     # LIBSPLASHSCREEN_EXTRA_SRC += libjavajpeg
 774     LIBSPLASHSCREEN_EXTRA_SRC += $(TOPDIR)/src/java.desktop/share/native/libjavajpeg
 775   else
 776     LIBJPEG_LIBS := -ljpeg
 777   endif
 778 
 779   ifeq ($(USE_EXTERNAL_LIBPNG), false)
 780     LIBSPLASHSCREEN_HEADER_DIRS += libsplashscreen/libpng
 781   else
 782     LIBSPLASHSCREEN_EXCLUDES += libpng
 783   endif
 784 
 785   ifeq ($(USE_EXTERNAL_LIBZ), false)
 786     LIBSPLASHSCREEN_EXTRA_SRC += java.base:libzip/zlib
 787   endif
 788 
 789   ifeq ($(call isTargetOs, macosx), true)
 790     # libsplashscreen on macosx do not use the unix code
 791     LIBSPLASHSCREEN_EXCLUDE_SRC_PATTERNS := unix
 792   endif
 793 
 794   LIBSPLASHSCREEN_CFLAGS += -DSPLASHSCREEN -DPNG_NO_MMX_CODE -DPNG_ARM_NEON_OPT=0
 795 
 796   ifeq ($(call isTargetOs, linux), true)
 797     ifeq ($(call isTargetCpuArch, ppc), true)
 798       LIBSPLASHSCREEN_CFLAGS += -DPNG_POWERPC_VSX_OPT=0
 799     endif
 800   endif
 801 
 802   ifeq ($(call isTargetOs, macosx), true)
 803     LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX
 804 
 805     BUILD_LIBSPLASHSCREEN_java_awt_SplashScreen.c_CFLAGS := -x objective-c -O0
 806     BUILD_LIBSPLASHSCREEN_splashscreen_gfx_impl.c_CFLAGS := -x objective-c -O0
 807     BUILD_LIBSPLASHSCREEN_splashscreen_gif.c_CFLAGS := -x objective-c -O0
 808     BUILD_LIBSPLASHSCREEN_splashscreen_impl.c_CFLAGS := -x objective-c -O0
 809     BUILD_LIBSPLASHSCREEN_splashscreen_jpeg.c_CFLAGS := -x objective-c -O0
 810     BUILD_LIBSPLASHSCREEN_splashscreen_png.c_CFLAGS := -x objective-c -O0
 811     BUILD_LIBSPLASHSCREEN_splashscreen_sys.m_CFLAGS := -O0
 812 
 813   else ifeq ($(call isTargetOs, windows), true)
 814     LIBSPLASHSCREEN_CFLAGS += -DWITH_WIN32
 815   else
 816     LIBSPLASHSCREEN_CFLAGS += -DWITH_X11 $(X_CFLAGS)
 817   endif
 818 
 819   LIBSPLASHSCREEN_LIBS :=
 820 
 821   ifeq ($(call isTargetOs, macosx), true)
 822     LIBSPLASHSCREEN_LIBS += \
 823         $(LIBM) -lpthread -liconv -losxapp \
 824         -framework ApplicationServices \
 825         -framework Foundation \

 826         -framework Cocoa \
 827         -framework JavaNativeFoundation
 828   else ifeq ($(call isTargetOs, windows), true)
 829     LIBSPLASHSCREEN_LIBS += kernel32.lib user32.lib gdi32.lib delayimp.lib $(WIN_JAVA_LIB) jvm.lib
 830   else
 831     LIBSPLASHSCREEN_LIBS += $(X_LIBS) -lX11 -lXext $(LIBM) -lpthread -ldl
 832   endif
 833 
 834   LIBSPLASHSCREEN_HEADER_DIRS += \
 835       libosxapp \
 836       java.base:include \
 837       java.base:libjava \
 838       #
 839 
 840   $(eval $(call SetupJdkLibrary, BUILD_LIBSPLASHSCREEN, \
 841       NAME := splashscreen, \
 842       EXTRA_SRC := $(LIBSPLASHSCREEN_EXTRA_SRC), \
 843       EXCLUDE_SRC_PATTERNS := $(LIBSPLASHSCREEN_EXCLUDE_SRC_PATTERNS), \
 844       EXCLUDE_FILES := imageioJPEG.c jpegdecoder.c pngtest.c, \
 845       EXCLUDES := $(LIBSPLASHSCREEN_EXCLUDES), \


< prev index next >