michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: TESTING_JS_MODULES := AddonManagerTesting.jsm michael@0: michael@0: ADDONSRC = $(srcdir)/addons michael@0: TESTROOT = $(CURDIR)/$(DEPTH)/_tests/xpcshell/$(relativesrcdir) michael@0: TESTXPI = $(TESTROOT)/xpcshell/addons michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: libs:: michael@0: rm -rf $(TESTXPI) michael@0: $(NSINSTALL) -D $(TESTXPI) michael@0: if [ -d $(ADDONSRC) ]; then \ michael@0: $(EXIT_ON_ERROR) \ michael@0: for dir in $(ADDONSRC)/*; do \ michael@0: base=`basename $$dir` ; \ michael@0: (cd $$dir && zip -qr $(TESTXPI)/$$base.xpi *) \ michael@0: done \ michael@0: fi