Home » Community » U++ community news and announcements » ide: main.conf
Re: ide: main.conf [message #40717 is a reply to message #40714] |
Sun, 08 September 2013 16:50   |
|
mirek wrote on Sun, 08 September 2013 11:04 |
Quote: | Wouldn't it be better to use existing "Add/Remove flags" functionality of Package manager for this? To use your example, the package that wants to include it own font handling could just have "flags CUSTOM_FONTSYS;" in .upp file and Draw package would then turn off the generic font handling based on #ifdef flagCUSTOM_FONTSYS. I'm aware that main.conf as you designed it will allow much more than this, but I'm not sure if it is really necessary.
|
I do not really see a difference with breaking stuff one way or another... 
|
The difference is that the stuff with flags is already implemented in the Makefile The main.conf.h would mean to add that feature. It sure can be done, it just additional obstacle.
mirek wrote on Sun, 08 September 2013 11:04 | Add/remove packages work for package compiled and do not allow to define values.
|
Yes, it does, perhaps not intentionally You can define a flag as XYZ=42 in package manager and it results in -DflagXYZ=42 being appended to the compiler command line.
Anyway, if you decide to use it somewhere in the core packages, please let me know that I have to implement matching functionality. I use the universal makefile not only for compilation of theide in the linux packages but also for my own projects (e.g. to deploy them on OpenShift).
Honza
|
|
|
Goto Forum:
Current Time: Sun Aug 24 15:20:09 CEST 2025
Total time taken to generate the page: 0.07115 seconds
|