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 » Excluding files from build depending on flags
Re: Excluding files from build depending on flags [message #33855 is a reply to message #33851] Mon, 19 September 2011 16:15 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi Max,

I was facing similar solution when making the portaudio plugin. I solved it by leaving the platform specific files out of package, just including them conditionally inside of pa_upp_platform.c:
#ifdef flagPOSIX
        #include "os/unix/pa_unix_hostapis.c"
        #include "os/unix/pa_unix_util.c"
#else
        #include "os/win/pa_win_hostapis.c"
        #include "os/win/pa_win_util.c"
        #include "os/win/pa_win_waveformat.c"
        #include "os/win/pa_win_coinitialize.c"
//      #include "os/win/pa_x86_plain_converters.c"
#endif


It is an ugly workaround, but it works. Of course having the ability to compile files conditionally would be a nice feature to have.

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Where I find other templates?
Next Topic: Cannot add packages to main package
Goto Forum:
  


Current Time: Wed May 15 11:59:36 CEST 2024

Total time taken to generate the page: 0.01794 seconds