Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
mr_ped is currently offline  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.. Smile
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Filtering packages problem?
Next Topic: Application stub template
Goto Forum:
  


Current Time: Tue May 21 16:05:15 CEST 2024

Total time taken to generate the page: 0.01728 seconds