1999-04-13 23:05:08 +02:00
|
|
|
## Makefile for building the GLib test programs with Microsoft C
|
1999-04-24 15:52:51 +02:00
|
|
|
## Use: nmake -f makefile.msc check
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2000-10-06 23:32:59 +02:00
|
|
|
TOP = ..\..
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2001-10-26 01:40:38 +02:00
|
|
|
!INCLUDE ..\build\win32\make.msc
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2000-10-06 23:32:59 +02:00
|
|
|
################################################################
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2002-01-05 19:54:59 +01:00
|
|
|
INCLUDES = -FImsvc_recommended_pragmas.h -I .. -I ..\glib -I ..\gmodule
|
2007-03-17 10:49:09 +01:00
|
|
|
DEFINES = -DHAVE_CONFIG_H -DENABLE_REGEX
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2001-10-26 01:40:38 +02:00
|
|
|
NONAUTOMATIC_TESTS = \
|
|
|
|
testglib.exe \
|
|
|
|
testgdate.exe \
|
|
|
|
testgdateparser.exe \
|
|
|
|
unicode-normalize.exe \
|
|
|
|
unicode-collate.exe
|
|
|
|
|
1999-04-13 23:05:08 +02:00
|
|
|
TESTS = \
|
2007-03-17 10:49:09 +01:00
|
|
|
atomic-test.exe \
|
|
|
|
asyncqueue-test.exe \
|
|
|
|
base64-test.exe \
|
|
|
|
bit-test.exe \
|
|
|
|
bookmarkfile-test.exe \
|
|
|
|
child-test.exe \
|
2007-12-09 15:38:26 +01:00
|
|
|
checksum-test.exe \
|
2007-03-17 10:49:09 +01:00
|
|
|
completion-test.exe \
|
|
|
|
convert-test.exe \
|
1999-04-13 23:05:08 +02:00
|
|
|
date-test.exe \
|
2007-03-17 10:49:09 +01:00
|
|
|
dirname-test.exe \
|
|
|
|
env-test.exe \
|
|
|
|
errorcheck-mutex-test.exe \
|
|
|
|
file-test.exe \
|
2000-10-06 23:43:25 +02:00
|
|
|
gio-test.exe \
|
2001-11-18 16:30:53 +01:00
|
|
|
iochannel-test.exe \
|
1999-04-13 23:05:08 +02:00
|
|
|
hash-test.exe \
|
|
|
|
list-test.exe \
|
2001-11-15 00:41:54 +01:00
|
|
|
mainloop-test.exe \
|
2007-03-17 10:49:09 +01:00
|
|
|
mapping-test.exe \
|
2009-05-30 15:29:23 +02:00
|
|
|
#c99 markup-collect.exe \
|
2007-03-17 10:49:09 +01:00
|
|
|
markup-escape-test.exe \
|
2000-10-27 22:43:42 +02:00
|
|
|
markup-test.exe \
|
2007-03-17 10:49:09 +01:00
|
|
|
#main? memchunks.exe \
|
2001-03-29 22:05:58 +02:00
|
|
|
module-test.exe \
|
1999-04-13 23:05:08 +02:00
|
|
|
node-test.exe \
|
2009-05-30 15:29:23 +02:00
|
|
|
#c99 onceinit.exe \
|
2007-03-17 10:49:09 +01:00
|
|
|
patterntest.exe \
|
1999-04-13 23:05:08 +02:00
|
|
|
queue-test.exe \
|
2007-03-17 10:49:09 +01:00
|
|
|
qsort-test.exe \
|
|
|
|
regex-test.exe \
|
|
|
|
relation-test.exe \
|
2009-05-30 15:29:23 +02:00
|
|
|
scannerapi.exe \
|
|
|
|
sequence-test.exe \
|
Some more debugging output. (g_io_channel_win32_poll): Remove unused vars.
2000-10-16 Tor Lillqvist <tml@iki.fi>
* giowin32.c (reader_thread): Some more debugging output.
(g_io_channel_win32_poll): Remove unused vars.
* gfileutils.c: Changes for Win32, with no unistd.h and no
S_ISLNK().
* gspawn-win32.c: Implementation of the g_spwan_* functions for
Win32. Due to the general non-Unixness of Win32, much of the
functionality that is relatively clean to implement on Unix, is
hard to do on Win32. We must use a separate helper program to
change directory, close extra file descriptors, redirect the std
ones, as needed, and only then start the child process. No child
process pid can be returned, unfortunately. Or if we used
CreateProcess directly, it probably could. (Now we use the spawnv*
functions from msvcrt.)
* glib.def: Add new entry points.
* glib.def
* giowin32.c: Remove g_io_channel_win32_wait_for_condition(),
g_io_channel_win32_poll() subsumes it.
* gbacktrace.h: G_BREAKPOINT for MSVC (on the ix86).
* gwin32.c (g_win32_getlocale): Use "sp" for
LANG_CROATIAN+SUBLANG_SERBIAN_LATIN.
* makefile.{mingw,msc}.in (glib_OBJECTS): Add new files.
Add gspawn-win32-helper.exe rule.
* tests/makefile.{mingw,msc}.in (TESTS): Add shell-test and
spawn-test.
* tests/spawn-test.c: (run_tests): On Win32, don't try to run
/bin/sh, but ipconfig (no special significance in choosing that,
just a program that outputs something to stdout).
2000-10-16 20:54:29 +02:00
|
|
|
shell-test.exe \
|
2007-03-17 10:49:09 +01:00
|
|
|
slice-color.exe \
|
2009-05-30 15:29:23 +02:00
|
|
|
#unistd slice-concurrent.exe\
|
|
|
|
slice-threadinit.exe \
|
2007-03-17 10:49:09 +01:00
|
|
|
slice-test.exe \
|
1999-04-13 23:05:08 +02:00
|
|
|
slist-test.exe \
|
Some more debugging output. (g_io_channel_win32_poll): Remove unused vars.
2000-10-16 Tor Lillqvist <tml@iki.fi>
* giowin32.c (reader_thread): Some more debugging output.
(g_io_channel_win32_poll): Remove unused vars.
* gfileutils.c: Changes for Win32, with no unistd.h and no
S_ISLNK().
* gspawn-win32.c: Implementation of the g_spwan_* functions for
Win32. Due to the general non-Unixness of Win32, much of the
functionality that is relatively clean to implement on Unix, is
hard to do on Win32. We must use a separate helper program to
change directory, close extra file descriptors, redirect the std
ones, as needed, and only then start the child process. No child
process pid can be returned, unfortunately. Or if we used
CreateProcess directly, it probably could. (Now we use the spawnv*
functions from msvcrt.)
* glib.def: Add new entry points.
* glib.def
* giowin32.c: Remove g_io_channel_win32_wait_for_condition(),
g_io_channel_win32_poll() subsumes it.
* gbacktrace.h: G_BREAKPOINT for MSVC (on the ix86).
* gwin32.c (g_win32_getlocale): Use "sp" for
LANG_CROATIAN+SUBLANG_SERBIAN_LATIN.
* makefile.{mingw,msc}.in (glib_OBJECTS): Add new files.
Add gspawn-win32-helper.exe rule.
* tests/makefile.{mingw,msc}.in (TESTS): Add shell-test and
spawn-test.
* tests/spawn-test.c: (run_tests): On Win32, don't try to run
/bin/sh, but ipconfig (no special significance in choosing that,
just a program that outputs something to stdout).
2000-10-16 20:54:29 +02:00
|
|
|
spawn-test.exe \
|
2009-05-30 15:29:23 +02:00
|
|
|
testingbase64.exe \
|
1999-06-21 00:20:43 +02:00
|
|
|
thread-test.exe \
|
2009-05-30 15:29:23 +02:00
|
|
|
threadpool-test.exe \
|
|
|
|
#unistd timeloop-basic.exe \
|
|
|
|
#unistd timeloop-closure.exe \
|
|
|
|
#unistd timeloop.exe \
|
1999-04-13 23:05:08 +02:00
|
|
|
tree-test.exe \
|
2001-01-06 04:09:46 +01:00
|
|
|
type-test.exe \
|
2001-10-26 01:40:38 +02:00
|
|
|
unicode-caseconv.exe \
|
2002-02-10 17:42:36 +01:00
|
|
|
unicode-encoding.exe \
|
2007-03-17 10:49:09 +01:00
|
|
|
utf8-validate.exe \
|
|
|
|
utf8-pointer.exe \
|
|
|
|
uri-test.exe \
|
2009-05-30 15:29:23 +02:00
|
|
|
\
|
|
|
|
gio-ls.exe
|
2001-10-26 01:40:38 +02:00
|
|
|
|
|
|
|
DLLS = \
|
2001-03-29 22:05:58 +02:00
|
|
|
libmoduletestplugin_a.dll \
|
|
|
|
libmoduletestplugin_b.dll
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2001-10-26 01:40:38 +02:00
|
|
|
all : $(TESTS) $(NONAUTOMATIC_TESTS) $(DLLS)
|
1999-04-13 23:05:08 +02:00
|
|
|
|
|
|
|
.c.exe :
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
2003-11-15 04:08:57 +01:00
|
|
|
$(CC) $(CFLAGS) -Fe$@ $< ..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gthread-2.0.lib $(LDFLAGS) user32.lib /subsystem:console
|
1999-04-13 23:05:08 +02:00
|
|
|
|
2009-05-30 15:29:23 +02:00
|
|
|
gio-ls.exe : gio-ls.obj
|
|
|
|
$(CC) $(CFLAGS) -Fe$@ gio-ls.obj \
|
|
|
|
..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gthread-2.0.lib \
|
|
|
|
..\gobject\gobject-2.0.lib ..\gio\gio-2.0.lib \
|
|
|
|
$(LDFLAGS) user32.lib /subsystem:console
|
|
|
|
|
2007-03-17 10:49:09 +01:00
|
|
|
slice-test.exe : memchunks.obj slice-test.obj
|
|
|
|
$(CC) $(CFLAGS) -Fe$@ memchunks.obj slice-test.obj \
|
|
|
|
..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gthread-2.0.lib $(LDFLAGS) user32.lib /subsystem:console
|
|
|
|
|
2001-03-29 22:05:58 +02:00
|
|
|
libmoduletestplugin_a.dll : libmoduletestplugin_a.obj
|
2003-11-15 04:08:57 +01:00
|
|
|
$(CC) $(CFLAGS) -LD libmoduletestplugin_a.obj ..\gmodule\gmodule-2.0.lib ..\glib\glib-2.0.lib $(LDFLAGS)
|
2001-03-29 22:05:58 +02:00
|
|
|
|
|
|
|
libmoduletestplugin_b.dll : libmoduletestplugin_b.obj
|
2003-11-15 04:08:57 +01:00
|
|
|
$(CC) $(CFLAGS) -LD libmoduletestplugin_b.obj ..\gmodule\gmodule-2.0.lib ..\glib\glib-2.0.lib $(LDFLAGS)
|
2001-03-29 22:05:58 +02:00
|
|
|
|
1999-04-13 23:05:08 +02:00
|
|
|
check: all
|
2001-10-26 01:50:50 +02:00
|
|
|
for %p in ($(TESTS)) do set PATH=..\glib;..\gmodule;..\gobject;..\gthread;%PATH% && %p
|