modules/libpref/src/Makefile.in
author Vicamo Yang <vyang@mozilla.com>
Fri, 08 Mar 2013 00:12:44 +0800
changeset 124114 23d5f8aff7c5c38ac9f59cc86d353a81aed45bf1
parent 118534 f2c240863a0ca23e06662c5bba128e1a530039d1
child 125513 97e443115162450609702fc72c99b6d88d8703d6
permissions -rw-r--r--
Bug 833291 - Part 4/7: fix deleteMessage(). r=hsinyi

#
# 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		= pref
LIBRARY_NAME	= pref
EXPORT_LIBRARY = 1
IS_COMPONENT	= 1
MODULE_NAME	= nsPrefModule
GRE_MODULE	= 1
LIBXUL_LIBRARY = 1

CPPSRCS		= \
			  nsPrefBranch.cpp	\
			  nsPrefsFactory.cpp	\
			  prefapi.cpp \
			  prefread.cpp \
			  Preferences.cpp	\
			 $(NULL)

DEFINES += -DOS_ARCH=$(OS_ARCH) \
           -DMOZ_WIDGET_TOOLKIT=$(MOZ_WIDGET_TOOLKIT) \
           $(NULL)

include $(topsrcdir)/config/config.mk
include $(topsrcdir)/ipc/chromium/chromium-config.mk
include $(topsrcdir)/config/rules.mk

GARBAGE		+= $(addprefix $(DIST)/bin/defaults/pref/, \
			mailnews.js editor.js \
			aix.js unix.js winpref.js os2prefs.js)

GARBAGE		+= greprefs.js

# TODO bug 813259 external files should be defined near their location in the source tree.
grepref_files = $(topsrcdir)/netwerk/base/public/security-prefs.js $(srcdir)/init/all.js

ifdef MOZ_DATA_REPORTING
grepref_files += $(topsrcdir)/services/datareporting/datareporting-prefs.js
endif

ifdef MOZ_SERVICES_HEALTHREPORT
grepref_files += $(topsrcdir)/services/healthreport/healthreport-prefs.js
endif

# Optimizer bug with GCC 3.2.2 on OS/2
ifeq ($(OS_ARCH), OS2)
nsPrefService.$(OBJ_SUFFIX): nsPrefService.cpp
	$(REPORT_BUILD)
	@$(MAKE_DEPS_AUTO_CXX)
	$(ELOG) $(CCC) $(OUTOPTION)$@ -c $(COMPILE_CXXFLAGS:-O2=-O1) $(_VPATH_SRCS)
endif


greprefs.js: $(grepref_files)
	$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(PREF_PPFLAGS) $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) $^ > $@

libs:: greprefs.js
	$(INSTALL) $^ $(DIST)/bin/