Begin forwarded message:
> From: Henry Minsky <[email protected]> > Date: October 8, 2010 5:07:58 PM EDT > To: [email protected], [email protected] > Cc: Platform Team <[email protected]> > Subject: For Review: Change hqm-20101008-a79 Summary: add flag to allow > <switch> in lzo's > > Here's a proposed workaround for the <switch> in LZO issue, which is to add a > compiler flag to permit them. > > > For the webtop, this would mean they would have to compile their lzo's that > refer to the av components specifically > for their target runtime (swf10) > lzc -c --runtime=swf10 > > I don't know if this is an acceptable solution, but it might allow progress > for now > > Change hqm-20101008-a79 by [email protected] on 2010-10-08 16:10:48 EDT > in /Users/hqm/openlaszlo/trunk-clean > for http://svn.openlaszlo.org/openlaszlo/trunk > > Summary: add flag to allow <switch> in lzo's > > New Features: > > Bugs Fixed: LPP-9432 > > Technical Reviewer: ptw > QA Reviewer: (pending) > Doc Reviewer: (pending) > > Documentation: > > Release Notes: > > Overview: > > > Details: > > + add compiler flag to suppress warnings when <switch> block found in > external lzo library. This would allow > an lzo compiled with a specific runtime (e.g., runtime=swf10) to use that > value in any switch > statements. This would produce a runtime-specific lzo file. > > > Tests: > > test lib: > <library> > <mediastream debug="true" name="ms" buffertime="5" type="http" > url="http://www.archive.org/download//JudgeMediaTestVideoFile_0/video.flv"/> > </library> > > compile with new flag, should compile without error, using swf10 runtime > value for any switch blocks: > lzc -c --allow-lzo-switch --runtime=swf10 test/media/lib.lzx > > > compile without flag, should get error about <switch> in external lib: > lzc -c --runtime=swf10 test/media/lib.lzx > Compiling: test/media/lib.lzx to lib.lzo > Compilation errors occurred: > test/media/lib.lzx:3:146: Unknown tag <mediastream> > extensions/av/mediastream.lzx:14:9: Compile may fail due to conditional class > definitions in <switch> > test/media/lib.lzx:1:10: The tag 'mediastream' cannot be used as a child of > library > > > > > Files: > M > WEB-INF/lps/server/src/org/openlaszlo/compiler/CompilationEnvironment.java > M WEB-INF/lps/server/src/org/openlaszlo/compiler/Main.java > M WEB-INF/lps/server/src/org/openlaszlo/compiler/Parser.java > > Changeset: http://svn.openlaszlo.org/openlaszlo/patches/hqm-20101008-a79.tar
