< prev index next >

jdk/make/copy/Copy-java.desktop.gmk

Print this page




  47   # We need to bundle the freetype library, so it will be available at runtime as well as link time.
  48   #
  49   # NB: Default freetype build system uses -h linker option and
  50   # result .so contains hardcoded library name that is later
  51   # used for adding dependencies to other objects
  52   # (e.g. libfontmanager.so).
  53   #
  54   # It is not obvious how to extract that hardcoded name (libfreetype.so.6)
  55   # without overcomplicating logic here.
  56   # To workaround this we hardcode .6 suffix for now.
  57   #
  58   # Note that .so.6 library will not be found by System.loadLibrary()
  59   # but fortunately we need to load FreeType library explicitly
  60   # on windows only
  61   #
  62   #TODO: rework this to avoid hardcoding library name in the makefile
  63   #
  64   ifeq ($(OPENJDK_TARGET_OS), windows)
  65     FREETYPE_TARGET_LIB := $(LIB_DST_DIR)/$(call SHARED_LIBRARY,freetype)
  66   else
  67     FREETYPE_TARGET_LIB := $(LIB_DST_DIR)$(OPENJDK_TARGET_CPU_LIBDIR)/$(call SHARED_LIBRARY,freetype).6
  68   endif
  69 
  70   # We can't use $(install-file) in this rule because it preserves symbolic links and
  71   # libfreetype.so is usually a symbolic link to something like libfreetype.so.6 on Unix.
  72   $(FREETYPE_TARGET_LIB): $(FREETYPE_BUNDLE_LIB_PATH)/$(call SHARED_LIBRARY,freetype)
  73         $(MKDIR) -p $(@D)
  74         $(CP) $< $@
  75         ifeq ($(OPENJDK_BUILD_OS), windows)
  76           $(CHMOD) +rx $@
  77         endif
  78 
  79   TARGETS += $(FREETYPE_TARGET_LIB)
  80 endif
  81 
  82 ################################################################################
  83 
  84 $(CONF_DST_DIR)/sound.properties: $(JDK_TOPDIR)/src/java.desktop/share/conf/sound.properties
  85         $(call install-file)
  86 
  87 TARGETS += $(CONF_DST_DIR)/sound.properties


  47   # We need to bundle the freetype library, so it will be available at runtime as well as link time.
  48   #
  49   # NB: Default freetype build system uses -h linker option and
  50   # result .so contains hardcoded library name that is later
  51   # used for adding dependencies to other objects
  52   # (e.g. libfontmanager.so).
  53   #
  54   # It is not obvious how to extract that hardcoded name (libfreetype.so.6)
  55   # without overcomplicating logic here.
  56   # To workaround this we hardcode .6 suffix for now.
  57   #
  58   # Note that .so.6 library will not be found by System.loadLibrary()
  59   # but fortunately we need to load FreeType library explicitly
  60   # on windows only
  61   #
  62   #TODO: rework this to avoid hardcoding library name in the makefile
  63   #
  64   ifeq ($(OPENJDK_TARGET_OS), windows)
  65     FREETYPE_TARGET_LIB := $(LIB_DST_DIR)/$(call SHARED_LIBRARY,freetype)
  66   else
  67     FREETYPE_TARGET_LIB := $(LIB_DST_DIR)/$(call SHARED_LIBRARY,freetype).6
  68   endif
  69 
  70   # We can't use $(install-file) in this rule because it preserves symbolic links and
  71   # libfreetype.so is usually a symbolic link to something like libfreetype.so.6 on Unix.
  72   $(FREETYPE_TARGET_LIB): $(FREETYPE_BUNDLE_LIB_PATH)/$(call SHARED_LIBRARY,freetype)
  73         $(MKDIR) -p $(@D)
  74         $(CP) $< $@
  75         ifeq ($(OPENJDK_BUILD_OS), windows)
  76           $(CHMOD) +rx $@
  77         endif
  78 
  79   TARGETS += $(FREETYPE_TARGET_LIB)
  80 endif
  81 
  82 ################################################################################
  83 
  84 $(CONF_DST_DIR)/sound.properties: $(JDK_TOPDIR)/src/java.desktop/share/conf/sound.properties
  85         $(call install-file)
  86 
  87 TARGETS += $(CONF_DST_DIR)/sound.properties
< prev index next >