[Laszlo-dev] UPDATED For Review: Change 20070208-ptw-x Summary: Binary Library tweaks
Sebastian Wagner
seba.wagner at gmail.com
Thu Feb 15 07:49:53 PST 2007
thx, thats the trunk dir i did checkout and build:
http://svn.openlaszlo.org/openlaszlo/trunk
sebastian
2007/2/15, Henry Minsky <henry.minsky at gmail.com>:
>
> It did get committed, but maybe the nightly builds are not building. We'll
> check on that.
>
>
> On 2/15/07, Henry Minsky < henry.minsky at gmail.com> wrote:
> >
> > Hmm it looks like my changeset never got committed, maybe I never got a
> > code review back for it. I will check.
> >
> >
> > On 2/15/07, Sebastian Wagner < seba.wagner at gmail.com> wrote:
> > >
> > > i did that testings with the nightly (trunk). I think your patches are
> > > not into nightly, if you try to
> > >
> > > <library>
> > > <font ..../>
> > > </library>
> > >
> > > and write:
> > > <import href="mylib.lzx" ...
> > >
> > > you get a compiler error like that one:
> > >
> > > binarylib/timmons.lzx:3:43: A loadable library cannot embed fonts; If you want to use this font,
> > >
> > >
> > >
> > > add it to the main application sources.
> > >
> > >
> > >
> > > sebastian
> > >
> > >
> > > 2007/2/15, Henry Minsky < henry.minsky at gmail.com>:
> > > >
> > > >
> > > > Sebastian, if you want the fonts in a dynamically loaded library,
> > > > you can do that with the <import> tag, which creates a
> > > > runtime-loadable
> > > > library. Put the font in the library
> > > >
> > > > <library>
> > > > <font ..../>
> > > > </library>
> > > >
> > > > and it will be loaded when the library is loaded.
> > > >
> > > > If you want to defer loading until some later time you do
> > > >
> > > > <import name="mylib" href="mylib.lzx" stage="defer" />
> > > >
> > > > and then call mylib.load() when you want to load it.
> > > >
> > > > I added code in the Legals (OL4 beta) branch to support this (using
> > > > the ImportAssets swf code), but I don't think I patched the 3.4branch to
> > > > do this. You can try with a nightly build from openlaszo.org
> > > >
> > > > http://download.openlaszlo.org/nightly/legals/
> > > >
> > > >
> > > > On 2/15/07, Sebastian Wagner <seba.wagner at gmail.com> wrote:
> > > > >
> > > > > hi,
> > > > >
> > > > > I tried to use that new functionality with 3.4 but I am not clear
> > > > > what it should do. If you compile a libary.lzx with lzc -c
> > > > > library.lzx you got an binary file that will be loaded instead of
> > > > > the lzx-file, you have written down. So changes to the library.lzxhave no effect to the main-file as long as the lzo is not recompiled (which
> > > > > is up to yourself to keep that file updated) That's right?
> > > > >
> > > > > I tried to use it with fonts in the library file but i think it
> > > > > does not work with fonts? Can you confirm that?
> > > > > Is it possible to compile a library file to binary with lzc -c so
> > > > > fonts can be loaded from Library instead of the main file?
> > > > >
> > > > > regards & thx
> > > > > sebastian
> > > > >
> > > > >
> > > > > 2007/2/9, P T Withington < ptw at pobox.com>:
> > > > > >
> > > > > > [With this update, I can get Pablo's library to compile without
> > > > > > bombing.]
> > > > > >
> > > > > > Change 20070208-ptw-x by ptw at dueling-banjos.local on 2007-02-08
> > > > > > 19:29:46 EST
> > > > > > in /Users/ptw/OpenLaszlo/trunk
> > > > > >
> > > > > > Summary: Binary Library tweaks
> > > > > >
> > > > > > Bugs Fixed:
> > > > > > LPP-NaN: Compiler chokes if library.lzx does not exist, even if
> > > > > > library.lzo does
> > > > > > LPP-NaN: Compiler does not recompile app if library.lzo changes
> > > > > >
> > > > > > Technical Reviewer: henry (pending)
> > > > > > QA Reviewer: pablo (pending)
> > > > > > Doc Reviewer: n/a
> > > > > >
> > > > > > Details:
> > > > > > CompilationManager: add flag for resolving Library files.
> > > > > >
> > > > > > LibraryCompiler: remove redundant resolveLibraryName.
> > > > > >
> > > > > > ToplevelCompiler, SWFWriter: Use new
> > > > > > CompilationEnvironment.resolveLibrary
> > > > > > method.
> > > > > >
> > > > > > FileResolver: Add an option to resolve using the 'library
> > > > > > rules'
> > > > > > (if a directory is passed add library.lzx, look for
> > > > > > library.lzo
> > > > > > first).
> > > > > >
> > > > > > CompilationEnvironment: Add new resolveLibrary method, let
> > > > > > resolveReference take a third argument specifying library
> > > > > > resolution, default to element being an include element.
> > > > > >
> > > > > > ImportCompiler, Parser: resolve as library.
> > > > > >
> > > > > > StyleSheetCompiler: use environment resolve interface.
> > > > > >
> > > > > > CompilationError: careful about null.
> > > > > >
> > > > > > Tests:
> > > > > > henry's simple library test
> > > > > > smokecheck
> > > > > > pablo's library compiles
> > > > > >
> > > > > > Files:
> > > > > >
> > > > > > M WEB-INF/lps/server/src/org/openlaszlo/cm/CompilationManager.java
> > > > > > M WEB-INF/lps/server/src/org/openlaszlo/compiler/
> > > > > > LibraryCompiler.java
> > > > > > M WEB-INF/lps/server/src/org/openlaszlo/compiler/
> > > > > > ToplevelCompiler.java
> > > > > >
> > > > > > M WEB-INF/lps/server/src/org/openlaszlo/compiler/SWFWriter.java
> > > > > >
> > > > > > M WEB-INF/lps/server/src/org/openlaszlo/compiler/FileResolver.java
> > > > > > M WEB-INF/lps/server/src/org/openlaszlo/compiler/
> > > > > > CompilationEnvironment.java
> > > > > > M WEB-INF/lps/server/src/org/openlaszlo/compiler/
> > > > > > ImportCompiler.java
> > > > > > M WEB-INF/lps/server/src/org/openlaszlo/compiler/
> > > > > > StyleSheetCompiler.java
> > > > > > M WEB-INF/lps/server/src/org/openlaszlo/compiler/
> > > > > > CompilationError.java
> > > > > >
> > > > > > M WEB-INF/lps/server/src/org/openlaszlo/compiler/Parser.java
> > > > > >
> > > > > > Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070208-ptw-
> > > > > >
> > > > > > x.tar
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Sebastian Wagner
> > > > > http://www.webbase-design.de
> > > > > http://www.laszlo-forum.de
> > > > > Bleichstraße 92
> > > > > 75173 Pforzheim
> > > > > Tel.: 0177-7341829
> > > > > Home: 07231-417456
> > > > > seba.wagner at gmail.com
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Henry Minsky
> > > > Software Architect
> > > > hminsky at laszlosystems.com
> > > >
> > > >
> > >
> > >
> > > --
> > > Sebastian Wagner
> > > http://www.webbase-design.de
> > > http://www.laszlo-forum.de
> > > Bleichstraße 92
> > > 75173 Pforzheim
> > > Tel.: 0177-7341829
> > > Home: 07231-417456
> > > seba.wagner at gmail.com
> > >
> >
> >
> >
> > --
> > Henry Minsky
> > Software Architect
> > hminsky at laszlosystems.com
> >
> >
>
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
>
>
--
Sebastian Wagner
http://www.webbase-design.de
http://www.laszlo-forum.de
Bleichstraße 92
75173 Pforzheim
Tel.: 0177-7341829
Home: 07231-417456
seba.wagner at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20070215/8349eb7e/attachment.html
More information about the Laszlo-dev
mailing list