mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
770b29bad2
2007-03-17 Hans Breuer <hans@breuer.org> * glib/makefile.msc.in glib/pcre/makefile.msc glib/update-pcre/update.sh : define PCRE_STATIC to reflect the inclusion of pcre as LIB, not stand-alone DLL. Also set NEWLINE=-1 to match any newline by default, use of ../../build/win32/make.msc * glib/gregex.h : minimal includes of <glib/*.H> instead of <glib.h> * glib/gnulib/makefile.msc : make use of ../../build/win32/make.msc * tests/regex-test.c(verbose): don't pass a string containing '%' as first parameter to g_print () (test_match) : for the unexpected case output pattern and string escaped * tests/child-test.c tests/slice-color.c : fix c99ism * tests/slice-test.c : fix c99ism and gccism * tests/mapping-test.c tests/base-64-tests.c : don't #include <unistd.h> unconditionally * tests/option-test.c : use G_GINT64_CONSTANT() instead of direct LL * tests/makefile.msc.in : more tests build svn path=/trunk/; revision=5423
98 lines
2.4 KiB
Plaintext
98 lines
2.4 KiB
Plaintext
## Makefile for building the GLib test programs with Microsoft C
|
|
## Use: nmake -f makefile.msc check
|
|
|
|
TOP = ..\..
|
|
|
|
!INCLUDE ..\build\win32\make.msc
|
|
|
|
################################################################
|
|
|
|
INCLUDES = -FImsvc_recommended_pragmas.h -I .. -I ..\glib -I ..\gmodule
|
|
DEFINES = -DHAVE_CONFIG_H -DENABLE_REGEX
|
|
|
|
NONAUTOMATIC_TESTS = \
|
|
testglib.exe \
|
|
testgdate.exe \
|
|
testgdateparser.exe \
|
|
unicode-normalize.exe \
|
|
unicode-collate.exe
|
|
|
|
TESTS = \
|
|
atomic-test.exe \
|
|
array-test.exe \
|
|
asyncqueue-test.exe \
|
|
base64-test.exe \
|
|
bit-test.exe \
|
|
bookmarkfile-test.exe \
|
|
child-test.exe \
|
|
completion-test.exe \
|
|
convert-test.exe \
|
|
date-test.exe \
|
|
dirname-test.exe \
|
|
env-test.exe \
|
|
errorcheck-mutex-test.exe \
|
|
file-test.exe \
|
|
gio-test.exe \
|
|
iochannel-test.exe \
|
|
hash-test.exe \
|
|
keyfile-test.exe \
|
|
list-test.exe \
|
|
mainloop-test.exe \
|
|
mapping-test.exe \
|
|
markup-escape-test.exe \
|
|
markup-test.exe \
|
|
#main? memchunks.exe \
|
|
module-test.exe \
|
|
node-test.exe \
|
|
option-test.exe \
|
|
patterntest.exe \
|
|
printf-test.exe \
|
|
queue-test.exe \
|
|
qsort-test.exe \
|
|
rand-test.exe \
|
|
regex-test.exe \
|
|
relation-test.exe \
|
|
#_? sequence-test.exe \
|
|
shell-test.exe \
|
|
slice-color.exe \
|
|
slice-test.exe \
|
|
slist-test.exe \
|
|
spawn-test.exe \
|
|
# strfunc-test doesn't compile with MSVC
|
|
# strfunc-test.exe\
|
|
string-test.exe \
|
|
# strtod-test doesn't either
|
|
# strtod-test.exe \
|
|
thread-test.exe \
|
|
threadpool-test.exe\
|
|
tree-test.exe \
|
|
type-test.exe \
|
|
unicode-caseconv.exe \
|
|
unicode-encoding.exe \
|
|
utf8-validate.exe \
|
|
utf8-pointer.exe \
|
|
uri-test.exe \
|
|
|
|
DLLS = \
|
|
libmoduletestplugin_a.dll \
|
|
libmoduletestplugin_b.dll
|
|
|
|
all : $(TESTS) $(NONAUTOMATIC_TESTS) $(DLLS)
|
|
|
|
.c.exe :
|
|
$(CC) $(CFLAGS) -c $<
|
|
$(CC) $(CFLAGS) -Fe$@ $< ..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gthread-2.0.lib $(LDFLAGS) user32.lib /subsystem:console
|
|
|
|
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
|
|
|
|
libmoduletestplugin_a.dll : libmoduletestplugin_a.obj
|
|
$(CC) $(CFLAGS) -LD libmoduletestplugin_a.obj ..\gmodule\gmodule-2.0.lib ..\glib\glib-2.0.lib $(LDFLAGS)
|
|
|
|
libmoduletestplugin_b.dll : libmoduletestplugin_b.obj
|
|
$(CC) $(CFLAGS) -LD libmoduletestplugin_b.obj ..\gmodule\gmodule-2.0.lib ..\glib\glib-2.0.lib $(LDFLAGS)
|
|
|
|
check: all
|
|
for %p in ($(TESTS)) do set PATH=..\glib;..\gmodule;..\gobject;..\gthread;%PATH% && %p
|