Project Setup for multiple compile and compile target settings

Hi. I am using FlashDevelop. I am trying to code a Flash/Cpp video player server that sends timing information to Android clients that sync audio play to the video allowing for multiple language tracks. Can anyone help me figure out the correct proj…

Viewing 1 to 5 (5 Total)
Project Setup for multiple compile and compile target settings

Franky

Franky
Total Posts: 87
Joined: February 26, 2012

Hi.
I am using FlashDevelop.
I am trying to code a Flash/Cpp video player server that sends timing information to Android clients that sync audio play to the video allowing for multiple language tracks.

Can anyone help me figure out the correct project settings I should use for this please ?
Should I be using FlashDevelop at all for this ? NME project setting or something else ? And how do I set that up, both compile to separate targets (Flash or cpp and Android). Noob question probably, but I am clueless to this. Also read the nmml file description but can't figure out to make both server and client compile on each compile run. If anyone could please shed some light on this... getting frustating. Sorry if this is approached elsewhere but I looked and couldn't find it.

Tags:
Posted on May 12, 2012 at 4:15 AM

Philippe

Philippe
Total Posts: 261
Joined: September 08, 2011

Re: Project Setup for multiple compile and compile target settings

NME build tool is only designed to build one app.

You can certainly automate the server build using a regular .hxml - it should probably work if you call haxe compiler in a pre-build or post-build step of the FD project build options.

Posted on May 12, 2012 at 9:32 AM

Franky

Franky
Total Posts: 87
Joined: February 26, 2012

Re: Project Setup for multiple compile and compile target settings

I was getting stuck looking at the .nmml file format details, wondering if there was something corresponding to the --next in .hxml files.

The only way I see it, so that I can do this in one app document project from inside FD, is to use conditional compile but that probably isn't the major intent for it so I don't think I will go there.

The pre-build haxe compilation will have to save the day.
Thanks for explaining this Philippe.

Posted on May 12, 2012 at 9:48 AM

Philippe

Philippe
Total Posts: 261
Joined: September 08, 2011

Re: Project Setup for multiple compile and compile target settings

You can also have several .hxproj in the same directory.

Posted on May 12, 2012 at 10:14 AM

Franky

Franky
Total Posts: 87
Joined: February 26, 2012

Re: Project Setup for multiple compile and compile target settings

Oh, will look into that too. Thank you again.


Edit:
Conditional compile works wonders for what I was going for, just calling a starter class for the server or the client depending on compile target allows for the code to stay in the same proj nice and tidy. Either way will have a look at the .hxproj's route too after this.

Posted on May 12, 2012 at 10:55 AM