View unanswered posts | View active topics



Reply to topic  [ 5 posts ] 
Hxml add Debug 
Author Message
Member

Joined: Wed Apr 15, 2015 9:45 pm
Posts: 3
Reply with quote
Hi.

I am using custom build in my haxe project to build a hxml file.

I would like to add the -debug directive when i select debug in the configuration drop down.

Currently i have this in build settings:

$(CompilerPath)\haxe build.hxml -D target=$(TargetBuild) -$(BuildConfig)

Works good in Debug mode but fails on release mode because the haxe compiler dont recognize the -release option.

Would it be possible to configure what $(BuildConfig) contains in the diferent modes: eg.: "-debug" in debug and "" in release.

The other option is to use multiple hxml, but i didnt wanted that just for a simple build...


Wed Apr 15, 2015 10:21 pm
Profile
Member

Joined: Sat May 15, 2010 11:33 am
Posts: 76
Location: Liège - Belgium
Reply with quote
I do not know if I understood the message, but I think haxe compiles fine in debug and release. if the parameters of the project are lime 1.0. In addition, the -release option seems not to exist, it is by default. Only -debug is an option .. Just type "haxe" in command line to realize. sorry for my English.

_________________
Ne baisse jamais les bras, car c'est à ce moment là que le miracle risque de se produire..

My Website: http://www.pureas3.be


Sat May 09, 2015 9:37 pm
Profile WWW
Member

Joined: Wed Apr 15, 2015 9:45 pm
Posts: 3
Reply with quote
Alama wrote:
I do not know if I understood the message, but I think haxe compiles fine in debug and release. if the parameters of the project are lime 1.0. In addition, the -release option seems not to exist, it is by default. Only -debug is an option .. Just type "haxe" in command line to realize. sorry for my English.


I fixed it by using a smal script that ignores the -release flag. I am not using Lime.


Sun May 10, 2015 12:50 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
If you use a custom pre-build command, you can write:
Code:
DEBUG: $(CompilerPath)\haxe build.hxml -D target=$(TargetBuild) -debug
RELEASE: $(CompilerPath)\haxe build.hxml -D target=$(TargetBuild)

Yeah, that's undocumented.


Sun May 17, 2015 10:25 pm
Profile WWW
Member

Joined: Wed Apr 15, 2015 9:45 pm
Posts: 3
Reply with quote
Philippe wrote:
If you use a custom pre-build command, you can write:
Code:
DEBUG: $(CompilerPath)\haxe build.hxml -D target=$(TargetBuild) -debug
RELEASE: $(CompilerPath)\haxe build.hxml -D target=$(TargetBuild)

Yeah, that's undocumented.


That was exactly what i was looking for :)
Thank you, and yes, it should be documented 8)


Mon May 18, 2015 7:53 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.