gecko-dev/build/macosx/universal/flight.mk

53 строки
2.4 KiB
Makefile
Исходник Обычный вид История

2012-05-21 15:12:37 +04: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/.
# BE CAREFUL! This makefile handles a postflight_all rule for a
# multi-project build, so DON'T rely on anything that might differ between
# the two OBJDIRs.
ifndef OBJDIR
OBJDIR_ARCH_1 = $(MOZ_OBJDIR)/$(firstword $(MOZ_BUILD_PROJECTS))
OBJDIR_ARCH_2 = $(MOZ_OBJDIR)/$(word 2,$(MOZ_BUILD_PROJECTS))
DIST_ARCH_1 = $(OBJDIR_ARCH_1)/dist
DIST_ARCH_2 = $(OBJDIR_ARCH_2)/dist
DIST_UNI = $(DIST_ARCH_1)/universal
OBJDIR = $(OBJDIR_ARCH_1)
endif
topsrcdir = $(TOPSRCDIR)
include $(OBJDIR)/config/autoconf.mk
core_abspath = $(if $(filter /%,$(1)),$(1),$(CURDIR)/$(1))
DIST = $(OBJDIR)/dist
postflight_all:
ifdef ENABLE_TESTS
mkdir -p $(DIST_UNI)/$(MOZ_PKG_APPNAME)
rm -f $(DIST_ARCH_2)/universal
ln -s $(call core_abspath,$(DIST_UNI)) $(DIST_ARCH_2)/universal
# Now, repeat the process for the test package.
2010-10-01 04:10:19 +04:00
$(MAKE) -C $(OBJDIR_ARCH_1) UNIVERSAL_BINARY= CHROME_JAR= package-tests
$(MAKE) -C $(OBJDIR_ARCH_2) UNIVERSAL_BINARY= CHROME_JAR= package-tests
rm -rf $(DIST_UNI)/test-package-stage
# automation.py differs because it hardcodes a path to
# dist/bin. It doesn't matter which one we use.
if test -d $(DIST_ARCH_1)/test-package-stage -a \
-d $(DIST_ARCH_2)/test-package-stage; then \
cp $(DIST_ARCH_1)/test-package-stage/mochitest/automation.py \
$(DIST_ARCH_2)/test-package-stage/mochitest/; \
cp -RL $(DIST_ARCH_1)/test-package-stage/mochitest/extensions/specialpowers \
$(DIST_ARCH_2)/test-package-stage/mochitest/extensions/; \
cp $(DIST_ARCH_1)/test-package-stage/reftest/automation.py \
$(DIST_ARCH_2)/test-package-stage/reftest/; \
cp -RL $(DIST_ARCH_1)/test-package-stage/reftest/specialpowers \
$(DIST_ARCH_2)/test-package-stage/reftest/; \
$(TOPSRCDIR)/build/macosx/universal/unify \
--unify-with-sort "\.manifest$$" \
--unify-with-sort "all-test-dirs\.list$$" \
$(DIST_ARCH_1)/test-package-stage \
$(DIST_ARCH_2)/test-package-stage \
$(DIST_UNI)/test-package-stage; fi
endif