2007-03-22 10:30:00 -07:00
|
|
|
#
|
2012-05-21 04:12:37 -07:00
|
|
|
# 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/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
DEFINES += -DOS_ARCH=$(OS_ARCH) \
|
|
|
|
-DMOZ_WIDGET_TOOLKIT=$(MOZ_WIDGET_TOOLKIT) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
GARBAGE += $(addprefix $(DIST)/bin/defaults/pref/, \
|
2009-10-04 03:44:52 -07:00
|
|
|
mailnews.js editor.js \
|
2011-03-26 08:51:35 -07:00
|
|
|
aix.js unix.js winpref.js os2prefs.js)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-10-04 03:44:52 -07:00
|
|
|
GARBAGE += greprefs.js
|
|
|
|
|
2013-01-06 16:15:51 -08:00
|
|
|
# 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
|
|
|
|
|
2013-01-11 13:45:22 -08:00
|
|
|
ifdef MOZ_DATA_REPORTING
|
|
|
|
grepref_files += $(topsrcdir)/services/datareporting/datareporting-prefs.js
|
|
|
|
endif
|
|
|
|
|
2013-01-06 16:15:51 -08:00
|
|
|
ifdef MOZ_SERVICES_HEALTHREPORT
|
2013-05-10 21:30:57 -07:00
|
|
|
ifneq (android,$(MOZ_WIDGET_TOOLKIT))
|
2013-01-06 16:15:51 -08:00
|
|
|
grepref_files += $(topsrcdir)/services/healthreport/healthreport-prefs.js
|
2013-05-10 21:30:57 -07:00
|
|
|
else
|
|
|
|
grepref_files += $(topsrcdir)/mobile/android/chrome/content/healthreport-prefs.js
|
|
|
|
endif
|
2013-01-06 16:15:51 -08:00
|
|
|
endif
|
2009-10-04 03:44:52 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
# Optimizer bug with GCC 3.2.2 on OS/2
|
|
|
|
ifeq ($(OS_ARCH), OS2)
|
|
|
|
nsPrefService.$(OBJ_SUFFIX): nsPrefService.cpp
|
2011-12-08 10:14:06 -08:00
|
|
|
$(REPORT_BUILD)
|
2007-08-17 16:07:39 -07:00
|
|
|
@$(MAKE_DEPS_AUTO_CXX)
|
2007-03-22 10:30:00 -07:00
|
|
|
$(ELOG) $(CCC) $(OUTOPTION)$@ -c $(COMPILE_CXXFLAGS:-O2=-O1) $(_VPATH_SRCS)
|
|
|
|
endif
|
2009-10-04 03:44:52 -07:00
|
|
|
|
|
|
|
|
2013-01-06 16:15:51 -08:00
|
|
|
greprefs.js: $(grepref_files)
|
2009-10-04 03:44:52 -07:00
|
|
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(PREF_PPFLAGS) $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) $^ > $@
|
|
|
|
|
|
|
|
libs:: greprefs.js
|
|
|
|
$(INSTALL) $^ $(DIST)/bin/
|