2008-02-21 13:08:39 -08: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/.
|
2008-02-21 13:08:39 -08:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2008-02-21 13:08:39 -08:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2012-08-04 11:26:44 -07:00
|
|
|
relativesrcdir = @relativesrcdir@
|
2008-02-21 13:08:39 -08:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
2008-09-05 06:35:58 -07:00
|
|
|
|
|
|
|
DIRS = \
|
2009-01-13 04:34:19 -08:00
|
|
|
blueprint \
|
|
|
|
js-input \
|
|
|
|
$(NULL)
|
2008-09-05 06:35:58 -07:00
|
|
|
|
2008-02-21 13:08:39 -08:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2009-02-12 05:49:53 -08:00
|
|
|
# We install to _profile/pgo
|
|
|
|
TARGET_DEPTH = ../..
|
|
|
|
include $(topsrcdir)/build/automation-build.mk
|
|
|
|
|
2011-12-16 10:16:54 -08:00
|
|
|
# Need to override the browser_path from binary-location.mk (included via automation-build.mk)
|
|
|
|
# since we want to run from e.g. dist/firefox rather than dist/bin
|
|
|
|
ifeq ($(OS_ARCH),Darwin)
|
|
|
|
browser_path = \"$(TARGET_DIST)/$(MOZ_APP_NAME)/$(MOZ_MACBUNDLE_NAME)/Contents/MacOS/$(PROGRAM)\"
|
|
|
|
else
|
|
|
|
browser_path = \"$(TARGET_DIST)/$(MOZ_APP_NAME)/$(PROGRAM)\"
|
|
|
|
endif
|
|
|
|
|
2008-02-21 13:08:39 -08:00
|
|
|
# Stuff to make a build with a profile
|
|
|
|
|
|
|
|
_PGO_FILES = \
|
2009-01-13 04:34:19 -08:00
|
|
|
automation.py \
|
2010-01-11 15:55:51 -08:00
|
|
|
$(topsrcdir)/build/automationutils.py \
|
2009-01-13 04:34:19 -08:00
|
|
|
profileserver.py \
|
|
|
|
genpgocert.py \
|
|
|
|
index.html \
|
|
|
|
server-locations.txt \
|
|
|
|
favicon.ico \
|
|
|
|
$(NULL)
|
2008-02-21 13:08:39 -08:00
|
|
|
|
2008-09-05 06:35:58 -07:00
|
|
|
genpgocert.py: genpgocert.py.in
|
|
|
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py \
|
|
|
|
$(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $^ > $@
|
|
|
|
|
2011-01-25 12:15:38 -08:00
|
|
|
GARBAGE += genpgocert.py
|
2008-02-21 13:08:39 -08:00
|
|
|
|
|
|
|
libs:: $(_PGO_FILES)
|
|
|
|
$(INSTALL) $^ $(_PROFILE_DIR)
|
2008-09-28 13:35:45 -07:00
|
|
|
|
2008-10-21 08:50:38 -07:00
|
|
|
genservercert::
|
2008-09-28 13:35:45 -07:00
|
|
|
$(PYTHON) $(DEPTH)/_profile/pgo/genpgocert.py --gen-server
|