# 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/.

# Branding Makefile for nightlies/unofficial branding

include $(topsrcdir)/config/rules.mk

export::
	$(NSINSTALL) -D $(DIST)/branding
ifeq ($(OS_ARCH),WINNT)
	cp $(srcdir)/thunderbird.ico   $(DIST)/branding/thunderbird.ico
	cp $(srcdir)/branding.nsi      $(DIST)/branding/branding.nsi
	cp $(srcdir)/wizHeader.bmp     $(DIST)/branding/wizHeader.bmp
	cp $(srcdir)/wizHeaderRTL.bmp  $(DIST)/branding/wizHeaderRTL.bmp
	cp $(srcdir)/wizWatermark.bmp  $(DIST)/branding/wizWatermark.bmp
endif
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
	cp $(srcdir)/background.png    $(DIST)/branding/background.png
	cp $(srcdir)/dsstore           $(DIST)/branding/dsstore
	cp $(srcdir)/disk.icns         $(DIST)/branding/disk.icns
	cp $(srcdir)/thunderbird.icns  $(DIST)/branding/thunderbird.icns
endif
ifneq (,$(filter gtk%,$(MOZ_WIDGET_TOOLKIT)))
	cp $(srcdir)/mailicon16.png  $(DIST)/branding/default16.png
	cp $(srcdir)/mailicon22.png  $(DIST)/branding/default22.png
	cp $(srcdir)/mailicon24.png  $(DIST)/branding/default24.png
	cp $(srcdir)/mailicon32.png  $(DIST)/branding/default32.png
	cp $(srcdir)/mailicon48.png  $(DIST)/branding/default48.png
	cp $(srcdir)/mailicon256.png $(DIST)/branding/default256.png
endif

# Now sort out the branding specific icons
ifeq ($(OS_ARCH),WINNT)
	cp $(srcdir)/windows/messengerWindow.ico  $(DIST)/branding/messengerWindow.ico
endif
