From bad0c277f75ba653abc430dba8b9762309084840 Mon Sep 17 00:00:00 2001 From: wenlong_12 Date: Fri, 22 Nov 2024 07:18:27 +0000 Subject: [PATCH] =?UTF-8?q?re2=20=E9=83=A8=E4=BB=B6=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wenlong_12 --- BUILD.gn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index f687fa0..da28376 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -20,6 +20,10 @@ libre2_path = rebase_path("//third_party/re2") exec_script("install.sh", [ "$libre2_path" ]) RE2_DIR = rebase_path("//third_party/re2/re2") + +config("re2_public_config") { + include_dirs = [ "${RE2_DIR}/" ] +} ohos_shared_library("re2") { sources = [ "${RE2_DIR}/re2/bitmap256.h", @@ -66,6 +70,7 @@ ohos_shared_library("re2") { if (!is_asan && !is_debug) { version_script = "libre2.map" } + public_configs = [ ":re2_public_config" ] install_enable = true subsystem_name = "${THIRDPARTY_RE2_SUBSYS_NAME}" part_name = "${THIRDPARTY_RE2_PART_NAME}" -- Gitee