[glib/wip/pwithnall/962-drop-embedded-pcre: 3/5] subprojects: Tweak wrapped pcre configuration to enable Unicode support




commit 408c6bcfa29f24bea593b4bf0960a9291f1917f9
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed Jun 9 12:24:11 2021 +0100

    subprojects: Tweak wrapped pcre configuration to enable Unicode support
    
    This is needed for GLib. Specifically, it enables the `PCRE_CONFIG_UTF8`
    and `PCRE_CONFIG_UNICODE_PROPERTIES` config options.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #962

 subprojects/packagefiles/pcre-8.37/README.md            | 2 ++
 subprojects/packagefiles/pcre-8.37/internal/meson.build | 2 ++
 2 files changed, 4 insertions(+)
---
diff --git a/subprojects/packagefiles/pcre-8.37/README.md b/subprojects/packagefiles/pcre-8.37/README.md
new file mode 100644
index 000000000..629857ad4
--- /dev/null
+++ b/subprojects/packagefiles/pcre-8.37/README.md
@@ -0,0 +1,2 @@
+Based on https://github.com/mesonbuild/pcre/tree/8.37, but with
+SUPPORT_UTF and SUPPORT_UCP enabled
diff --git a/subprojects/packagefiles/pcre-8.37/internal/meson.build 
b/subprojects/packagefiles/pcre-8.37/internal/meson.build
index cd7c3754b..db1b17437 100644
--- a/subprojects/packagefiles/pcre-8.37/internal/meson.build
+++ b/subprojects/packagefiles/pcre-8.37/internal/meson.build
@@ -68,6 +68,8 @@ cdata.set('MAX_NAME_SIZE', 32)
 cdata.set('PARENS_NEST_LIMIT', 100)
 cdata.set('NEWLINE', 10) # Currently unix only.
 cdata.set('POSIX_MALLOC_THRESHOLD', 100)
+cdata.set('SUPPORT_UCP', 1)
+cdata.set('SUPPORT_UTF', 1)
 
 configure_file(input : 'config.h.meson',
   output : 'config.h',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]