Menu

[r33]: / BuildScript_1.8 / build-pcre.cmd  Maximize  Restore  History

Download this file

87 lines (69 with data), 3.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
@IF DEFINED NOECHO echo off
echo ====== Build pcre ======
echo ====== Build pcre ====== > %LOG_DIR%\build-pcre.log
IF %HTTPDVER%==22 GOTO SKIP_PCRE
pushd %ROOT%\%HTTPDDIR%\srclib\pcre
IF ERRORLEVEL 1 GOTO DIR_FAIL
cl -DHAVE_CONFIG_H -DSUPPORT_UCP -DSUPPORT_UTF ^
dftables.c >> %LOG_DIR%\build-pcre.log 2>>&1
IF ERRORLEVEL 1 GOTO BUILD_FAIL
dftables.exe pcre_chartables.c >> %LOG_DIR%\build-pcre.log 2>>&1
IF ERRORLEVEL 1 GOTO BUILD_FAIL
cl -DHAVE_CONFIG_H -DSUPPORT_UCP -DSUPPORT_UTF ^
/c pcre_byte_order.c pcre_chartables.c pcre_compile.c pcre_config.c ^
pcre_dfa_exec.c pcre_exec.c pcre_fullinfo.c pcre_get.c pcre_globals.c ^
pcre_jit_compile.c pcre_maketables.c pcre_newline.c pcre_ord2utf8.c ^
pcre_refcount.c pcre_string_utils.c pcre_study.c pcre_tables.c ^
pcre_ucd.c pcre_valid_utf8.c pcre_version.c pcre_xclass.c >> %LOG_DIR%\build-pcre.log 2>>&1
IF ERRORLEVEL 1 GOTO BUILD_FAIL
lib /NAME:pcre.dll /DEF /OUT:pcre.lib pcre_byte_order.obj pcre_chartables.obj ^
pcre_compile.obj pcre_config.obj pcre_dfa_exec.obj pcre_exec.obj ^
pcre_fullinfo.obj pcre_get.obj pcre_globals.obj pcre_jit_compile.obj ^
pcre_maketables.obj pcre_newline.obj pcre_ord2utf8.obj ^
pcre_refcount.obj pcre_string_utils.obj pcre_study.obj pcre_tables.obj ^
pcre_ucd.obj pcre_valid_utf8.obj pcre_version.obj pcre_xclass.obj >> %LOG_DIR%\build-pcre.log 2>>&1
IF ERRORLEVEL 1 GOTO BUILD_FAIL
link /DLL /OUT:pcre.dll pcre_byte_order.obj pcre_chartables.obj pcre_compile.obj ^
pcre_config.obj pcre_dfa_exec.obj pcre_exec.obj pcre_fullinfo.obj ^
pcre_get.obj pcre_globals.obj pcre_jit_compile.obj pcre_maketables.obj ^
pcre_newline.obj pcre_ord2utf8.obj pcre_refcount.obj pcre_string_utils.obj pcre_study.obj ^
pcre_tables.obj pcre_ucd.obj pcre_valid_utf8.obj ^
pcre_version.obj pcre_xclass.obj >> %LOG_DIR%\build-pcre.log 2>>&1
IF ERRORLEVEL 1 GOTO BUILD_FAIL
cl -DHAVE_CONFIG_H -DSUPPORT_UCP -DSUPPORT_UTF ^
/c pcreposix.c >> %LOG_DIR%\build-pcre.log 2>>&1
IF ERRORLEVEL 1 GOTO BUILD_FAIL
lib /NAME:pcreposix.dll /DEF /OUT:pcreposix.lib pcreposix.obj >> %LOG_DIR%\build-pcre.log 2>>&1
IF ERRORLEVEL 1 GOTO BUILD_FAIL
link /DLL /OUT:pcreposix.dll pcreposix.obj pcre.lib >> %LOG_DIR%\build-pcre.log 2>>&1
IF ERRORLEVEL 1 GOTO BUILD_FAIL
cl -DHAVE_CONFIG_H -DSUPPORT_UCP -DSUPPORT_UTF ^
pcretest.c pcre_printint.c pcre.lib pcreposix.lib >> %LOG_DIR%\build-pcre.log 2>>&1
IF ERRORLEVEL 1 GOTO BUILD_FAIL
cl -DHAVE_CONFIG_H -DSUPPORT_UCP -DSUPPORT_UTF ^
pcregrep.c pcre.lib >> %LOG_DIR%\build-pcre.log 2>>&1
IF ERRORLEVEL 1 GOTO BUILD_FAIL
:: if no unistd.h and dirent.h files, please delete same lines in config.h
pcretest testdata\testinput1 testdata\myoutput1 >> %LOG_DIR%\build-pcre.log 2>>&1
IF ERRORLEVEL 1 GOTO BUILD_FAIL
%AWKDIR%\awk.exe "FNR>2" testdata\myoutput1 > testdata\myoutput2 2>> %LOG_DIR%\build-pcre.log
IF ERRORLEVEL 1 GOTO BUILD_FAIL
fc testdata\testoutput1 testdata\myoutput2 >> %LOG_DIR%\build-pcre.log 2>>&1
IF ERRORLEVEL 1 GOTO BUILD_FAIL
popd
exit /B 0
:DIR_FAIL
echo ****** pcre dir does not exists ****** >> %LOG_DIR%\build-pcre.log
type %LOG_DIR%\build-pcre.log
popd
exit /B 1
:BUILD_FAIL
echo ****** pcre build failed ****** >> %LOG_DIR%\build-pcre.log
type %LOG_DIR%\build-pcre.log
popd
exit /B 1
:SKIP_PCRE
echo ****** pcre skipped (HTTPD ver 2.2) ******
echo ****** pcre skipped (HTTPD ver 2.2) ****** >> %LOG_DIR%\get-pcre-source.log
type %LOG_DIR%\get-pcre-source.log
exit /B 0
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.