Bug 1440789 - Create built_in_addons.json at package-time on mobile r=nalexander

--HG--
extra : rebase_source : 307839988addee10fa6e2d73978b0b6430b64564
This commit is contained in:
Matthew Finkel 2018-03-02 05:38:32 +00:00
parent 10ae4a8271
commit 64d273c0bd

View File

@ -80,3 +80,13 @@ 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