U++ framework
Do not panic. Ask here before giving up.

Home » U++ TheIDE » U++ TheIDE: Packages » Excluding files from build depending on flags
Re: Excluding files from build depending on flags [message #33856 is a reply to message #33855] Mon, 19 September 2011 16:52 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
dolik.rce wrote on Mon, 19 September 2011 15:15

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


Settings for individual files would be maybe good. But then this topic should have been started (or moved?) to the ide wishlist?

Honza, but these workarounds are only needed for external projects? Or do you see them used for your own projects?

Also, for external projects there is a possibility to create separate packages for different platforms...
 
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 Apr 29 20:10:21 GMT+2 2026

Total time taken to generate the page: 0.00476 seconds