suite/branding/nightly/Makefile.in
author Mike Hommey <mh+mozilla@glandium.org>
Fri, 03 Oct 2014 09:26:38 +0900
changeset 21002 8d4ad6998bcc8ec2440f005ef5146e02944cdd1c
parent 20705 c6e6b13f53196b81aa7b059e04526669fa944ec6
child 22403 d2a5e29e29c4d5fbec72427a22c062a7dc5c00e8
permissions -rw-r--r--
Fixup for bug 1062235 - Add missing slashes on a CLOSED TREE. r=me

#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

# Note: mac icons are handled in /suite/app during the final application
# packaging
ifneq (,$(filter windows gtk gtk2,$(MOZ_WIDGET_TOOLKIT)))
ifneq (,$(filter windows,$(MOZ_WIDGET_TOOLKIT)))
ICON_SUFFIX=.ico
else
ICON_SUFFIX=.png
endif

ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
ICON_DIR=gtk
else
ICON_DIR=$(MOZ_WIDGET_TOOLKIT)
endif

DESKTOP_ICONS = \
	abcardWindow \
	ablistWindow \
	addressbookWindow \
	bookmarkproperties \
	downloadManager \
	editorWindow \
	findBookmarkWindow \
	findHistoryWindow \
	history-window \
	JSConsoleWindow \
	main-window \
	messengerWindow \
	msgcomposeWindow \
	places \
	$(NULL) 

ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
# Windows icons
DESKTOP_ICONS += \
	gif-file \
	html-file \
	misc-file \
	image-file \
	jpeg-file \
	script-file \
	xml-file \
	xul-file \
	$(NULL)
endif

ifeq ($(ICON_DIR),gtk)
libs:: icons/gtk/seamonkey.png
	$(INSTALL) $(IFLAGS1) $^ $(DIST)/bin/chrome/icons/default

GARBAGE	+= $(DIST)/bin/chrome/icons/default/seamonkey.png

DESKTOP_ICONS += default
DESKTOP_ICONS_SMALL = $(patsubst %,%16,$(DESKTOP_ICONS))
DESKTOP_ICONS_LARGE = $(patsubst %,%48,$(DESKTOP_ICONS))
endif

DESKTOP_ICON_FILES = $(addsuffix $(ICON_SUFFIX), $(DESKTOP_ICONS) $(DESKTOP_ICONS_SMALL) $(DESKTOP_ICONS_LARGE))

libs:: $(addprefix icons/$(ICON_DIR)/,$(DESKTOP_ICON_FILES))
	$(INSTALL) $(IFLAGS1) $^ $(DIST)/bin/chrome/icons/default

GARBAGE	+= $(addprefix $(DIST)/bin/chrome/icons/default/,$(DESKTOP_ICON_FILES))
endif

include $(topsrcdir)/config/rules.mk

export::
	$(NSINSTALL) -D $(DIST)/branding
ifeq ($(OS_ARCH),WINNT)
	cp $(srcdir)/icons/windows/seamonkey.ico      $(DIST)/branding/seamonkey.ico
	cp $(srcdir)/icons/windows/html-file.ico      $(DIST)/branding/html-file.ico
	cp $(srcdir)/package/windows/branding.nsi     $(DIST)/branding/branding.nsi
	cp $(srcdir)/package/windows/wizHeader.bmp    $(DIST)/branding/wizHeader.bmp
	cp $(srcdir)/package/windows/wizHeaderRTL.bmp $(DIST)/branding/wizHeaderRTL.bmp
	cp $(srcdir)/package/windows/wizWatermark.bmp $(DIST)/branding/wizWatermark.bmp
endif
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
	$(NSINSTALL) -D $(DIST)/branding
	$(NSINSTALL) -D $(DIST)/branding/icons
	cp $(srcdir)/icons/mac/document.icns          $(DIST)/branding/icons/document.icns
	cp $(srcdir)/icons/mac/seamonkey.icns         $(DIST)/branding/icons/seamonkey.icns
	cp $(srcdir)/package/mac/dsstore              $(DIST)/branding/dsstore
	cp $(srcdir)/package/mac/background.png       $(DIST)/branding/background.png
	cp $(srcdir)/package/mac/disk.icns            $(DIST)/branding/disk.icns
endif