calendar/base/Makefile.in
author tbirdbld
Thu, 24 Apr 2014 11:53:11 -0400
branchGECKO2450_2014042411_RELBRANCH
changeset 16101 ddb9f31a2bcabd1add27b98d85923ff3dbee6295
parent 15499 2793685324eb3bcb77b903c42f0966c6dcf57b7f
permissions -rw-r--r--
Added THUNDERBIRD_24_5_0_RELEASE THUNDERBIRD_24_5_0_BUILD1 tag(s) for changeset c74538a5f310. DONTBUILD CLOSED TREE a=release

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

MODULE_NAME = calBaseModule

ifneq (,$(filter gtk2 qt,$(MOZ_WIDGET_TOOLKIT)))
THEME = linux
else
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
THEME = osx
else
THEME = windows
endif
endif


WINDOW_ICONS = calendar-alarm-dialog \
               calendar-event-dialog \
               calendar-event-summary-dialog \
               calendar-task-dialog \
               calendar-task-summary-dialog \
               $(NULL)


DEFINES += -DTHEME=$(THEME)

include $(topsrcdir)/config/rules.mk

# Window icons are not needed on mac
ifneq (,$(filter windows os2 gtk gtk2,$(MOZ_WIDGET_TOOLKIT)))

# Set up the icon suffix to differ between windows and linux
ifneq (,$(filter windows os2,$(MOZ_WIDGET_TOOLKIT)))
ICON_SUFFIX = .ico
else
ICON_SUFFIX = .png
endif

# Copy the window icons into the correct directory
libs:: $(addprefix themes/windows/icons/, $(addsuffix $(ICON_SUFFIX), $(WINDOW_ICONS)))
	$(INSTALL) $^ $(FINAL_TARGET)/chrome/icons/default

endif