Code now builds in Win32 and tests pass. Example code seems to fail though, still tracking that down.

This commit is contained in:
Jack Moffitt
2005-06-15 05:17:07 +00:00
parent 17feefe78a
commit 0d311771bb
2 changed files with 6 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ expat = expatenv.Library('expat', path(join('expat', 'lib'), ExpatSources))
Default(expat)
stropheenv = env.Copy()
stropheenv.Append(CCFLAGS=" -DXML_STATIC")
stropheenv.Append(CPPPATH=['.', 'src', join('expat','lib')])
strophe = stropheenv.Library('strophe', path("src", Sources))
@@ -128,6 +129,8 @@ def testcase_runner(target, source, env):
testenv = env.Copy()
testenv.Append(CPPPATH=['.', 'src', join('expat','lib')])
testenv.Append(LIBS=['strophe', 'expat'])
if testenv["PLATFORM"] == "win32":
testenv.Append(LIBS=["winmm", "ws2_32"])
testenv.Append(LIBPATH=['.'])
import SCons.Node

View File

@@ -14,7 +14,10 @@
#include <stdio.h>
#include <string.h>
#ifndef _WIN32
#include <sys/select.h>
#endif
#include "sock.h"