b2g/gaia/Makefile.in
author sgiles <sgiles@mozilla.com>
Wed, 28 Oct 2015 22:18:09 +0000
changeset 270281 6dade64276f47a25f57af8b61d55c87599cc6daa
parent 261005 2ba0e9f911ef8a8752420ce77f95e0c6e87f5aa5
child 278029 294f8f6ae9e0b8492d202273f02b178f03da00f1
permissions -rw-r--r--
Bug 1219075 - Enable Android lockscreen for b2gdroid r=fabrice

# 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/.

# For b2gdroid, gaia ends up in the assets/gaia folder in the APK.
GAIA_PATH := $(if MOZ_B2GDROID,gaia/assets/gaia,gaia/profile)

# For b2gdroid, we disable the screen timeout since this is managed by android.
# We also limit the app set to the production ones.
GAIA_OPTIONS := $(if MOZ_B2GDROID, \
	GAIA_DISTRIBUTION_DIR=distros/b2gdroid \
	NO_LOCK_SCREEN=1 \
)

GENERATED_DIRS += $(DIST)/bin/$(GAIA_PATH)

include $(topsrcdir)/config/rules.mk

libs::
	+$(MAKE) -j1 -C $(GAIADIR) clean
	+$(GAIA_OPTIONS) $(MAKE) -j1 -C $(GAIADIR) profile
	(cd $(GAIADIR)/profile && tar $(TAR_CREATE_FLAGS) - .) | (cd $(abspath $(DIST))/bin/$(GAIA_PATH) && tar -xf -)