Add cross-compilation support from MacOS to Windows (#13382)

- Modify `build.rs` to use environment variables instead of `cfg`
directive to make cross-compilation to Windows possible
- Make `embed-resource` a global build-dependency for cross-compilation

Release Notes:

- N/A
7be1ffb9ecSELO committed on 6/25/2024, 3:26:24 AM· committed by GitHubparent93a5d0c
2 files changedLine totals unavailable