festvox / flite

A small fast portable speech synthesis system
Other
869 stars 188 forks source link

W32: prevent "dllexport" from being added to globalvardefs when building for static linking #84

Open umlaeute opened 1 year ago

umlaeute commented 1 year ago

This PR introduces an FLITE_STATIC define.

If FLITE_STATIC is defined at build-time, GLOBALVARDEF decorator will not use __declspec(dllexport) (on Windows). This allows using a static flite on Windows (other platforms don't have this problem).

The FLITE_STATIC define must be set manually by whoever wants to use flite in this way.

Closes: https://github.com/festvox/flite/issues/83