I have made a cmake based build-system for libhubbub. This one works fairly well on Windows and also compiles in the MSYS2 environment. I could not use the netsurf-buildsystem due to issues I discussed.

Some tests still don't work but that is in the source-code and test programs. About 85% of the tests work but I am able to run tests. Sorry the file so lengthy because I wanted everything to be contained in it so that I could use it in a Win32 package with as few files as possible and I as I say, I don't want to use the netsurf-buildsystem (I have very little faith in it working on Windows). This does build both static and shared libraries in Windows including putting resource information into the .DLL and it does create a pkg-config file.

But in any case, it is a good start to try to port some of the libraries to Windows for reuse in various software. Please feel free to use, modify, and reuse the work I did on it. It's my gift everyone (my way of paying back).

Incidentally, it turns out that some tests don't require json-c. If a user doesn't have that installed, the subset that will compile are used (some is better than none).