/[pcre]/code/trunk/NON-UNIX-USE
ViewVC logotype

Diff of /code/trunk/NON-UNIX-USE

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 836 by ph10, Wed Dec 28 17:16:11 2011 UTC revision 840 by ph10, Fri Dec 30 19:32:50 2011 UTC
# Line 88  hand": Line 88  hand":
88         pcre_internal.h         pcre_internal.h
89         ucp.h         ucp.h
90    
91   (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
92       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
93         configuration, or else use other -D settings to change the configuration
94         pcre_printint.src       as required.
   
  (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.  
95    
96         pcre_byte_order.c         pcre_byte_order.c
97         pcre_chartables.c         pcre_chartables.c
# Line 106  hand": Line 102  hand":
102         pcre_fullinfo.c         pcre_fullinfo.c
103         pcre_get.c         pcre_get.c
104         pcre_globals.c         pcre_globals.c
        pcre_info.c  
105         pcre_maketables.c         pcre_maketables.c
106         pcre_newline.c         pcre_newline.c
107         pcre_ord2utf8.c         pcre_ord2utf8.c
108         pcre_refcount.c         pcre_refcount.c
109           pcre_string_utils.c
110         pcre_study.c         pcre_study.c
111         pcre_tables.c         pcre_tables.c
112         pcre_ucd.c         pcre_ucd.c
# Line 122  hand": Line 118  hand":
118       an unusual compiler) so that all included PCRE header files are first       an unusual compiler) so that all included PCRE header files are first
119       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
120       a previously-installed file from somewhere else.       a previously-installed file from somewhere else.
121    
122   (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
123    
124         pcre_jit_compile.c         pcre_jit_compile.c
125    
126       This file #includes sources from the sljit subdirectory, where there       This file #includes sources from the sljit subdirectory, where there
127       should be 16 files, all of whose names begin with "sljit".       should be 16 files, all of whose names begin with "sljit".
128    
129   (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
130       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.
131       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
132       for each type.       once for each type.
133    
134   (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
135       you have the pcreposix.h file and then compile pcreposix.c (remembering       library) repeat steps 5-7 with the following files:
136       -DHAVE_CONFIG_H if necessary). Link the result (on its own) as the  
137       pcreposix library.         pcre16_byte_order.c
138           pcre16_chartables.c
139  (10) Compile the test program pcretest.c (again, don't forget -DHAVE_CONFIG_H).         pcre16_compile.c
140       This needs the functions in the PCRE library when linking. It also needs         pcre16_config.c
141       the pcreposix wrapper functions unless you compile it with -DNOPOSIX. The         pcre16_dfa_exec.c
142       pcretest.c program also needs the pcre_printint.src source file, which it         pcre16_exec.c
143       #includes.         pcre16_fullinfo.c
144           pcre16_get.c
145           pcre16_globals.c
146           pcre16_jit_compile.c (if SUPPORT_JIT is defined)
147           pcre16_maketables.c
148           pcre16_newline.c
149           pcre16_ord2utf16.c
150           pcre16_refcount.c
151           pcre16_string_utils.c
152           pcre16_study.c
153           pcre16_tables.c
154           pcre16_ucd.c
155           pcre16_utf16_utils.c
156           pcre16_valid_utf16.c
157           pcre16_version.c
158           pcre16_xclass.c
159    
160     (9) If you want to build the POSIX wrapper functions (which apply only to the
161         8-bit library), ensure that you have the pcreposix.h file and then compile
162         pcreposix.c (remembering -DHAVE_CONFIG_H if necessary). Link the result
163         (on its own) as the pcreposix library.
164    
165    (10) The pcretest program can be linked with either or both of the 8-bit and
166         16-bit libraries (depending on what you selected in config.h). Compile
167         pcretest.c and pcre_printint.c (again, don't forget -DHAVE_CONFIG_H) and
168         link them together with the appropriate library/ies. If you compiled an
169         8-bit library, pcretest also needs the pcreposix wrapper library unless
170         you compiled it with -DNOPOSIX.
171    
172  (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
173       that the output matches the corresponding testoutput files. Some tests are       that the output matches the corresponding testoutput files. If you
174       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
175       test 4 is for UTF-8 support, and will not run if you have build PCRE       the -16 option to do 16-bit tests.
176       without it. See the comments at the start of each testinput file. If you  
177       have a suitable Unix-like shell, the RunTest script will run the       Some tests are relevant only when certain build-time options are selected.
178       appropriate tests for you.       For example, test 4 is for UTF-8 or UTF-16 support, and will not run if
179         you have built PCRE without it. See the comments at the start of each
180         testinput file. If you have a suitable Unix-like shell, the RunTest script
181         will run the appropriate tests for you.
182    
183       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
184       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
# Line 167  hand": Line 193  hand":
193       the JIT test program, pcre_jit_test.c.       the JIT test program, pcre_jit_test.c.
194    
195  (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
196       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
197         library).
198    
199    
200  THE C++ WRAPPER FUNCTIONS  THE C++ WRAPPER FUNCTIONS
201    
202  The PCRE distribution also contains some C++ wrapper functions and tests,  The PCRE distribution also contains some C++ wrapper functions and tests,
203  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
204  the functions are automatically built into a library called pcrecpp. It should  system that can use "configure" and "make", the functions are automatically
205  be straightforward to compile the .cc files manually on other systems. The  built into a library called pcrecpp. It should be straightforward to compile
206  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
207  xxx.cc files.  test programs for each of the corresponding xxx.cc files.
208    
209    
210  BUILDING FOR VIRTUAL PASCAL  BUILDING FOR VIRTUAL PASCAL
# Line 547  build.log file in the root of the packag Line 574  build.log file in the root of the packag
574    
575    
576  =========================  =========================
577  Last Updated: 9 October 2011  Last Updated: 30 December 2011
578  ****  ****

Legend:
Removed from v.836  
changed lines
  Added in v.840

  ViewVC Help
Powered by ViewVC 1.1.5