On Fri, Mar 12, 2010 at 2:32 PM, Yves Moisan <[email protected]> wrote:
>
>> First of all, in case it is unclear:
>>
>> - @requires means place the required file *before* this file (the file
>> that has the @requires directive) in the build.
>>
>> - @include means place the required file anywhere in the build, before
>> or after this file it doesn't matter.
>>
>> OpenLayers uses @requires directives only, because OpenLayers' build
>> script supports @requires only. And these directives target OpenLayers
>> files only.
>>
>> GeoExt uses @requires and @include directives. And these directives
>> target GeoExt files only. Since GeoExt uses OpenLayers classes it
>> would make sense to have build directives to OpenLayers files as well.
>> We have discussed this in the past, but to be still able to create
>> GeoExt-only builds we'll need a patch to jsbuild so dependencies can
>> optionaly be ignored. IIRC there's a jsbuild issue about that on
>> GitHub.
>>
>> MapFish uses @requires and @include, to MapFish, GeoExt and OpenLayers
>> files. This means that, with today's jsbuild, one cannot create
>> MapFish-only builds.
>>
>> Ext doesn't use @requires and @include, it has its own build system.
>>
>> Cheers,
>>
>>
>
> Thank you Eric for this thorough explanation.  To put things into
> perspective, if I wanted to have the leanest possible OL lib with the
> MapFish build I could exclude selected MapFish components from the build and
> that would cascade down to OL ?

Yes, this will produce the leanest MF+GX+OL build.

> If I wanted for example to not include the
> OL code for vector layers all I'd have to do is find the right MapFish
> component to exclude and that would cascade things down to exclude the
> required OL files and whatever GeoExt dependencies those excluded MapFish
> components may have ?

Yes.


-- 
Eric Lemoine
Camptocamp France SA
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Dev mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/dev

Reply via email to