From debe597d8d3cef0120815d4e37c5ca56df6926c2 Mon Sep 17 00:00:00 2001 From: hw-wLiu Date: Sun, 29 Jan 2023 15:48:17 +0800 Subject: [PATCH] third_party0129 Signed-off-by: hw-wLiu Change-Id: Iacd986fc32520d825a3be01ad3feb629bf7b5751 --- BUILD.gn | 1 + libre2.map | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 libre2.map diff --git a/BUILD.gn b/BUILD.gn index 0ee9022..7a4431f 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -57,6 +57,7 @@ ohos_shared_library("re2") { "util/util.h", ] include_dirs = [ "." ] + version_script = "libre2.map" # cflags = [ "-lpthread" ] # ldflags = [ "-pthread" ] diff --git a/libre2.map b/libre2.map new file mode 100644 index 0000000..5287893 --- /dev/null +++ b/libre2.map @@ -0,0 +1,10 @@ +{ + global: + extern "C++" { + "re2::RE2::~RE2()"; + "re2::RE2::RE2(re2::StringPiece const&, re2::RE2::Options const&)"; + "re2::RE2::FullMatchN(re2::StringPiece const&, re2::RE2 const&, re2::RE2::Arg const* const*, int)"; + }; + local: + *; +}; -- Gitee