Bug 664090 follow-up: simpler way to make DEBUG available in preprocessed file. DONTBUILD

This commit is contained in:
Philipp von Weitershausen 2011-06-20 14:28:19 +02:00
Родитель da7701b249
Коммит a640e6472c
1 изменённых файлов: 1 добавлений и 8 удалений

Просмотреть файл

@ -48,12 +48,5 @@ XPCSHELL_TESTS = unit
include $(topsrcdir)/config/rules.mk
# Preprocessor.py won't recognize DEBUG as defined if you just pass -DDEBUG.
# See bug 664313. (Also, yay for consistency with DEBUG v. MOZ_DEBUG.)
SYNCDEFINES=
ifdef MOZ_DEBUG
SYNCDEFINES += -DDEBUG=1
endif
libs:: unit/head_appinfo.js.in
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) $(SYNCDEFINES) $^ > $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit/head_appinfo.js
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) $^ > $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit/head_appinfo.js