[Solved]how to compile code separatly for linux and RaspberryPi with macros?
I know we can use macros like Q_OS_WIN32 and Q_OS_LINUX to build os specific code.
how to build seperate code blocks for linux and RaspberryPi?
Since the raspberry is an arm device you could use that fact and ifdef on the architecture.
Or you could add a define when you build for the raspberry
@DEFINES += RASPBERRY@
Hope it helps
Thanks SGaist, It helped a lot.
You're welcome !
If this answers your question please update the thread title prepending [solved] so other forum users may know a solution has been found :)