Hi Chris, ----- Original Message ----- > From: "Chris Mills" <[email protected]> > To: "Jed Davis" <[email protected]>, "Julien Wajsberg" <[email protected]> > Cc: "dev-gaia" <[email protected]>, [email protected] > Sent: Monday, February 10, 2014 1:43:27 PM > Subject: Re: [b2g] Info needed: how to specify which Gaia apps are included > in a Gaia build, and how to show/hide the > marketplace app > > Thanks for your help, both. I’ve added a section to the Gaia Hacking article > to hopefully cover this: > > https://developer.mozilla.org/en-US/Firefox_OS/Platform/Gaia/Hacking#Customizing_the_build-time_apps > > Does this sound ok? > > The one thing I don’t get understand is - which apps-*.list file do you have > to edit, and when? I’m assuming you can make use of different ones in > different circumstances, but how?
gaia/Makefile has this: GAIA_APP_TARGET?=engineering ... ifeq ($(MAKECMDGOALS), demo) GAIA_DOMAIN=thisdomaindoesnotexist.org GAIA_APP_TARGET=demo else ifeq ($(MAKECMDGOALS), dogfood) DOGFOOD=1 else ifeq ($(MAKECMDGOALS), production) PRODUCTION=1 endif ... ifeq ($(PRODUCTION), 1) GAIA_OPTIMIZE=1 GAIA_APP_TARGET=production endif ifeq ($(DOGFOOD), 1) GAIA_APP_TARGET=dogfood endif ... ifndef GAIA_APP_CONFIG GAIA_APP_CONFIG=build$(SEP)config$(SEP)apps-$(GAIA_APP_TARGET).list endif So, a build from source will use app-engineering.list If you specifically build the target called demo, then it will use apps-demo.list. If you specifically build with PRODUCTION=1 then it will use apps-production.list If you specifically build with DOGFOOD=1 then it will use apps-dogfood.list You can completely override the decision by using GAIA_APP_CONFIG and providing your own .list file. Finally, gaia/Android.mk, has these lines: ifneq ($(filter user userdebug, $(TARGET_BUILD_VARIANT)),) GAIA_MAKE_FLAGS += PRODUCTION=1 B2G_SYSTEM_APPS := 1 endif which means that builds which set VARIANT=user or VARIANT=userdebug (these wind up getting reflected in the TARGET_BUILD_VARIANT variable) set PRODUCTION=1 when buildin gaia. Hopefully that helps. Dave Hylands _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
