< prev index next >

jdk/make/closed/lib/Awt2dLibraries.gmk

Print this page


   1 #
   2 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
   3 # ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
   4 #
   5 
   6 # This file is included by the JDK makefile lib/Awt2dLibraries.gmk.
   7 
   8 ifndef BUILD_HEADLESS_ONLY
   9   ifeq ($(OPENJDK_TARGET_OS), linux)
  10     ifndef OPENJDK
  11       ifeq ($(JDK_VARIANT), embedded)
  12         DISABLE_XRENDER=true
  13       endif
  14 
  15       ifeq ($(OPENJDK_TARGET_CPU_ARCH), arm)
  16         DISABLE_XRENDER=true
  17       endif
  18     endif
  19   endif
  20 endif
  21 
  22 ################################################################################


  27     -I$(JDK_TOPDIR)/src/java.desktop/share/native/libfontmanager \
  28     -I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d \
  29     -I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d/loops \
  30     -I$(JDK_TOPDIR)/src/java.desktop/share/native/common/font \
  31     -I$(JDK_TOPDIR)/src/java.base/share/native/libjava \
  32     -I$(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjava \
  33     -I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \
  34     #
  35 
  36 $(eval $(call SetupNativeCompilation,BUILD_LIBT2K, \
  37     LIBRARY := t2k, \
  38     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
  39     SRC := $(LIBT2K_SRC), \
  40     EXCLUDE_FILES := t2k/orion.c, \
  41     LANG := C++, \
  42     OPTIMIZATION := HIGH, \
  43     CFLAGS := $(CFLAGS_JDKLIB) $(LIBT2K_CFLAGS), \
  44     CXXFLAGS := $(CXXFLAGS_JDKLIB) $(LIBT2K_CFLAGS), \
  45     CFLAGS_windows = -DCC_NOEX, \
  46     CXXFLAGS_windows = -DCC_NOEX, \





  47     MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libt2k/mapfile-vers, \
  48     LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \
  49         $(call SET_SHARED_LIBRARY_ORIGIN), \
  50     LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \
  51     LDFLAGS_windows := user32.lib $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libfontmanager/fontmanager.lib, \
  52     LDFLAGS_SUFFIX_unix := $(LIBM) $(LIBCXX) -lfontmanager -ljava -ljvm -lc, \
  53     LDFLAGS_SUFFIX_solaris := -lawt -lawt_headless, \
  54     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
  55     RC_FLAGS := $(RC_FLAGS) \
  56         -D "JDK_FNAME=t2k.dll" \
  57         -D "JDK_INTERNAL_NAME=t2k" \
  58         -D "JDK_FTYPE=0x2L", \
  59     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libt2k, \
  60     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
  61 
  62 # t2k is linked against fontmanager
  63 $(BUILD_LIBT2K): $(BUILD_LIBFONTMANAGER)
  64 
  65 TARGETS += $(BUILD_LIBT2K)
  66 


  79 LIBKCMS_CFLAGS += $(CFLAGS_JDKLIB)
  80 
  81 ifeq ($(OPENJDK_TARGET_OS), solaris)
  82   # This particular library uses a feature called PIC_CODE_SMALL (on solaris)
  83   # implement it like this...since it's only used here
  84   LIBKCMS_CFLAGS := $(patsubst -KPIC, -Kpic, $(LIBKCMS_CFLAGS))
  85 else ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc)
  86   LIBKCMS_CFLAGS := $(patsubst -fPIC, -fpic, $(LIBKCMS_CFLAGS))
  87 endif
  88 
  89 $(eval $(call SetupNativeCompilation,BUILD_LIBKCMS, \
  90     LIBRARY := kcms, \
  91     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
  92     SRC := $(LIBKCMS_SRC), \
  93     LANG := C, \
  94     EXCLUDE_FILES := $(BUILD_LIBKCMS_EXCLUDE_FILES), \
  95     OPTIMIZATION := LOW, \
  96     CFLAGS := $(LIBKCMS_CFLAGS) \
  97         -DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST, \
  98     CFLAGS_linux := -Wno-missing-field-initializers, \





  99     MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libkcms/mapfile-vers, \
 100     LDFLAGS := $(LDFLAGS_JDKLIB) \
 101         $(call SET_SHARED_LIBRARY_ORIGIN), \
 102     LDFLAGS_SUFFIX_linux := -lc -lpthread, \
 103     LDFLAGS_SUFFIX_solaris := -lc, \
 104     LDFLAGS_SUFFIX_windows := $(WIN_JAVA_LIB) advapi32.lib user32.lib version.lib, \
 105     LDFLAGS_SUFFIX_unix := -lm -ljava -ljvm, \
 106     VERSIONINFO_RESOURCE := $(LIBKCMS_VERSIONINFO_RESOURCE), \
 107     RC_FLAGS := $(RC_FLAGS) \
 108         -D "JDK_FNAME=kcms.dll" \
 109         -D "JDK_INTERNAL_NAME=kcms" \
 110         -D "JDK_FTYPE=0x2L", \
 111     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libkcms, \
 112     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 113 
 114 $(BUILD_LIBKCMS): $(call FindLib, java.base, java)
 115 
 116 TARGETS += $(BUILD_LIBKCMS)
 117 
 118 ################################################################################


 151 endif
 152 
 153 ################################################################################
 154 
 155 LIBDCPR_SRC_DIRS := $(JDK_TOPDIR)/src/closed/java.desktop/share/native/libdcpr
 156 LIBDCPR_CFLAGS := $(addprefix -I, $(shell $(FIND) $(LIBDCPR_SRC_DIRS) -type d)) \
 157     -I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d/pipe \
 158     -I$(JDK_TOPDIR)/src/java.base/share/native/libjava \
 159     -I$(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjava \
 160     -I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \
 161     #
 162 
 163 $(eval $(call SetupNativeCompilation,BUILD_LIBDCPR, \
 164     LIBRARY := dcpr, \
 165     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 166     SRC := $(LIBDCPR_SRC_DIRS), \
 167     LANG := C, \
 168     OPTIMIZATION := LOW, \
 169     CFLAGS := $(CFLAGS_JDKLIB) \
 170         $(LIBDCPR_CFLAGS), \

 171     MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libdcpr/mapfile-vers, \
 172     LDFLAGS := $(LDFLAGS_JDKLIB) \
 173         $(call SET_SHARED_LIBRARY_ORIGIN), \
 174     LDFLAGS_SUFFIX := $(LIBM) $(LDFLAGS_JDKLIB_SUFFIX), \
 175     LDFLAGS_SUFFIX_windows := $(WIN_JAVA_LIB), \
 176     LDFLAGS_SUFFIX_unix := -lm, \
 177     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
 178     RC_FLAGS := $(RC_FLAGS) \
 179         -D "JDK_FNAME=dcpr.dll" \
 180         -D "JDK_INTERNAL_NAME=dcpr" \
 181         -D "JDK_FTYPE=0x2L", \
 182     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libdcpr, \
 183     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 184 
 185 $(BUILD_LIBDCPR): $(call FindLib, java.base, java)
 186 
 187 TARGETS += $(BUILD_LIBDCPR)
 188 
 189 ################################################################################
   1 #
   2 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
   3 # ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
   4 #
   5 
   6 # This file is included by the JDK makefile lib/Awt2dLibraries.gmk.
   7 
   8 ifndef BUILD_HEADLESS_ONLY
   9   ifeq ($(OPENJDK_TARGET_OS), linux)
  10     ifndef OPENJDK
  11       ifeq ($(JDK_VARIANT), embedded)
  12         DISABLE_XRENDER=true
  13       endif
  14 
  15       ifeq ($(OPENJDK_TARGET_CPU_ARCH), arm)
  16         DISABLE_XRENDER=true
  17       endif
  18     endif
  19   endif
  20 endif
  21 
  22 ################################################################################


  27     -I$(JDK_TOPDIR)/src/java.desktop/share/native/libfontmanager \
  28     -I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d \
  29     -I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d/loops \
  30     -I$(JDK_TOPDIR)/src/java.desktop/share/native/common/font \
  31     -I$(JDK_TOPDIR)/src/java.base/share/native/libjava \
  32     -I$(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjava \
  33     -I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \
  34     #
  35 
  36 $(eval $(call SetupNativeCompilation,BUILD_LIBT2K, \
  37     LIBRARY := t2k, \
  38     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
  39     SRC := $(LIBT2K_SRC), \
  40     EXCLUDE_FILES := t2k/orion.c, \
  41     LANG := C++, \
  42     OPTIMIZATION := HIGH, \
  43     CFLAGS := $(CFLAGS_JDKLIB) $(LIBT2K_CFLAGS), \
  44     CXXFLAGS := $(CXXFLAGS_JDKLIB) $(LIBT2K_CFLAGS), \
  45     CFLAGS_windows = -DCC_NOEX, \
  46     CXXFLAGS_windows = -DCC_NOEX, \
  47     DISABLED_WARNINGS_gcc := unused-but-set-parameter sign-compare type-limits \
  48         maybe-uninitialized parentheses, \
  49     DISABLED_WARNINGS_clang := logical-op-parentheses dangling-else \
  50         unused-value bitwise-op-parentheses tautological-compare, \
  51     DISABLED_WARNINGS_microsoft := 4244, \
  52     MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libt2k/mapfile-vers, \
  53     LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \
  54         $(call SET_SHARED_LIBRARY_ORIGIN), \
  55     LDFLAGS_unix := -L$(INSTALL_LIBRARIES_HERE), \
  56     LDFLAGS_windows := user32.lib $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libfontmanager/fontmanager.lib, \
  57     LDFLAGS_SUFFIX_unix := $(LIBM) $(LIBCXX) -lfontmanager -ljava -ljvm -lc, \
  58     LDFLAGS_SUFFIX_solaris := -lawt -lawt_headless, \
  59     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
  60     RC_FLAGS := $(RC_FLAGS) \
  61         -D "JDK_FNAME=t2k.dll" \
  62         -D "JDK_INTERNAL_NAME=t2k" \
  63         -D "JDK_FTYPE=0x2L", \
  64     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libt2k, \
  65     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
  66 
  67 # t2k is linked against fontmanager
  68 $(BUILD_LIBT2K): $(BUILD_LIBFONTMANAGER)
  69 
  70 TARGETS += $(BUILD_LIBT2K)
  71 


  84 LIBKCMS_CFLAGS += $(CFLAGS_JDKLIB)
  85 
  86 ifeq ($(OPENJDK_TARGET_OS), solaris)
  87   # This particular library uses a feature called PIC_CODE_SMALL (on solaris)
  88   # implement it like this...since it's only used here
  89   LIBKCMS_CFLAGS := $(patsubst -KPIC, -Kpic, $(LIBKCMS_CFLAGS))
  90 else ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc)
  91   LIBKCMS_CFLAGS := $(patsubst -fPIC, -fpic, $(LIBKCMS_CFLAGS))
  92 endif
  93 
  94 $(eval $(call SetupNativeCompilation,BUILD_LIBKCMS, \
  95     LIBRARY := kcms, \
  96     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
  97     SRC := $(LIBKCMS_SRC), \
  98     LANG := C, \
  99     EXCLUDE_FILES := $(BUILD_LIBKCMS_EXCLUDE_FILES), \
 100     OPTIMIZATION := LOW, \
 101     CFLAGS := $(LIBKCMS_CFLAGS) \
 102         -DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST, \
 103     CFLAGS_linux := -Wno-missing-field-initializers, \
 104     DISABLED_WARNINGS_gcc := sign-compare pointer-sign unused-but-set-parameter \
 105         maybe-uninitialized, \
 106     DISABLED_WARNINGS_clang := unused-value pointer-sign, \
 107     DISABLED_WARNINGS_solstudio := E_ARG_INCOMPATIBLE_WITH_ARG_L, \
 108     DISABLED_WARNINGS_microsoft := 4244 4700, \
 109     MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libkcms/mapfile-vers, \
 110     LDFLAGS := $(LDFLAGS_JDKLIB) \
 111         $(call SET_SHARED_LIBRARY_ORIGIN), \
 112     LDFLAGS_SUFFIX_linux := -lc -lpthread, \
 113     LDFLAGS_SUFFIX_solaris := -lc, \
 114     LDFLAGS_SUFFIX_windows := $(WIN_JAVA_LIB) advapi32.lib user32.lib version.lib, \
 115     LDFLAGS_SUFFIX_unix := -lm -ljava -ljvm, \
 116     VERSIONINFO_RESOURCE := $(LIBKCMS_VERSIONINFO_RESOURCE), \
 117     RC_FLAGS := $(RC_FLAGS) \
 118         -D "JDK_FNAME=kcms.dll" \
 119         -D "JDK_INTERNAL_NAME=kcms" \
 120         -D "JDK_FTYPE=0x2L", \
 121     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libkcms, \
 122     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 123 
 124 $(BUILD_LIBKCMS): $(call FindLib, java.base, java)
 125 
 126 TARGETS += $(BUILD_LIBKCMS)
 127 
 128 ################################################################################


 161 endif
 162 
 163 ################################################################################
 164 
 165 LIBDCPR_SRC_DIRS := $(JDK_TOPDIR)/src/closed/java.desktop/share/native/libdcpr
 166 LIBDCPR_CFLAGS := $(addprefix -I, $(shell $(FIND) $(LIBDCPR_SRC_DIRS) -type d)) \
 167     -I$(JDK_TOPDIR)/src/java.desktop/share/native/libawt/java2d/pipe \
 168     -I$(JDK_TOPDIR)/src/java.base/share/native/libjava \
 169     -I$(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjava \
 170     -I$(SUPPORT_OUTPUTDIR)/headers/java.desktop \
 171     #
 172 
 173 $(eval $(call SetupNativeCompilation,BUILD_LIBDCPR, \
 174     LIBRARY := dcpr, \
 175     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 176     SRC := $(LIBDCPR_SRC_DIRS), \
 177     LANG := C, \
 178     OPTIMIZATION := LOW, \
 179     CFLAGS := $(CFLAGS_JDKLIB) \
 180         $(LIBDCPR_CFLAGS), \
 181     DISABLED_WARNINGS_microsoft := 4244, \
 182     MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libdcpr/mapfile-vers, \
 183     LDFLAGS := $(LDFLAGS_JDKLIB) \
 184         $(call SET_SHARED_LIBRARY_ORIGIN), \
 185     LDFLAGS_SUFFIX := $(LIBM) $(LDFLAGS_JDKLIB_SUFFIX), \
 186     LDFLAGS_SUFFIX_windows := $(WIN_JAVA_LIB), \
 187     LDFLAGS_SUFFIX_unix := -lm, \
 188     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
 189     RC_FLAGS := $(RC_FLAGS) \
 190         -D "JDK_FNAME=dcpr.dll" \
 191         -D "JDK_INTERNAL_NAME=dcpr" \
 192         -D "JDK_FTYPE=0x2L", \
 193     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libdcpr, \
 194     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 195 
 196 $(BUILD_LIBDCPR): $(call FindLib, java.base, java)
 197 
 198 TARGETS += $(BUILD_LIBDCPR)
 199 
 200 ################################################################################
< prev index next >