< prev index next >

jdk/make/gensrc/GensrcIcons.gmk

Print this page




   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 


  26 GENSRC_AWT_ICONS :=
  27 GENSRC_AWT_ICONS_SRC :=
  28 GENSRC_AWT_ICONS_TMP := $(SUPPORT_OUTPUTDIR)/gensrc/java.desktop
  29 GENSRC_AWT_ICONS_DST := $(GENSRC_AWT_ICONS_TMP)/sun/awt/
  30 
  31 ifdef OPENJDK
  32   X11_ICONS_PATH_PREFIX := $(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)
  33 else
  34   X11_ICONS_PATH_PREFIX := $(JDK_TOPDIR)/src/closed/java.desktop/$(OPENJDK_TARGET_OS_TYPE)
  35 endif
  36 
  37 GENSRC_AWT_ICONS_SRC += \
  38     $(X11_ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon16.png \
  39     $(X11_ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon24.png \
  40     $(X11_ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon32.png \
  41     $(X11_ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon48.png
  42 
  43 
  44 AWT_ICONPATH := $(JDK_TOPDIR)/src/java.desktop/share/classes/sun/awt/resources
  45 
  46 GENSRC_AWT_ICONS_SRC += \
  47     $(AWT_ICONPATH)/security-icon-bw16.png \
  48     $(AWT_ICONPATH)/security-icon-interim16.png \
  49     $(AWT_ICONPATH)/security-icon-yellow16.png \
  50     $(AWT_ICONPATH)/security-icon-bw24.png \
  51     $(AWT_ICONPATH)/security-icon-interim24.png \
  52     $(AWT_ICONPATH)/security-icon-yellow24.png \
  53     $(AWT_ICONPATH)/security-icon-bw32.png \
  54     $(AWT_ICONPATH)/security-icon-interim32.png \
  55     $(AWT_ICONPATH)/security-icon-yellow32.png \


  97         $(ECHO) "public class $$($1_NAME64) {" >> $$@.tmp
  98         $(ECHO) "public static long[] $$($1_SHORTNAME) = { " >> $$@.tmp
  99         $(CAT) $$< | $(TOOL_AWT_TOBIN) >> $$@.tmp
 100         $(ECHO) "}; }" >> $$@.tmp
 101         $(MV) $$@.tmp $$@
 102 
 103   GENSRC_AWT_ICONS += $$($1_TARGET64)
 104 endef
 105 
 106 $(foreach I, $(GENSRC_AWT_ICONS_SRC), $(eval $(call SetupGensrcAWTIcon,$(notdir $(I)),$(dir $(I)))))
 107 
 108 GENSRC_JAVA_DESKTOP += $(GENSRC_AWT_ICONS)
 109 
 110 ################################################################################
 111 
 112 ifeq ($(OPENJDK_TARGET_OS), macosx)
 113 
 114   GENSRC_OSX_ICONS_DST := $(SUPPORT_OUTPUTDIR)/headers/java.desktop
 115   GENSRC_OSX_ICONS := $(GENSRC_OSX_ICONS_DST)/AWTIconData.h
 116 
 117   ifdef OPENJDK
 118     GENSRC_OSX_ICONS_SRC := $(JDK_TOPDIR)/make/data/macosxicons/JavaApp.icns
 119   else
 120     GENSRC_OSX_ICONS_SRC := $(JDK_TOPDIR)/make/closed/data/macosxicons/JavaApp.icns
 121   endif
 122 
 123   $(GENSRC_OSX_ICONS): $(GENSRC_OSX_ICONS_SRC) $(BUILD_TOOLS_JDK)
 124         $(call LogInfo, Generating $(patsubst $(OUTPUT_ROOT)/%, %, $@))
 125         $(call MakeDir, $(@D))
 126         $(RM) $@ $@.tmp
 127         $(ECHO) "static unsigned char sAWTIconData[] = { " >> $@.tmp
 128         $(CAT) $< | $(TOOL_OSX_TOBIN) >> $@.tmp
 129         $(ECHO) "};" >> $@.tmp
 130         $(MV) $@.tmp $@
 131 
 132   GENSRC_JAVA_DESKTOP += $(GENSRC_OSX_ICONS)
 133 endif


   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 $(eval $(call IncludeCustomExtension, jdk, gensrc/GensrcIcons.gmk))
  27 
  28 GENSRC_AWT_ICONS :=
  29 GENSRC_AWT_ICONS_SRC :=
  30 GENSRC_AWT_ICONS_TMP := $(SUPPORT_OUTPUTDIR)/gensrc/java.desktop
  31 GENSRC_AWT_ICONS_DST := $(GENSRC_AWT_ICONS_TMP)/sun/awt/
  32 
  33 # Allow this to be overridden from a custom makefile
  34 X11_ICONS_PATH_PREFIX ?= $(JDK_TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)



  35 
  36 GENSRC_AWT_ICONS_SRC += \
  37     $(X11_ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon16.png \
  38     $(X11_ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon24.png \
  39     $(X11_ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon32.png \
  40     $(X11_ICONS_PATH_PREFIX)/classes/sun/awt/X11/java-icon48.png
  41 
  42 
  43 AWT_ICONPATH := $(JDK_TOPDIR)/src/java.desktop/share/classes/sun/awt/resources
  44 
  45 GENSRC_AWT_ICONS_SRC += \
  46     $(AWT_ICONPATH)/security-icon-bw16.png \
  47     $(AWT_ICONPATH)/security-icon-interim16.png \
  48     $(AWT_ICONPATH)/security-icon-yellow16.png \
  49     $(AWT_ICONPATH)/security-icon-bw24.png \
  50     $(AWT_ICONPATH)/security-icon-interim24.png \
  51     $(AWT_ICONPATH)/security-icon-yellow24.png \
  52     $(AWT_ICONPATH)/security-icon-bw32.png \
  53     $(AWT_ICONPATH)/security-icon-interim32.png \
  54     $(AWT_ICONPATH)/security-icon-yellow32.png \


  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 ?= $(JDK_TOPDIR)/make/data/macosxicons/JavaApp.icns
 117 



 118 
 119   $(GENSRC_OSX_ICONS): $(GENSRC_OSX_ICONS_SRC) $(BUILD_TOOLS_JDK)
 120         $(call LogInfo, Generating $(patsubst $(OUTPUT_ROOT)/%, %, $@))
 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 >