< prev index next >

make/gensrc/GensrcIcons.gmk

Print this page




  91   GENSRC_AWT_ICONS += $$($1_TARGET32)
  92 
  93   $$($1_TARGET64): $2/$1 $(GENSRC_AWT_ICONS_TMP)/_the.icons.dir $(BUILD_TOOLS_JDK)
  94         $(RM) $$@ $$@.tmp
  95         $(ECHO) "package sun.awt;" > $$@.tmp
  96         $(ECHO) "public class $$($1_NAME64) {" >> $$@.tmp
  97         $(ECHO) "public static long[] $$($1_SHORTNAME) = { " >> $$@.tmp
  98         $(CAT) $$< | $(TOOL_AWT_TOBIN) >> $$@.tmp
  99         $(ECHO) "}; }" >> $$@.tmp
 100         $(MV) $$@.tmp $$@
 101 
 102   GENSRC_AWT_ICONS += $$($1_TARGET64)
 103 endef
 104 
 105 $(foreach I, $(GENSRC_AWT_ICONS_SRC), $(eval $(call SetupGensrcAWTIcon,$(notdir $(I)),$(dir $(I)))))
 106 
 107 GENSRC_JAVA_DESKTOP += $(GENSRC_AWT_ICONS)
 108 
 109 ################################################################################
 110 
 111 ifeq ($(call isTargetOs, macosx), true)
 112 
 113   GENSRC_OSX_ICONS_DST := $(SUPPORT_OUTPUTDIR)/headers/java.desktop
 114   GENSRC_OSX_ICONS := $(GENSRC_OSX_ICONS_DST)/AWTIconData.h
 115 
 116   GENSRC_OSX_ICONS_SRC ?= $(TOPDIR)/make/data/macosxicons/JavaApp.icns
 117 
 118 
 119   $(GENSRC_OSX_ICONS): $(GENSRC_OSX_ICONS_SRC) $(BUILD_TOOLS_JDK)
 120         $(call LogInfo, Generating $(patsubst $(OUTPUTDIR)/%, %, $@))
 121         $(call MakeDir, $(@D))
 122         $(RM) $@ $@.tmp
 123         $(ECHO) "static unsigned char sAWTIconData[] = { " >> $@.tmp
 124         $(CAT) $< | $(TOOL_OSX_TOBIN) >> $@.tmp
 125         $(ECHO) "};" >> $@.tmp
 126         $(MV) $@.tmp $@
 127 
 128   GENSRC_JAVA_DESKTOP += $(GENSRC_OSX_ICONS)
 129 endif


  91   GENSRC_AWT_ICONS += $$($1_TARGET32)
  92 
  93   $$($1_TARGET64): $2/$1 $(GENSRC_AWT_ICONS_TMP)/_the.icons.dir $(BUILD_TOOLS_JDK)
  94         $(RM) $$@ $$@.tmp
  95         $(ECHO) "package sun.awt;" > $$@.tmp
  96         $(ECHO) "public class $$($1_NAME64) {" >> $$@.tmp
  97         $(ECHO) "public static long[] $$($1_SHORTNAME) = { " >> $$@.tmp
  98         $(CAT) $$< | $(TOOL_AWT_TOBIN) >> $$@.tmp
  99         $(ECHO) "}; }" >> $$@.tmp
 100         $(MV) $$@.tmp $$@
 101 
 102   GENSRC_AWT_ICONS += $$($1_TARGET64)
 103 endef
 104 
 105 $(foreach I, $(GENSRC_AWT_ICONS_SRC), $(eval $(call SetupGensrcAWTIcon,$(notdir $(I)),$(dir $(I)))))
 106 
 107 GENSRC_JAVA_DESKTOP += $(GENSRC_AWT_ICONS)
 108 
 109 ################################################################################
 110 
 111 ifeq ($(OPENJDK_TARGET_OS), macosx)
 112 
 113   GENSRC_OSX_ICONS_DST := $(SUPPORT_OUTPUTDIR)/headers/java.desktop
 114   GENSRC_OSX_ICONS := $(GENSRC_OSX_ICONS_DST)/AWTIconData.h
 115 
 116   GENSRC_OSX_ICONS_SRC ?= $(TOPDIR)/make/data/macosxicons/JavaApp.icns
 117 
 118 
 119   $(GENSRC_OSX_ICONS): $(GENSRC_OSX_ICONS_SRC) $(BUILD_TOOLS_JDK)
 120         $(call LogInfo, Generating $(patsubst $(OUTPUTDIR)/%, %, $@))
 121         $(call MakeDir, $(@D))
 122         $(RM) $@ $@.tmp
 123         $(ECHO) "static unsigned char sAWTIconData[] = { " >> $@.tmp
 124         $(CAT) $< | $(TOOL_OSX_TOBIN) >> $@.tmp
 125         $(ECHO) "};" >> $@.tmp
 126         $(MV) $@.tmp $@
 127 
 128   GENSRC_JAVA_DESKTOP += $(GENSRC_OSX_ICONS)
 129 endif
< prev index next >