#DEFINE precompile by custom GUI

PaulS:

It is possible using some kind of software to obtain that?

Yes, though not necessarily easy. Your code would have to edit the sketch, to set the values of the #define statements, then invoke the compiler, the linker, and the uploader with the correct arguments, in the correct order.

Otherwise, compiler directives are useless at run time, as they are stripped out at compile time.

Right.
I can write a code to manipulate all #define in on file so after I must call in sequence the compiler, the linker and the uploader... but how?