[Freeciv-Dev] Re: Win32 Winsock patch
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> Ok i cleaned Andreas's patch up a bit:
> * changed to Freeciv style (death to GNU! :->)
> * added my_shutdown_network()
> * checks for failing to init the winsock dll
> * tweaks to configure.in
> * changed lotsa WIN32_NATIVE for HAVE_WINSOCK_H)
> * minor tweaks
>
> It still needs some cleaning up:
> * still more WIN32_NATIVE stuff to eliminate
> * win-stdin.c has gotta go. move to common/ & make a set of callbacks to
> be used in the server which wrap that stdin kludge for win32 & other
> platforms.
> * cleanup configure.in still got lotsa freaky stuff there:
> WINDRES?, win32 detection?
I tried to use AC_MINGW32 (I don't know what the exact macro name is
because I'm not at home. AC_CHECK_TOOL(WINDRES) or similar requires
config.sub. I don't know how to create one.
>
> WTF is this? :-)
> + CLIENT_LIBS="-lwsock32 -mwindows gui-win32/freeciv-rc.o"
> ^^^^^^^^^^^^^^^^^^^^^^
This is some stuff which enables me to to build a client by just putting
the source into client/gui-win32. gui-win32/freeciv-rc.o would be created by
windres. It cannot be linked into libguiclient.a because it is not linked
into civclient then. gcc would not fail to link even without freeciv-rc.o
The only way is to do
gcc -o civclient [...] gui-win32/freeciv-rc.o
I have put gui-win32/freeciv-rc.o into LIBGUICLIENT_depend in
gui-win32/Makefile.am.
I can send my client stuff to, if anyone is interested.
>
> Oh yeah: testing if it actually works in win32 would probably be a good
> idea too ;-)
I'll test your diff. I have tested my diff before sending. The stuff is
based on the patch I have used to compile 1.11.4.
Greetings
Andreas Kemnade
akemnade@xxxxxxxxxxx
--
Sent through GMX FreeMail - http://www.gmx.net
|
|