# Branding Makefile
#  - jars chrome artwork
#  - copies artwork to appropriate places in objdir for bundling into app 
#    resources

DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

DIRS = \
	content \
	locales \
	$(NULL)

PREF_JS_EXPORTS = $(srcdir)/pref/firefox-branding.js

include $(topsrcdir)/config/rules.mk

BROWSER_APP_FILES = \
	default16.png \
	default32.png \
	default48.png \
	$(NULL)

export::
	$(NSINSTALL) -D $(DIST)/chrome/icons/default/
	$(NSINSTALL) -D $(DIST)/branding
	cp $(addprefix $(srcdir)/, $(BROWSER_APP_FILES)) $(DIST)/chrome/icons/default/

BROWSER_APP_FILES =	content/default.png \
		 	$(NULL)

#content/default16.png \
#						content/default32.png \
#				content/default48.png \
#	mozicon128.png \
#	mozicon16.xpm \
#	mozicon50.xpm \
#	firefox.ico \
#	document.ico \

export::
	$(NSINSTALL) -D $(DIST)/branding
	cp $(addprefix $(srcdir)/, $(BROWSER_APP_FILES)) $(DIST)/branding/
	cp run-icecat.sh $(DIST)/bin/run-icecat.sh
	$(NSINSTALL) -D $(DIST)/bin/extensions
	find extensions/ -mindepth 1 -maxdepth 1 -type d -exec cp -rf \{\} $(DIST)/bin/extensions/ \;

#	cp $(addprefix $(srcdir)/, $(BROWSER_APP_FILES)) $(DIST)/branding/
ifneq (,$(filter gtk2,$(MOZ_WIDGET_TOOLKIT)))
#	cp $(srcdir)/document.png  $(DIST)/branding/document.png
	$(NSINSTALL) -D $(DIST)/install
#	cp $(srcdir)/header.png    $(DIST)/install/header.png
#	cp $(srcdir)/watermark.png $(DIST)/install/watermark.png
endif
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
#	cp $(srcdir)/firefox.icns  $(DIST)/branding/firefox.icns
#	cp $(srcdir)/document.icns $(DIST)/branding/document.icns
#	cp $(srcdir)/dsstore $(DIST)/branding/dsstore
#	cp $(srcdir)/background.png $(DIST)/branding/background.png
#	cp $(srcdir)/disk.icns $(DIST)/branding/disk.icns
	cp $(srcdir)/license.r $(DIST)/branding/license.r
endif
ifeq ($(OS_ARCH),WINNT)
#	cp $(srcdir)/firefox.ico  $(DIST)/branding/app.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 ($(OS_ARCH),OS2)
#	cp $(srcdir)/firefox-os2.ico  $(DIST)/branding/firefox.ico
#	cp $(srcdir)/firefox-os2.ico  $(DIST)/branding/app.ico
#	cp $(srcdir)/document-os2.ico  $(DIST)/branding/document.ico
#	cp $(srcdir)/Header.bmp   $(DIST)/branding/Header.bmp
#	cp $(srcdir)/Watermrk.bmp $(DIST)/branding/Watermrk.bmp
endif
