a7d7534...
by
Alexandru Croitor <email address hidden>
Remove qmacstyle_mac.h and duplicate includes in global.h.in file
qmacstyle_mac.h sneaked in through a 5.6 -> 5.9 merge, which broke
builds on macOS. Remove the include, as well as remove other
duplicate includes which are now handled by the cmake global.h.in
append mechanism.
Rewrite CMake scripts and generate includes for global.h.in
The CMake files are repeating code three times, which should be avoided.
Also, the global.h.in contained too many unconditional includes, which becomes
relevant for the PySide 5.9 branch when missing includes are no longer ignored.
Instead of maintaining an always growing list of conditionals (did that first),
the needed includes are now computed by CMake, and the collected
includes are appended to pyside2_global.h .