Repository navigation
Build the orca and speech-dispatcher Wine bridges on Windows - #126
Conversation
|
I do not get these warnings when I build it; is this an Aarch64 thing? We build these import libraries because the bridges are wine components and therefore must be built to target winegcc, which is a special target. The winebridges are loaded in wine emulation (hence the check for That said, the winebridges are (currently) x64 only, since winegcc (for some reason) does not support any other architectures (which I think is a wine bug but am not sure for certain). |
|
You're right, they're Wine components, and I had the cause backwards. The real bug is that both backends declare Repushed as that fix, with the build evidence in the description. |
e258cdc to
49a11af
Compare
49a11af to
e366e09
Compare
prism_declare_backendmatchesPLATFORMagainst the platform being configured, soPLATFORM UNIXonorcaandspeech_dispatchermakes it return before it adds the source. On Windows neither file compiles, so the#elifdef _WIN32Wine bridge half of each one never builds and nothing imports from the bridge DLLs. The Windows manifest does list both import libraries, which is why a static consumer gets LNK4199 for them.Declaring both as
UNIX WINDOWSbuilds the bridge halves. The pkg-config loop needed a guard too, sincePkgConfigis only found on Unix and that loop now runs on a Windows configure.Verified on an x64 MSVC static build:
orca.objandspeech_dispatcher.objare produced, they carry__imp_prism_orca_*and__imp_prism_speechd_*, and the linked exe delay loads all five DLLs fromprism-static-windows.txtwith no LNK4199.