diff --git a/BUILD.gn b/BUILD.gn index f687fa0918ed29272a25ca1d683dfb9abae192d4..da283767e2f5282460c87630028438cc2a94d4ec 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}"