add pcre2_static_8

Issue: https://gitcode.com/openharmony/third_party_pcre2/issues/72

Signed-off-by: zhangmingqi <zhangmingqi9@huawei.com>
This commit is contained in:
weixin_57688977
2026-02-26 14:20:08 +08:00
parent 8df07271a8
commit c4fcd4811b
2 changed files with 28 additions and 0 deletions
+21
View File
@@ -129,6 +129,27 @@ ohos_static_library("libpcre2_static") {
subsystem_name = "thirdparty"
}
ohos_static_library("libpcre2_static_8") {
deps = [ ":publish_generic_file" ]
output_name = "libpcre2_static_8"
sources = pcre2_sources
sources -= [ "$PCRE2_LIB_DIR/src/pcre2_newline.c" ]
sources += [ "$PCRE2_ARKTS_DIR/pcre2_newline_static.c" ]
sources += get_target_outputs(":publish_generic_file")
public_configs = [ ":third_party_pcre2_config" ]
cflags = [
"-D_GNU_SOURCE",
"-DHAVE_CONFIG_H",
"-DSUPPORT_PCRE2_8=1",
"-DSUPPORT_UNICODE=1",
"-DPCRE2_CODE_UNIT_WIDTH=8",
"-w",
]
license_file = "$PCRE2_LIB_DIR/LICENCE.md"
part_name = "pcre2"
subsystem_name = "thirdparty"
}
ohos_static_library("libpcre2_static_16") {
deps = [ ":publish_generic_file" ]
output_name = "libpcre2_static_16"
+7
View File
@@ -39,6 +39,13 @@
"header_base": "//third_party/pcre2/pcre2/src"
}
},
{
"name": "//third_party/pcre2:libpcre2_static_8",
"header": {
"header_files": [],
"header_base": "//third_party/pcre2/pcre2/src"
}
},
{
"name": "//third_party/pcre2:libpcre2_static_16",
"header": {