crosscompile xkbcommon on linux for windows (1/2) #305
Labels
enhancement
Indicates new feature requests
good first issue
Indicates a good issue for first-time contributors
help wanted
Indicates that a maintainer wants help on an issue or pull request
os: Windows
Windows-specific
Hello,
crosscompiling xkbcommon on linux (OpenSuse 15.4) for windows works, when applying some changes:
#ifdef _MSC_VER does not work when using the gnu cross compiler. I can fix this by setting this variable:
I guess this is just a hack, the right way would be to use another compiler variable. I'm no expert here - maybe _WIN32 is the right one, as used in other libraries:
src/fontconfig-2.13.96/src/fcxml.c:#ifdef _WIN32
src/libjpeg-turbo-2.1.3/tjexample.c:#ifdef _WIN32
src/expat-2.4.4/lib/xmlparse.c:#ifdef _WIN32
Just a note: in meson.build,
elif cc.get_argument_syntax() == 'msvc'
does also not work, the cross compiler might have a different signature.
PS: Some infos on setting up cross-compile of libxkbcommon for win are documented here:
https://github.com/awarnke/crystal-facet-uml/tree/master/build/win
Kind Regards
Andreas
The text was updated successfully, but these errors were encountered: