[Pixlib] about pixioc building, applications, dlls and plugins
lionel breduillieard
lionel.breduillieard at gmail.com
Thu Jan 18 11:04:22 EST 2007
Hello Francis,
thanks a lot for sharing this !
I much understand why a pixbuilder can make easier this job, I never
wrote a build file as long !
bye,
Lionel
2007/1/18, Francis Bourre <peterphonix at usa.net>:
>
>
> Hello ! :)
>
> Lionel asked the best way to build dlls few hours ago.
> Here's my workflow !
>
> I use as2ant
> http://sourceforge.net/project/showfiles.php?group_id=94206&package_id=164902
> ant is the way to go, with or without as2ant
>
> Here's the pixioc demo build :
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <project name="SitePeriscope" default="site" basedir=".">
>
>
>
> <property name="width" value="1280"/>
> <property name="height" value="960"/>
>
> <property name="build.dir" location="deploy"/>
> <property name="dll.dir" location="${build.dir}\dll"/>
>
> <property name="width" value="1280"/>
> <property name="height" value="960"/>
> <property name="framerate" value="31"/>
> <property name="bgcolor" value="0"/>
> <property name="swf" value="${build.dir}\assembler.swf"/>
> <property name="player.version" value="8"/>
>
> <property name="killProcessPath" value="C:\killprocess"/>
> <property name="flashInspectorPath" value="C:\Program
> Files\luminic\FlashInspector.swf"/>
> <property name="flashPlayer" value="C:\Program Files\Macromedia\Flash
> 8\Players\Debug\SAFlashPlayer.exe"/>
>
> <property name="src.pixlib"
> value="D:\eclipse\workspace\OSPixlib\src"/>
>
> <target name="site" description="builds site swf">
>
> <!-- Geom.swf -->
> <ant inheritAll="false"
>
> antfile="D:\eclipse\workspace\Pixioc\buildDLL.xml">
>
> <property name="swf" location="deploy\dll\Geom.swf"/>
> <property name="src.dir" value="${src.pixlib}"/>
> <property name="targeted.class"
> value="${src.pixlib}\com\bourre\utils\Geom.as"/>
> </ant>
>
> <!-- RemotingRequest.swf -->
> <ant inheritAll="false"
>
> antfile="D:\eclipse\workspace\Pixioc\buildDLL.xml">
>
> <property name="swf"
> location="deploy\dll\RemotingRequest.swf"/>
> <property name="src.dir" value="${src.pixlib}"/>
> <property name="targeted.class"
> value="${src.pixlib}\com\bourre\data\request\RemotingRequest.as"/>
> </ant>
>
> <!-- VideoDisplay.swf -->
> <ant inheritAll="false"
>
> antfile="D:\eclipse\workspace\Pixioc\buildDLL.xml">
>
> <property name="swf"
> location="deploy\dll\VideoDisplay.swf"/>
> <property name="src.dir" value="${src.pixlib}"/>
> <property name="targeted.class"
> value="${src.pixlib}\com\bourre\medias\video\VideoDisplay.as"/>
> </ant>
>
>
>
> <!-- Pixioc last version -->
> <ant target="compile"
> antfile="D:\eclipse\workspace\Pixioc\build.xml"
> dir="D:\eclipse\workspace\Pixioc"/>
>
>
>
> <!-- MailingListPlugin -->
> <ant inheritAll="false"
> target="compile"
>
> antfile="D:\eclipse\workspace\MailingListPlugin\build.xml"
> dir="D:\eclipse\workspace\MailingListPlugin">
>
> <property name="build.dir" value="${dll.dir}"/>
>
> </ant>
>
>
>
> <!-- MP3PlaylistPlugin -->
> <ant inheritAll="false"
> target="compile"
>
> antfile="D:\eclipse\workspace\MP3PlaylistPlugin\build.xml"
> dir="D:\eclipse\workspace\MP3PlaylistPlugin">
>
> <property name="build.dir" value="${dll.dir}"/>
>
> </ant>
>
>
>
> <!-- RightClickMenuPlugin -->
> <ant inheritAll="false"
> target="compile"
>
> antfile="D:\eclipse\workspace\RightClickMenuPlugin\build.xml"
> dir="D:\eclipse\workspace\RightClickMenuPlugin">
>
> <property name="build.dir" value="${dll.dir}"/>
>
> </ant>
>
>
>
> <!-- URLAccessPlugin -->
> <ant inheritAll="false"
> target="compile"
>
> antfile="D:\eclipse\workspace\URLAccessPlugin\build.xml"
> dir="D:\eclipse\workspace\URLAccessPlugin">
>
> <property name="build.dir" value="${dll.dir}"/>
>
> </ant>
>
>
>
> <!-- Kill running swf processes -->
> <exec dir="${killProcessPath}" executable="cmd" os="Windows XP"
> spawn="true">
> <arg line="/c flashplayer.bat"/>
> </exec>
>
>
>
> <!-- Lauch Flash Inspector -->
> <exec executable="${flashPlayer}" spawn="true">
> <arg value="${flashInspectorPath}"/>
> </exec>
>
>
>
> <!-- Lauch Site -->
> <fdt.extSWFViewer.startSWF file="${swf}" width="${width}"
> height="${height}"/>
>
>
>
> <echo message="${ant.project.name} ant task has been executed" />
>
>
>
> </target>
>
> </project>
>
>
>
> As you see, I use buildDLL build file to compile a class:
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <project name="BuildDLL" default="compile" basedir=".">
>
> <property name="mtasc.dir" value="C:\Program
> Files\mtasc-1.12\mtasc.exe"/>
>
> <target name="compile" description="builds dll swf">
>
> <mtasc mtasc="${mtasc.dir}"
> src="${targeted.class}"
> swf="${swf}"
> header="10:10:31:FFFFFF"
> version="8"
> classpath="${src.dir}">
> </mtasc>
>
> <echo message="${ant.project.name} ant task has been executed" />
> <echo message="${swf} dll has been compiled" />
>
> </target>
>
> </project>
>
>
>
> And I got dedicated build file for each plugin:
>
> <project name="Mp3PlayListPlugin" default="test" basedir=".">
>
> <property name="main.classpath"
> value="com/bourre/pixioc/mp3playlist"/>
>
> <property name="main.class" value="Importer.as"/>
>
> <property name="src.dir" location="src"/>
> <property name="build.dir" location="deploy\dll"/>
> <property name="mtasc.dir" value="C:\Program
> Files\mtasc-1.12\mtasc.exe"/>
>
> <property name="src.pixlib"
> value="D:\eclipse\workspace\OSPixlib\src"/>
> <property name="src.pixioc"
> value="D:\eclipse\workspace\Pixioc\src"/>
>
> <property name="assembler"
> location="deploy\assembler.swf"/>
> <property name="killProcessPath" value="C:\killprocess"/>
> <property name="flashInspectorPath" value="C:\Program
> Files\luminic\FlashInspector.swf"/>
> <property name="flashPlayer" value="C:\Program Files\Macromedia\Flash
> 8\Players\Debug\SAFlashPlayer.exe"/>
>
> <property name="width" value="10"/>
> <property name="height" value="10"/>
> <property name="framerate" value="31"/>
> <property name="bgcolor" value="FFFFFF"/>
> <property name="swf" value="${build.dir}/${ant.project.name}.swf"/>
> <property name="player.version" value="8"/>
>
> <target name="compile" description="builds plugin swf">
>
> <mtasc mtasc="${mtasc.dir}"
> src="${src.dir}/${main.classpath}/${main.class}"
> swf="${swf}"
>
> header="${width}:${height}:${framerate}:${bgcolor}"
> version="${player.version}"
> main="yes"
> split="yes">
>
> <classpath>
> <pathelement path="${src.dir}"/>
> <pathelement path="${src.pixlib}"/>
> <pathelement path="${src.pixioc}"/>
> </classpath>
>
> </mtasc>
>
> <echo message="${ant.project.name} ant task has been executed" />
>
> </target>
>
> <target depends="compile" name="test" description="compiles and launch
> test">
>
> <ant target="compile"
> inheritAll="false"
> antfile="D:\eclipse\workspace\Pixioc\build.xml"
> dir="D:\eclipse\workspace\Pixioc">
>
> <property name="swf" value="${assembler}"/>
>
> </ant>
>
> <exec dir="${killProcessPath}" executable="cmd" os="Windows XP"
> spawn="true">
> <arg line="/c flashplayer.bat"/>
> </exec>
>
> <exec executable="${flashPlayer}" spawn="true">
> <arg value="${flashInspectorPath}"/>
> </exec>
>
> <fdt.extSWFViewer.startSWF file="${assembler}" width="10" height="10"/>
>
> </target>
>
> </project>
>
>
>
> That's really quick coz each time I just have to change few lines to make a
> new plugin build or compile a targeted class.
>
> Hope that will give some new tracks to you guys. ;)
>
> The golden feature would be to have auto-generation of build files in
> pixbuilder connected with Ant, hehe ^^
>
> francis
> _______________________________________________
> Pixlib mailing list
> Pixlib at osflash.org
> http://osflash.org/mailman/listinfo/pixlib_osflash.org
>
>
>
More information about the Pixlib
mailing list