Hi Velo,
I hope I can answer your question as I am not sure what you mean.
The lib-b and the lib-a are build using this compiler configuration:
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<configuration>
<debug>true</debug>
<rslUrls>
<rsl>{artifactId}-{version}.{extension}</rsl>
</rslUrls>
<targetPlayer>9.0.124</targetPlayer>
<staticLinkRuntimeSharedLibraries>false</
staticLinkRuntimeSharedLibraries>
</configuration>
<executions>
<execution>
<goals>
<goal>optimize</goal>
</goals>
</execution>
</executions>
</plugin>
lib-b has a dependency on lib-a, which is defined as RSL:
<dependency>
<groupId>de.yeap.playground.rsls</groupId>
<artifactId>lib-a</artifactId>
<version>1.0-SNAPSHOT</version>
<type>swc</type>
<scope>rsl</scope>
</dependency>
If I use such a dependency for an application, the library would be
dynamically loaded and will no increase the size of the application.
But in case of a library, this library is always statically compiled
against the RSL dependency. See my blog posting for a comparison of
the file sizes of lib-b either statically linked against lib-a or
dynamically as RSL. The sizes are exactly the same.
Best regards,
Carsten
On Jun 22, 3:37 pm, Marvin Froeder <[email protected]> wrote:
> Ok, how did you manage to build a dynamic linked library?
> VELO
>
> On Mon, Jun 22, 2009 at 10:01 AM, Carsten Schlipf <[email protected]
>
> > wrote:
>
> > I simply created a RSL, that's what I meant by a dynamically linked
> > library. And in case of applications it works . Just not in case of
> > libraries. On my blog you can see how I have created the libraries and
> > what the results are. There you'll also find a sample project with the
> > mentioned libraries and the application for download.
>
> > On Jun 22, 2:23 pm, Marvin Froeder <[email protected]> wrote:
> > > Ow, I see now, and how did you manage to build a dynamic linked library?
> > > VELO
>
> > > On Mon, Jun 22, 2009 at 4:15 AM, Carsten Schlipf
> > > <[email protected]>wrote:
>
> > > > Hi Velo,
>
> > > > Just to make sure you understood me correctly: Actually I want my
> > > > libraries to be dynamically linked, not statically. But the compiler
> > > > still linkes the libraries statically.
>
> > > > According to the documentation the option
> > > > staticLinkRuntimeSharedLibraries is set to false by default, so this
> > > > is the case in my sample project. So in case this option is false, my
> > > > libraries should be dynamically linked against RSLs and not
> > > > statically. But that's not the case. It looks like
> > > > staticLinkRuntimeSharedLibraries is always set to true. I just set it
> > > > to false explicitly, but still no change. RSLs are still compiled
> > > > statically into libraries (just into libraries, not into
> > > > applications).
>
> > > > Best regards,
> > > > Carsten
>
> > > > On Jun 22, 1:36 am, Marvin Froeder <[email protected]> wrote:
> > > > > Well, looks a bug on flex compiler, since it should detect that and
> > > > switch
> > > > > to static linked automatically...
> > > > > You can do that manually:
> > > >http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-sw.
> > ..
>
> > > > > <
> >http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-sw..
> > > > .>But
> > > > > is there any scenario where the current behavior is valid?
>
> > > > > If no, I can implement this logic on flexmjos to get static link
> > > > > automatically.
>
> > > > > VELO
>
> > > > > On Sun, Jun 21, 2009 at 2:51 PM, Carsten Schlipf
> > > > > <[email protected]>wrote:
>
> > > > > > Hi all,
>
> > > > > > during the change of a bigger project to RSLs I noticed that
> > libraries
> > > > > > are way bigger than they should be. After looking further into this
> > I
> > > > > > found out that a library is ALWAYS statically linked against
> > > > > > dependencies, no mater wheter the scope is RSL or Caching.
>
> > > > > > You can find a more detailed explanation and a sample project at
>
> >http://www.yeap.de/blog2.0/archives/203-Size-of-Flex-RSLs-with-depend.
> > > > ..
>
> > > > > > Velo, are you already aware of this? As of my understanding I
> > assume a
> > > > > > bug in the Flex compiler and not in flex-mojos, but I would like to
> > > > > > hear your opinion, before I file a JIRA report at Adobe.
>
> > > > > > Best regards,
> > > > > > Carsten
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en
http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---