3d8438619d
Replace the use of Henry Spencer's regex library with PCRE at the build level and enable wxUSE_PCRE in wxRegEx code to switch to PCRE-based implementation there. Note that this has to be done unconditionally because there is no simple way to select between the previously used regex library and PCRE at the makefiles level. We could still keep the possibility to use the system regex library under Unix, but this doesn't seem to be worth doing, as we don't support Unicode REs properly when using it (and never did), so drop support for this too.
81 lines
3.1 KiB
XML
81 lines
3.1 KiB
XML
<?xml version="1.0" ?>
|
|
|
|
<makefile>
|
|
|
|
<if cond="FORMAT=='autoconf'">
|
|
<option name="wxUSE_REGEX"/>
|
|
<option name="wxPCRE2_CODE_UNIT_WIDTH"/>
|
|
<set var="LIB_REGEX">
|
|
<if cond="wxUSE_REGEX=='builtin'">
|
|
wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
|
</if>
|
|
</set>
|
|
<set var="INC_REGEX_BUILD">
|
|
$(wx_top_builddir)/3rdparty/pcre/src
|
|
</set>
|
|
</if>
|
|
<if cond="FORMAT!='autoconf'">
|
|
<set var="wxUSE_REGEX">builtin</set>
|
|
<set var="LIB_REGEX">
|
|
<if cond="wxUSE_REGEX=='builtin'">
|
|
wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(HOST_SUFFIX)
|
|
</if>
|
|
</set>
|
|
</if>
|
|
|
|
<set var="INC_REGEX">
|
|
<if cond="wxUSE_REGEX=='builtin'">
|
|
$(TOP_SRCDIR)3rdparty/pcre/src/wx
|
|
</if>
|
|
</set>
|
|
|
|
<lib id="wxregex" template="msvc_setup_h,3rdparty_lib"
|
|
cond="wxUSE_REGEX=='builtin' and BUILDING_LIB=='1'">
|
|
<libname cond="FORMAT=='autoconf'">
|
|
$(id)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
|
</libname>
|
|
<libname cond="FORMAT!='autoconf'">
|
|
$(id)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(HOST_SUFFIX)
|
|
</libname>
|
|
<include cond="FORMAT!='autoconf'">$(TOP_SRCDIR)include</include>
|
|
<include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include>
|
|
<include cond="FORMAT!='autoconf'">$(INC_REGEX)</include>
|
|
<include cond="FORMAT=='autoconf'">$(INC_REGEX_BUILD)</include>
|
|
<define>__WX__</define>
|
|
<define>HAVE_CONFIG_H</define>
|
|
<define>$(UNICODE_DEFINE)</define>
|
|
<define cond="FORMAT=='autoconf'">PCRE2_CODE_UNIT_WIDTH=$(wxPCRE2_CODE_UNIT_WIDTH)</define>
|
|
<dirname>$(LIBDIRNAME)</dirname>
|
|
<sources>
|
|
3rdparty/pcre/src/pcre2_auto_possess.c
|
|
3rdparty/pcre/src/pcre2_compile.c
|
|
3rdparty/pcre/src/pcre2_config.c
|
|
3rdparty/pcre/src/pcre2_context.c
|
|
3rdparty/pcre/src/pcre2_convert.c
|
|
3rdparty/pcre/src/pcre2_dfa_match.c
|
|
3rdparty/pcre/src/pcre2_error.c
|
|
3rdparty/pcre/src/pcre2_extuni.c
|
|
3rdparty/pcre/src/pcre2_find_bracket.c
|
|
3rdparty/pcre/src/pcre2_jit_compile.c
|
|
3rdparty/pcre/src/pcre2_maketables.c
|
|
3rdparty/pcre/src/pcre2_match.c
|
|
3rdparty/pcre/src/pcre2_match_data.c
|
|
3rdparty/pcre/src/pcre2_newline.c
|
|
3rdparty/pcre/src/pcre2_ord2utf.c
|
|
3rdparty/pcre/src/pcre2_pattern_info.c
|
|
3rdparty/pcre/src/pcre2_script_run.c
|
|
3rdparty/pcre/src/pcre2_serialize.c
|
|
3rdparty/pcre/src/pcre2_string_utils.c
|
|
3rdparty/pcre/src/pcre2_study.c
|
|
3rdparty/pcre/src/pcre2_substitute.c
|
|
3rdparty/pcre/src/pcre2_substring.c
|
|
3rdparty/pcre/src/pcre2_tables.c
|
|
3rdparty/pcre/src/pcre2_ucd.c
|
|
3rdparty/pcre/src/pcre2_valid_utf.c
|
|
3rdparty/pcre/src/pcre2_xclass.c
|
|
3rdparty/pcre/src/pcre2_chartables.c
|
|
</sources>
|
|
</lib>
|
|
|
|
</makefile>
|