Good stuff.   In build.xml,

+      if (v == 9) {
+         shlibopt += "--option SWF9MainClassName=LFCApplication ";
+      }

looks like you also need --option SWF9WrapperClassName=LzSpriteApplication to match buildlfc* scripts.

Otherwise approved.

Just curious why LzLibrary has a sprite? Does that allow you to detect when the library has finished loading?

- Don

On Nov 17, 2008, at 5:06 PM, Henry Minsky wrote:

Change 20081117-hqm-H by [EMAIL PROTECTED] on 2008-11-17 16:58:08 EST
   in /Users/hqm/openlaszlo/trunk4
   for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: refactor swf9 compilation to prepare for loadable libraries

New Features:

Bugs Fixed: LPP-7184

Technical Reviewer: dda
QA Reviewer: ptw
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

+ make SWF9Writer pass in boilerplate swf9 application code to the script compiler

This will allow SWF9Writer to generate an "application" skeleton class
for each <import> module, which will copy all the exported classes
from the module into the lz namespace object in the main app.

+ define a version of LzLibary in SWF9 kernel, not yet working, just a placeholder

+ start adding code to class compiler to keep a list of which classes are defined in a compilation environment, and what their tag names are, so that these can be
explicitly copied from <import> apps into the main app


loadable modules don't work yet, this is just getting the substrate ready


Tests:

+ swf9 LFC and debug-LFC compiles in swf9, via ant and buildlfc, buildlfcdebug

+ test/smoke/smokecheck in swf8 and swf9 still work

+ debug evaluator still able compile statements and expressions on the server in swf9




Files:
M      WEB-INF/lps/lfc/kernel/swf9/Library.lzs
A      WEB-INF/lps/lfc/kernel/swf9/LzLibrary.as
M      WEB-INF/lps/lfc/kernel/Library.lzs
M      WEB-INF/lps/lfc/buildlfc
M      WEB-INF/lps/lfc/buildlfcdebug
M      WEB-INF/lps/lfc/build.xml
M      WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9External.java
M      WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
M      WEB-INF/lps/server/src/org/openlaszlo/sc/Compiler.java
M      WEB-INF/lps/server/src/org/openlaszlo/sc/lzsc.java
M      WEB-INF/lps/server/src/org/openlaszlo/sc/CodeGenerator.java
M WEB-INF/lps/server/src/org/openlaszlo/compiler/ ObjectWriter.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/Compiler.java
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/SWF9Writer.java
M      WEB-INF/lps/server/src/org/openlaszlo/compiler/ClassModel.java


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20081117-hqm-H.tar


--

Don Anderson
Java/C/C++, Berkeley DB, systems consultant

voice: 617-547-7881
email: [EMAIL PROTECTED]
www: http://www.ddanderson.com



Reply via email to