2012-09-07 22:13:55 +00: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/.
|
|
|
|
|
2015-07-06 02:01:00 +00:00
|
|
|
# For b2gdroid, gaia ends up in the assets/gaia folder in the APK.
|
|
|
|
GAIA_PATH := $(if MOZ_B2GDROID,gaia/assets/gaia,gaia/profile)
|
2012-09-07 22:13:55 +00:00
|
|
|
|
2015-08-29 00:06:53 +00:00
|
|
|
# For b2gdroid, we disable the screen timeout since this is managed by android.
|
|
|
|
# We also limit the app set to the production ones.
|
2015-10-28 22:18:09 +00:00
|
|
|
GAIA_OPTIONS := $(if MOZ_B2GDROID, \
|
|
|
|
GAIA_DISTRIBUTION_DIR=distros/b2gdroid \
|
|
|
|
NO_LOCK_SCREEN=1 \
|
|
|
|
)
|
2015-08-29 00:06:53 +00:00
|
|
|
|
2012-09-07 22:13:55 +00:00
|
|
|
GENERATED_DIRS += $(DIST)/bin/$(GAIA_PATH)
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
libs::
|
2014-06-24 23:38:28 +00:00
|
|
|
+$(MAKE) -j1 -C $(GAIADIR) clean
|
2015-08-29 00:06:53 +00:00
|
|
|
+$(GAIA_OPTIONS) $(MAKE) -j1 -C $(GAIADIR) profile
|
2015-12-30 00:40:03 +00:00
|
|
|
(cd $(GAIADIR)/profile && tar $(TAR_CREATE_FLAGS) - .) | (cd $(ABS_DIST)/bin/$(GAIA_PATH) && tar -xf -)
|