Cross compiling some files specific to Target Platform


I have integrated some 3rd party SDK into the Game. In which, I have made it worked on the Windows ( I removed some file which aren’t necessary for it and it throws some error while compiling)

Now, Another member in my team works on Mac (It requires those files, which I deleted for windows target).

How to specify the compiler to consider the files specific to the target platform and ignore the files not relevant to the target platform?

Like In Unity I specifywith folder (iOS, Android, Windows) Is something similar has to be done inorder to achieve it.

Help to resolve this issue.