calendar/base/Makefile.in
author Gervase Markham <gerv@gerv.net>
Wed, 30 May 2012 17:48:24 +0100
changeset 12286 84ac3c71109811da751f0ef2d72108075938f094
parent 9035 f949fa44766392f56e3e690d298ca1f3ead3fb4a
child 13273 6ce4c3cdaf3c3bace2bd82a9c46543a682fe262f
permissions -rw-r--r--
Bug 757018 - upgrade license to MPL 2.

# 
# 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		= ../..
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

MODULE = calbase
MODULE_NAME = calBaseModule

DIRS = public src modules build

# Select a theme from which to pull our skin goodness
# Linux: gnomestripe
# OS X: pinstripe
# Windows: winstripe

ifneq (,$(filter gtk2 qt,$(MOZ_WIDGET_TOOLKIT)))
THEME = gnomestripe
else
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
THEME = pinstripe
else
THEME = winstripe
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/winstripe/icons/, $(addsuffix $(ICON_SUFFIX), $(WINDOW_ICONS)))
	$(INSTALL) $^ $(FINAL_TARGET)/chrome/icons/default

endif