Jump to content

[SOLVED] How to pass startup command-line options for building release


photo

Recommended Posts

Hi, we would like to build our release application, so we use for this SConscript as described here https://developer.un...vironment/scons

 

We have modified main.cpp:

 

#include <Unigine.h>
using namespace Unigine;
char* my_argv[] = {
 "-sound_app openal",
 "-engine_config ../cradle.cfg",
 "-system_script ../data/source/unigine.cpp",
 "-extern_define RELEASE"
};
int main(int argc,char **argv)
{
Engine *engine = Engine::init(UNIGINE_VERSION,4,my_argv,"MyProject");
engine->main();
Engine::shutdown();

return 0;
}

 

The problem is our built exe file doesn't use files (paths) described in -system_script and -engine_config variables, looks like engine doesn't use my_args at all.

 

Thanks

Link to comment
×
×
  • Create New...