[b2g] Info needed: how to specify which Gaia apps are included in a Gaia build, and how to show/hide the marketplace app

2014-02-10 Thread Chris Mills
Hi all,

The title says it all.

Can someone give me a quick guide on how to specify which Gaia apps are 
included in a Gaia build, and how to show/hide the marketplace app as required. 
I’m assuming the latter item is really just the same, as Marketplace is another 
app?

Rough notes will do - I can turn them into neat prose.

This info is required for MWC, so I’d really appreciate a quick turnaround.

Many thanks,

Chris Mills
   Senior tech writer || Mozilla
developer.mozilla.org || MDN
   cmi...@mozilla.com || @chrisdavidmills



___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Info needed: how to specify which Gaia apps are included in a Gaia build, and how to show/hide the marketplace app

2014-02-10 Thread Chris Mills

On 10 Feb 2014, at 17:37, Julien Wajsberg  wrote:

> Le 10/02/2014 18:27, Chris Mills a écrit :
>> Hi all,
>> 
>> The title says it all.
>> 
>> Can someone give me a quick guide on how to specify which Gaia apps are 
>> included in a Gaia build, and how to show/hide the marketplace app as 
>> required. I’m assuming the latter item is really just the same, as 
>> Marketplace is another app?
>> 
>> Rough notes will do - I can turn them into neat prose.
>> 
>> 
> 
> I'd say: delete from apps/ and external-apps what you don't want :)

Wow, was that it?

cheers Julien ;-)
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Info needed: how to specify which Gaia apps are included in a Gaia build, and how to show/hide the marketplace app

2014-02-10 Thread Julien Wajsberg
Le 10/02/2014 18:27, Chris Mills a écrit :
> Hi all,
>
> The title says it all.
>
> Can someone give me a quick guide on how to specify which Gaia apps are 
> included in a Gaia build, and how to show/hide the marketplace app as 
> required. I’m assuming the latter item is really just the same, as 
> Marketplace is another app?
>
> Rough notes will do - I can turn them into neat prose.
>
>

I'd say: delete from apps/ and external-apps what you don't want :)



signature.asc
Description: OpenPGP digital signature
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Info needed: how to specify which Gaia apps are included in a Gaia build, and how to show/hide the marketplace app

2014-02-10 Thread Jed Davis
On Mon, Feb 10, 2014 at 05:27:27PM +, Chris Mills wrote:
> 
> Can someone give me a quick guide on how to specify which Gaia apps are 
> included in a Gaia build, and how to show/hide the marketplace app as 
> required. I’m assuming the latter item is really just the same, as 
> Marketplace is another app?

Editing gaia/build/config/apps-*.list might work -- this is how I put
CrystalSkull and Cubevid back into my eng builds after bug 917144 landed.

--Jed

___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Info needed: how to specify which Gaia apps are included in a Gaia build, and how to show/hide the marketplace app

2014-02-10 Thread Chris Mills
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?

Chris Mills
   Senior tech writer || Mozilla
developer.mozilla.org || MDN
   cmi...@mozilla.com || @chrisdavidmills



On 10 Feb 2014, at 20:25, Jed Davis  wrote:

> On Mon, Feb 10, 2014 at 05:27:27PM +, Chris Mills wrote:
>> 
>> Can someone give me a quick guide on how to specify which Gaia apps are 
>> included in a Gaia build, and how to show/hide the marketplace app as 
>> required. I’m assuming the latter item is really just the same, as 
>> Marketplace is another app?
> 
> Editing gaia/build/config/apps-*.list might work -- this is how I put
> CrystalSkull and Cubevid back into my eng builds after bug 917144 landed.
> 
> --Jed
> 

___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Info needed: how to specify which Gaia apps are included in a Gaia build, and how to show/hide the marketplace app

2014-02-10 Thread Prateek Jadhwani
I wrote a guide to hack Gaia, and understanding Gaia apps. I am not sure if
this would help or not, but if you are just starting working on Gaia, then
this should help.

http://prateekjadhwani.com/wp/?p=690

But if you want anything specific, please let me know, i will try to help
you out.

*Prateek Jadhwani*
www.prateekjadhwani.com


On Mon, Feb 10, 2014 at 4:43 PM, Chris Mills  wrote:

> 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?
>
> Chris Mills
>Senior tech writer || Mozilla
> developer.mozilla.org || MDN
>cmi...@mozilla.com || @chrisdavidmills
>
>
>
> On 10 Feb 2014, at 20:25, Jed Davis  wrote:
>
> > On Mon, Feb 10, 2014 at 05:27:27PM +, Chris Mills wrote:
> >>
> >> Can someone give me a quick guide on how to specify which Gaia apps are
> included in a Gaia build, and how to show/hide the marketplace app as
> required. I'm assuming the latter item is really just the same, as
> Marketplace is another app?
> >
> > Editing gaia/build/config/apps-*.list might work -- this is how I put
> > CrystalSkull and Cubevid back into my eng builds after bug 917144 landed.
> >
> > --Jed
> >
>
> ___
> dev-b2g mailing list
> dev-b2g@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-b2g
>
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Info needed: how to specify which Gaia apps are included in a Gaia build, and how to show/hide the marketplace app

2014-02-10 Thread Dave Hylands
Hi Chris,

- Original Message -
> From: "Chris Mills" 
> To: "Jed Davis" , "Julien Wajsberg" 
> Cc: "dev-gaia" , dev-b2g@lists.mozilla.org
> 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
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Info needed: how to specify which Gaia apps are included in a Gaia build, and how to show/hide the marketplace app

2014-02-10 Thread Fred Lin
If you want a more maintainable customization without forking the core gaia, 
you could use Customizations (which several vendors already did)
https://wiki.mozilla.org/B2G/MarketCustomizations

for example, the basic firefox tablet customized app list is defined in 
`apps.list` under distribution_tablet folder
https://github.com/mozilla-b2g/gaia/tree/master/distribution_tablet 

Those customization could be applied in build time. With the command:

$ GAIA_DISTRIBUTION_DIR=distribution_tablet make


--
Fred


regards
--
Fred


- 原始郵件 -
寄件人: "Chris Mills" 
收件人: "Jed Davis" , "Julien Wajsberg" 
副本: "dev-gaia" , dev-b2g@lists.mozilla.org
寄件箱: 2014年2 月11日, 星期二 上午 5:43:27
標題: 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?

Chris Mills
   Senior tech writer || Mozilla
developer.mozilla.org || MDN
   cmi...@mozilla.com || @chrisdavidmills



On 10 Feb 2014, at 20:25, Jed Davis  wrote:

> On Mon, Feb 10, 2014 at 05:27:27PM +, Chris Mills wrote:
>> 
>> Can someone give me a quick guide on how to specify which Gaia apps are 
>> included in a Gaia build, and how to show/hide the marketplace app as 
>> required. I’m assuming the latter item is really just the same, as 
>> Marketplace is another app?
> 
> Editing gaia/build/config/apps-*.list might work -- this is how I put
> CrystalSkull and Cubevid back into my eng builds after bug 917144 landed.
> 
> --Jed
> 

___
dev-gaia mailing list
dev-g...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-gaia
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Info needed: how to specify which Gaia apps are included in a Gaia build, and how to show/hide the marketplace app

2014-02-11 Thread Chris Mills
Thanks so much for your guidance, Dave and Fred.

I have taken your words and put them into my guide:

https://developer.mozilla.org/en-US/Firefox_OS/Platform/Gaia/Hacking#Customizing_the_build-time_apps

Can you let me know if it sounds correct?

all the best,

Chris Mills
   Senior tech writer || Mozilla
developer.mozilla.org || MDN
   cmi...@mozilla.com || @chrisdavidmills



On 11 Feb 2014, at 02:03, Fred Lin  wrote:

> If you want a more maintainable customization without forking the core gaia, 
> you could use Customizations (which several vendors already did)
> https://wiki.mozilla.org/B2G/MarketCustomizations
> 
> for example, the basic firefox tablet customized app list is defined in 
> `apps.list` under distribution_tablet folder
> https://github.com/mozilla-b2g/gaia/tree/master/distribution_tablet 
> 
> Those customization could be applied in build time. With the command:
> 
>$ GAIA_DISTRIBUTION_DIR=distribution_tablet make
> 
> 
> --
> Fred
> 
> 
> regards
> --
> Fred
> 
> 
> - 原始郵件 -
> 寄件人: "Chris Mills" 
> 收件人: "Jed Davis" , "Julien Wajsberg" 
> 副本: "dev-gaia" , dev-b2g@lists.mozilla.org
> 寄件箱: 2014年2 月11日, 星期二 上午 5:43:27
> 標題: 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?
> 
> Chris Mills
>   Senior tech writer || Mozilla
> developer.mozilla.org || MDN
>   cmi...@mozilla.com || @chrisdavidmills
> 
> 
> 
> On 10 Feb 2014, at 20:25, Jed Davis  wrote:
> 
>> On Mon, Feb 10, 2014 at 05:27:27PM +, Chris Mills wrote:
>>> 
>>> Can someone give me a quick guide on how to specify which Gaia apps are 
>>> included in a Gaia build, and how to show/hide the marketplace app as 
>>> required. I’m assuming the latter item is really just the same, as 
>>> Marketplace is another app?
>> 
>> Editing gaia/build/config/apps-*.list might work -- this is how I put
>> CrystalSkull and Cubevid back into my eng builds after bug 917144 landed.
>> 
>> --Jed
>> 
> 
> ___
> dev-gaia mailing list
> dev-g...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-gaia

___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Info needed: how to specify which Gaia apps are included in a Gaia build, and how to show/hide the marketplace app

2014-02-11 Thread Dave Hylands
Hi Chris,

- Original Message -
> From: "Chris Mills" 
> To: "Fred Lin" , "Dave Hylands" 
> Cc: dev-b2g@lists.mozilla.org
> Sent: Tuesday, February 11, 2014 1:01:42 AM
> 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 so much for your guidance, Dave and Fred.
> 
> I have taken your words and put them into my guide:
> 
> https://developer.mozilla.org/en-US/Firefox_OS/Platform/Gaia/Hacking#Customizing_the_build-time_apps
> 
> Can you let me know if it sounds correct?The demo stuff seems to have been 
> transcribed slightly incorrectly. For whatever reason, the way the Makefile 
> is setup, you don't do DEMO=1 make, but rather make demo.

The VARIANT stuff is normally set in .userconfig. I looked at the .userconfig 
page and I don't see anything there, so its probably worth adding a section.

You might want to skip even mentioning the demo/dogfooding stuff and just 
mention that apps-engineering.list is used for eng builds, and 
apps-production.list is used for user and user-debug, and that you can override 
using GAIA_APP_CONFIG

I only included the Makefile snippets to provide the logic used in making the 
decision.

Dave Hylands
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g