mirror of
https://github.com/openharmony/third_party_pcre2.git
synced 2026-07-01 10:05:26 -04:00
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:
@@ -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"
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user