01-03-2013 11:17 AM
I spent some time with investigating how to do it and I was not successful so I would like to ask you for help.
I'm going to use
// development code
to alternate production and development code and I didn't find place where to put defininition of SOMETHING for mark debug builds.
I tried it in .pro file, in C/C++ build in Eclipse but none worked for me.
Does anybody have any clue?
06-11-2013 10:01 AM
Did you find any solution, I have a cascades solution and would like to have #ifdef to switch between dev url and producion url also i would want to change the icon of the app depending on how its built.
06-11-2013 03:47 PM
Found a solution, works well
also added, icon copy to replace icons for live.
$(info ***** This is my custom make target ***** )
@mkdir -p arm-test
cp ./adminicon.png ./icon.png
cd arm-test && $(QMAKE) -spec blackberry-armv7le-qcc ../$(QMAKE_TARGET).pro CONFIG+=debug_and_release CONFIG+=device CONFIG+=test
$(MAKE) -C ./arm-test -f Makefile release