Home » U++ TheIDE » U++ TheIDE: Packages » packages, sub packages and big projects
Re: packages, sub packages and big projects [message #22089 is a reply to message #22077] |
Wed, 17 June 2009 11:49 |
mr_ped
Messages: 825 Registered: November 2005 Location: Czech Republic - Praha
|
Experienced Contributor |
|
|
There's the "FLAG" system in TheIDE builder.
See menu: Project / Main package configuration
There you can add as many possible configurations as you wish for the main package. (if you are building several version from the same source)
Press right click into list to add/edit/delete configuration, then into Flags you can add custom flags like for example:
"GUI MT MYFLAG .MYFLAG2" (eventually giving it custom name like "production")
in source code you can now use:
#ifdef flagMYFLAG
#ifndef flagMYFLAG2
The dot difference between MYFLAG and .MYFLAG2 does change the visibility of flag, MYFLAG (g++ -D flagMYFLAG) will be set for all packages used by main package, the dot one .MYFLAG2 is set only during compilation of main package, other packages are compiled with "GUI MT MYFLAG" flags only.
Many project build settings can be then connected to certain flags, see Package organizer and "when" column. Check for example configuration of "Core" package to get some idea about possibilities.
--
I think you have also different kind of problem, like including in every package some library...
In some cases it may be better to set up those directly in Setup / Build methods, or maybe reorganize your sub-packages so those special options are not globally needed. (like "Draw" does hide all sort of X11/GTK/GDI and other packages don't have to deal with those, they build simply against "Draw")
So I'm not sure if I did help, I hope at least a bit..
|
|
|
|
|
packages, sub packages and big projects
By: cocob on Tue, 16 June 2009 20:46
|
|
|
Re: packages, sub packages and big projects
By: mr_ped on Wed, 17 June 2009 11:49
|
|
|
Re: packages, sub packages and big projects
By: cocob on Wed, 17 June 2009 12:33
|
|
|
Re: packages, sub packages and big projects
By: mirek on Tue, 23 June 2009 20:09
|
|
|
Re: packages, sub packages and big projects
By: mirek on Tue, 23 June 2009 20:08
|
|
|
Re: packages, sub packages and big projects
By: cocob on Wed, 24 June 2009 16:56
|
Goto Forum:
Current Time: Tue May 21 16:05:15 CEST 2024
Total time taken to generate the page: 0.01728 seconds
|