Making "light" package releases [message #245] |
Fri, 03 October 2008 18:21  |
Eclipse User |
|
|
|
I have a package which ships with source and build script to enable my
consumer to rebuild the package. I would also like to ship (release) the
package with pre-built executables to improve the out-of-box experience. I
configure my package to export everything.
Pkg.exportAll = true;
Unfortunately, this makes my package release quite large. It seems that
the generated content in the package folder accounts for most of the size.
Significantly more than the executables themselves.
Is there a way I can build my executables and ship them in the release but
not include the large content under the package folder? I know some of the
package folder is required, but those file are quite small.
Thanks
~ Ramsey
|
|
|
|
|
Re: Making "light" package releases [message #270 is a reply to message #264] |
Wed, 08 October 2008 11:02   |
Eclipse User |
|
|
|
Ramsey Harris wrote:
> When I use Pkg.attrs.exportAll = true; I still get all the generated
> libraries built by my package. Since these are known to be generated, I
> was not expecting them in the release. I'm using XDCtools 3.10.02.
>
Right, exportAll only _adds_ files to what has already been specified in
your build script. It's used to pickup "legacy/internal" headers
documentation files, etc.
If you only want sources and no libraries you can create multiple
releases (say src_only and full) and when you add libraries (via
addLibrary()), you need to explicitly exclude the src_only release using
the optional releases array.
Pkg.addLibrary("foo", targ, {releases: [full]});
Another way to eliminate libraries from a release is to supply a
"release script" which simply removes them. In this case, you again
create two releases and the _only_ difference is that one of the
releases has a release script that simply removes some/all libraries.
Although it is possible to get a "source only" release, it's painful;
you need to use fairly advanced features for what should be simple,
especially since it is a fairly common request. We do have an
outstanding feature request to provide yet another optional attribute to
releases, say exportSrcOnly, that would make it easy to create such a
release.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03454 seconds