Bug 1440789 - Create built_in_addons.json at package-time on mobile r=nalexander
☠☠ backed out by a456475502b8 ☠ ☠
authorMatthew Finkel <sysrqb@torproject.org>
Fri, 02 Mar 2018 05:38:32 +0000
changeset 410280 d345b546edcee426579b8b731f749f6878a05892
parent 410279 d1e979715ac1726dddef250ea2444d8702840a3c
child 410281 457b9e70da837921fb5e6b12682b5c0c7604dc6e
push id33723
push userebalazs@mozilla.com
push dateTue, 27 Mar 2018 21:48:41 +0000
treeherdermozilla-central@56d6db4ad38c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander
bugs1440789
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1440789 - Create built_in_addons.json at package-time on mobile r=nalexander
mobile/android/installer/Makefile.in
--- a/mobile/android/installer/Makefile.in
+++ b/mobile/android/installer/Makefile.in
@@ -75,8 +75,18 @@ else
 # Every other platform just winds up in dist/bin
 BINPATH = bin
 endif
 DEFINES += -DBINPATH=$(BINPATH)
 
 ifdef ENABLE_MARIONETTE
 DEFINES += -DENABLE_MARIONETTE=1
 endif
+
+.PHONY: features
+tools features::
+	# Create a sorted list of built-in features. If the features
+	# directory does not exist, then the recipe line returns true
+	# because this is not a fatal error.
+	#
+	# This should determine the target directory using FINAL_TARGET and DIST_SUBDIR, but it doesn't yet for simplicity.
+	$(PYTHON) -c 'import os, json; listing = {"system": sorted(os.listdir("$(DIST)/bin/features"))}; print json.dumps(listing)' > \
+		$(DIST)/bin/chrome/chrome/content/built_in_addons.json || true