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.

205703-xr-settings.png

Does something like this exist???

*#if XR_PLUGIN_PICO

//code specific to the pico XR plugin here

#endif*