Custom Compile Based on XR Plugin Selection?

Is there a way to create a custom compile based on which XR plugin is selected?

For Example: I’m building a Leaderboard script but when I have Pico selected in the XR Plugins I only want it to compile Pico Related code.


Does something like this exist???


//code specific to the pico XR plugin here