version 1.1.1.1, 2012/02/21 23:05:51
|
version 1.1.1.2, 2012/02/21 23:50:25
|
Line 88 hand":
|
Line 88 hand":
|
pcre_internal.h |
pcre_internal.h |
ucp.h |
ucp.h |
|
|
(5) Also ensure that you have the following file, which is #included as source | (5) For an 8-bit library, compile the following source files, setting |
when building a debugging version of PCRE, and is also used by pcretest. | -DHAVE_CONFIG_H as a compiler option if you have set up config.h with your |
| configuration, or else use other -D settings to change the configuration |
| as required. |
|
|
pcre_printint.src | pcre_byte_order.c |
| |
(6) Compile the following source files, setting -DHAVE_CONFIG_H as a compiler | |
option if you have set up config.h with your configuration, or else use | |
other -D settings to change the configuration as required. | |
| |
pcre_chartables.c |
pcre_chartables.c |
pcre_compile.c |
pcre_compile.c |
pcre_config.c |
pcre_config.c |
Line 105 hand":
|
Line 102 hand":
|
pcre_fullinfo.c |
pcre_fullinfo.c |
pcre_get.c |
pcre_get.c |
pcre_globals.c |
pcre_globals.c |
pcre_info.c |
|
pcre_maketables.c |
pcre_maketables.c |
pcre_newline.c |
pcre_newline.c |
pcre_ord2utf8.c |
pcre_ord2utf8.c |
pcre_refcount.c |
pcre_refcount.c |
|
pcre_string_utils.c |
pcre_study.c |
pcre_study.c |
pcre_tables.c |
pcre_tables.c |
pcre_try_flipped.c |
|
pcre_ucd.c |
pcre_ucd.c |
pcre_valid_utf8.c |
pcre_valid_utf8.c |
pcre_version.c |
pcre_version.c |
Line 123 hand":
|
Line 119 hand":
|
sought in the current directory. Otherwise you run the risk of picking up |
sought in the current directory. Otherwise you run the risk of picking up |
a previously-installed file from somewhere else. |
a previously-installed file from somewhere else. |
|
|
(7) If you have defined SUPPORT_JIT in config.h, you must also compile | (6) If you have defined SUPPORT_JIT in config.h, you must also compile |
|
|
pcre_jit_compile.c |
pcre_jit_compile.c |
|
|
This file #includes sources from the sljit subdirectory, where there |
This file #includes sources from the sljit subdirectory, where there |
should be 16 files, all of whose names begin with "sljit". |
should be 16 files, all of whose names begin with "sljit". |
|
|
(8) Now link all the compiled code into an object library in whichever form | (7) Now link all the compiled code into an object library in whichever form |
your system keeps such libraries. This is the basic PCRE C library. If | your system keeps such libraries. This is the basic PCRE C 8-bit library. |
your system has static and shared libraries, you may have to do this once | If your system has static and shared libraries, you may have to do this |
for each type. | once for each type. |
|
|
(9) Similarly, if you want to build the POSIX wrapper functions, ensure that | (8) If you want to build a 16-bit library (as well as, or instead of the 8-bit |
you have the pcreposix.h file and then compile pcreposix.c (remembering | library) repeat steps 5-7 with the following files: |
-DHAVE_CONFIG_H if necessary). Link the result (on its own) as the | |
pcreposix library. | |
|
|
(10) Compile the test program pcretest.c (again, don't forget -DHAVE_CONFIG_H). | pcre16_byte_order.c |
This needs the functions in the PCRE library when linking. It also needs | pcre16_chartables.c |
the pcreposix wrapper functions unless you compile it with -DNOPOSIX. The | pcre16_compile.c |
pcretest.c program also needs the pcre_printint.src source file, which it | pcre16_config.c |
#includes. | pcre16_dfa_exec.c |
| pcre16_exec.c |
| pcre16_fullinfo.c |
| pcre16_get.c |
| pcre16_globals.c |
| pcre16_jit_compile.c (if SUPPORT_JIT is defined) |
| pcre16_maketables.c |
| pcre16_newline.c |
| pcre16_ord2utf16.c |
| pcre16_refcount.c |
| pcre16_string_utils.c |
| pcre16_study.c |
| pcre16_tables.c |
| pcre16_ucd.c |
| pcre16_utf16_utils.c |
| pcre16_valid_utf16.c |
| pcre16_version.c |
| pcre16_xclass.c |
|
|
|
(9) If you want to build the POSIX wrapper functions (which apply only to the |
|
8-bit library), ensure that you have the pcreposix.h file and then compile |
|
pcreposix.c (remembering -DHAVE_CONFIG_H if necessary). Link the result |
|
(on its own) as the pcreposix library. |
|
|
|
(10) The pcretest program can be linked with either or both of the 8-bit and |
|
16-bit libraries (depending on what you selected in config.h). Compile |
|
pcretest.c and pcre_printint.c (again, don't forget -DHAVE_CONFIG_H) and |
|
link them together with the appropriate library/ies. If you compiled an |
|
8-bit library, pcretest also needs the pcreposix wrapper library unless |
|
you compiled it with -DNOPOSIX. |
|
|
(11) Run pcretest on the testinput files in the testdata directory, and check |
(11) Run pcretest on the testinput files in the testdata directory, and check |
that the output matches the corresponding testoutput files. Some tests are | that the output matches the corresponding testoutput files. If you |
relevant only when certain build-time options are selected. For example, | compiled both an 8-bit and a 16-bit library, you need to run pcretest with |
test 4 is for UTF-8 support, and will not run if you have build PCRE | the -16 option to do 16-bit tests. |
without it. See the comments at the start of each testinput file. If you | |
have a suitable Unix-like shell, the RunTest script will run the | |
appropriate tests for you. | |
|
|
|
Some tests are relevant only when certain build-time options are selected. |
|
For example, test 4 is for UTF-8 or UTF-16 support, and will not run if |
|
you have built PCRE without it. See the comments at the start of each |
|
testinput file. If you have a suitable Unix-like shell, the RunTest script |
|
will run the appropriate tests for you. |
|
|
Note that the supplied files are in Unix format, with just LF characters |
Note that the supplied files are in Unix format, with just LF characters |
as line terminators. You may need to edit them to change this if your |
as line terminators. You may need to edit them to change this if your |
system uses a different convention. If you are using Windows, you probably |
system uses a different convention. If you are using Windows, you probably |
Line 167 hand":
|
Line 193 hand":
|
the JIT test program, pcre_jit_test.c. |
the JIT test program, pcre_jit_test.c. |
|
|
(13) If you want to use the pcregrep command, compile and link pcregrep.c; it |
(13) If you want to use the pcregrep command, compile and link pcregrep.c; it |
uses only the basic PCRE library (it does not need the pcreposix library). | uses only the basic 8-bit PCRE library (it does not need the pcreposix |
| library). |
|
|
|
|
THE C++ WRAPPER FUNCTIONS |
THE C++ WRAPPER FUNCTIONS |
|
|
The PCRE distribution also contains some C++ wrapper functions and tests, |
The PCRE distribution also contains some C++ wrapper functions and tests, |
contributed by Google Inc. On a system that can use "configure" and "make", | applicable to the 8-bit library, which were contributed by Google Inc. On a |
the functions are automatically built into a library called pcrecpp. It should | system that can use "configure" and "make", the functions are automatically |
be straightforward to compile the .cc files manually on other systems. The | built into a library called pcrecpp. It should be straightforward to compile |
files called xxx_unittest.cc are test programs for each of the corresponding | the .cc files manually on other systems. The files called xxx_unittest.cc are |
xxx.cc files. | test programs for each of the corresponding xxx.cc files. |
|
|
|
|
BUILDING FOR VIRTUAL PASCAL |
BUILDING FOR VIRTUAL PASCAL |
Line 547 build.log file in the root of the package also.
|
Line 574 build.log file in the root of the package also.
|
|
|
|
|
========================= |
========================= |
Last Updated: 9 October 2011 | Last Updated: 30 December 2011 |
**** |
**** |