How do I replace a script when building for a specific platform?

I originally wrote my game for Android but I want to make a PC build. One of the game scripts implements the Google Play Games RealTimeMultiplayerListener interface. How can I replace it with something different when making a build for a PC?

You can use Conditional Compilation for this.