Commit c0d59844 authored by Pekka Pessi's avatar Pekka Pessi

Added some error checking to the win32 autogen scripts.

parent cae9b78c
......@@ -2,7 +2,7 @@
# ----------------------------------------------------------------------
noinst_HEADERS = su_configure_win32.h unistd.h config.h
noinst_HEADERS = sofia-sip/su_configure.h unistd.h config.h
EXTRA_DIST = SofiaSIP.dsw \
libsofia-sip-ua/libsofia_sip_ua.dsp \
......@@ -29,5 +29,7 @@
@call build_sources.cmd
@echo Remember to install pthreadVC2.dll to your path, too!
@echo NOTE:
@echo NOTE: Remember to install pthreadVC2.dll to your path, too!
@echo NOTE:
......@@ -2,70 +2,100 @@
:: Build sources on win32
set MSG_AWK=gawk -v BINMODE=rw -f ../libsofia-sip-ua/msg/msg_parser.awk
set TAG_AWK=gawk -f ../libsofia-sip-ua/su/tag_dll.awk BINMODE=rw
@set CHECK=@IF errorlevel 1 GOTO failed
@set MSG_AWK=gawk -v BINMODE=rw -f ../libsofia-sip-ua/msg/msg_parser.awk
@set TAG_AWK=gawk -f ../libsofia-sip-ua/su/tag_dll.awk BINMODE=rw
set IN=../libsofia-sip-ua/msg/test_class.h
set PR=../libsofia-sip-ua/msg/test_protos.h
set PT=../libsofia-sip-ua/msg/test_table.c
@set IN=../libsofia-sip-ua/msg/test_class.h
@set PR=../libsofia-sip-ua/msg/test_protos.h
@set PT=../libsofia-sip-ua/msg/test_table.c
%MSG_AWK% module=msg_test NO_MIDDLE=1 NO_LAST=1 ^
PR=%PR% %IN% < NUL
%MSG_AWK% module=msg_test prefix=msg MC_HASH_SIZE=127 multipart=msg_multipart ^
PT=%PT% %IN% < NUL
set IN=../libsofia-sip-ua/msg/sofia-sip/msg_mime.h
set PR=../libsofia-sip-ua/msg/sofia-sip/msg_protos.h
set PR2=../libsofia-sip-ua/msg/sofia-sip/msg_mime_protos.h
set PT=../libsofia-sip-ua/msg/msg_mime_table.c
@set IN=../libsofia-sip-ua/msg/sofia-sip/msg_mime.h
@set PR=../libsofia-sip-ua/msg/sofia-sip/msg_protos.h
@set PR2=../libsofia-sip-ua/msg/sofia-sip/msg_mime_protos.h
@set PT=../libsofia-sip-ua/msg/msg_mime_table.c
%MSG_AWK% module=msg NO_FIRST=1 NO_MIDDLE=1 PR=%PR% %IN% < NUL
%MSG_AWK% module=msg NO_FIRST=1 NO_LAST=1 PR=%PR2% %IN% < NUL
%MSG_AWK% module=msg_multipart tprefix=msg prefix=mp MC_HASH_SIZE=127 ^
PT=%PT% %IN% < NUL
set IN=../libsofia-sip-ua/sip/sofia-sip/sip.h
set PR=../libsofia-sip-ua/sip/sip_tag.c
set PR2=../libsofia-sip-ua/sip/sofia-sip/sip_hclasses.h
set PR3=../libsofia-sip-ua/sip/sofia-sip/sip_protos.h
set PR4=../libsofia-sip-ua/sip/sofia-sip/sip_tag.h
set PT=../libsofia-sip-ua/sip/sip_parser_table.c
@set IN=../libsofia-sip-ua/sip/sofia-sip/sip.h
@set PR=../libsofia-sip-ua/sip/sip_tag.c
@set PR2=../libsofia-sip-ua/sip/sofia-sip/sip_hclasses.h
@set PR3=../libsofia-sip-ua/sip/sofia-sip/sip_protos.h
@set PR4=../libsofia-sip-ua/sip/sofia-sip/sip_tag.h
@set PT=../libsofia-sip-ua/sip/sip_parser_table.c
%MSG_AWK% module=sip PR=%PR% %IN% < NUL
%MSG_AWK% module=sip PR=%PR2% %IN% < NUL
%MSG_AWK% module=sip PR=%PR3% %IN% < NUL
%MSG_AWK% module=sip PR=%PR4% %IN% < NUL
%MSG_AWK% module=sip MC_HASH_SIZE=127 MC_SHORT_SIZE=26 ^
FLAGFILE=../libsofia-sip-ua/sip/sip_bad_mask ^
PT=%PT% %IN% < NUL
set IN=../libsofia-sip-ua/http/sofia-sip/http.h
set PR=../libsofia-sip-ua/http/http_tag.c
set PR2=../libsofia-sip-ua/http/sofia-sip/http_protos.h
set PR3=../libsofia-sip-ua/http/sofia-sip/http_tag.h
set PT=../libsofia-sip-ua/http/http_parser_table.c
@set IN=../libsofia-sip-ua/http/sofia-sip/http.h
@set PR=../libsofia-sip-ua/http/http_tag.c
@set PR2=../libsofia-sip-ua/http/sofia-sip/http_protos.h
@set PR3=../libsofia-sip-ua/http/sofia-sip/http_tag.h
@set PT=../libsofia-sip-ua/http/http_parser_table.c
%MSG_AWK% module=http PR=%PR% %IN% < NUL
%MSG_AWK% module=http PR=%PR2% %IN% < NUL
%MSG_AWK% module=http PR=%PR3% %IN% < NUL
%MSG_AWK% module=http MC_HASH_SIZE=127 PT=%PT% %IN% < NUL
set P=../libsofia-sip-ua
@set P=../libsofia-sip-ua
%TAG_AWK% NO_DLL=1 %P%/http/http_tag.c < NUL
%TAG_AWK% NO_DLL=1 %P%/iptsec/auth_tag.c < NUL
%TAG_AWK% NO_DLL=1 %P%/msg/msg_tag.c < NUL
%TAG_AWK% NO_DLL=1 %P%/nea/nea_tag.c < NUL
%TAG_AWK% NO_DLL=1 LIST=nta_tag_list %P%/nta/nta_tag.c < NUL
%TAG_AWK% NO_DLL=1 %P%/nth/nth_tag.c < NUL
%TAG_AWK% NO_DLL=1 LIST=nua_tag_list %P%/nua/nua_tag.c < NUL
%TAG_AWK% NO_DLL=1 %P%/sdp/sdp_tag.c < NUL
%TAG_AWK% NO_DLL=1 %P%/sip/sip_tag.c < NUL
%TAG_AWK% NO_DLL=1 LIST=soa_tag_list %P%/soa/soa_tag.c < NUL
%TAG_AWK% NO_DLL=1 LIST=stun_tag_list %P%/stun/stun_tag.c < NUL
%TAG_AWK% NO_DLL=1 %P%/tport/tport_tag.c < NUL
%TAG_AWK% NO_DLL=1 %P%/url/url_tag.c < NUL
\ No newline at end of file
GOTO end
@ECHO *** FAILED ***
......@@ -30,3 +30,4 @@ set AC=..\
for %%f in (config.h ..\libsofia-sip-ua\features\sofia-sip\features.h) ^
do %VERSION% %AC% OUT=1 > %%f
@if errorlevel 1 echo *** version_files failed ***
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment