[Libwebsockets] CMake project for Libwebsockets and more
andy at warmcat.com
Wed Feb 6 23:44:18 CET 2013
Joakim's cmake stuff is meant to replace needing to provide vs project files... that's good because there's no single project file we can provide that works on all the vs versions out there.
Iirc back in the day when I used vs, you can probably make a stub project file that wraps an "external makefile".
At any rate Joakim seems to have a complete cmake solution already (which is on the libwebsockets.org git now). You should probably capture your changes, ignoring cmake, and apply them again to the latest git. Then you can switch to Joakim's cmake solution.
FNA <aqiruse at gmail.com> wrote:
>I have ubuntu, Netbeans on Ubuntu and Windows, as well as VS 2008,
>I can get a copy of the sources, I can check it to make sure it
>soon as I have a chance. I have a version of chrome26 sources I dl'd
>the site that compiles and seems to work with my VS2008 since that is
>I use mainly. Had to add afew tags like to the syslog stuff since my
>compiler does not have that, and add the Windows version of
>sockets using #ifdef's. Just minor changes like that, but I have the
>chrome26 compiling in VS 2008.I excluded the deamon.c from the project
>VS 2008. Now I just need to figure out if the error is in my html test
>or in something i did to the library. Working on that. I have basic
>files but have not finished them yet. Can test the compilation part if
>can get the cmake files.
>On Wed, Feb 6, 2013 at 2:20 AM, "Andy Green (林安廸)" <andy at warmcat.com>
>> On 06/02/13 02:08, the mail apparently from Joakim Söderberg
>>> My repos, the branch is "newcmake":
>>> First of all, the Windows build was in the current upstream repos
>>> broken in several ways, I've fixed some (crash) bugs relating to
>>> See the my commit log for specifics.
>> I see... you've been busy! Nice to see the patches on top of almost
>> Anyway. I've made a CMake project file for Libwebsockets which would
>>> nice if it could be added upstream. It contains most of the features
>>> that the autoconf project does, plus some more. Most importantly, it
>>> vastly improves the Windows experience, without the need of manually
>>> editing a bunch of Visual Studio projects for different targets.
>> Yes that was always an asspain, especially since I don't have a use
>> Windows builds myself it was always prone to rot. Previously we had
>> contributors working on it with different VS versions and committing
>> different and incompatible project files... that's not really
>> Having a Cmake text file is much better.
>> I've also added support for using the CyaSSL library which has a
>>> compatibility layer. This is currently only supported in the CMake
>>> project (because of my lack of autoconf skills). Note that there is
>>> crash bug in their current official version when SSL_free() is
>>> when after using BIO_new_socket(). I've done a pull request for a
>>> Tested on:
>>> - Windows XP
>>> - Linux
>>> - NetBSD
>>> - OSX
>> Great job, thanks for the patches: all applied.
>> More about CMake:
>> At some point I will try your Cmake file in Linux and try to
>> we can switch over. I didn't have time to learn Cmake for no real
>> advatange (since I personally don't use Windows), but since you have
>> contributed it that's much easier to consider now.
>>> How come this project is not on github anyway? At least mirrored
>> OK. I created this
>> and added it to my push script so it will mirror
>git.libwebsockets.orgthere every push.
>> Thanks again for your work and contribution!
>> Libwebsockets mailing list
>> Libwebsockets at ml.**libwebsockets.org
><Libwebsockets at ml.libwebsockets.org>
>--A programmer started to cuss
>--Because getting to sleep was a fuss
>--As he lay there in bed
>--Looping 'round in his head
>--was: while( !asleep() ) sheep++;
>--Nothing is impossible! It is merely a matter of figuring out How?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libwebsockets