From 1c0cb0f83159f189abc4173c6d525f974858deb3 Mon Sep 17 00:00:00 2001 From: yeyuning Date: Mon, 25 Mar 2024 15:09:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8flock=20=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E5=B9=B6=E5=8F=91cp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yeyuning Change-Id: I2ceca7c37f3221d22db2ee925b7506ca47136005 --- BUILD.gn | 13 +++++++++++++ bundle.json | 11 +---------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index f2f3ac8..00f49e9 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -29,9 +29,18 @@ ohos_shared_library("libpcre2") { check_config_result = exec_script(md5_check_script, _arguments_config, "string") + + exec_script("/usr/bin/env", + [ + "touch", + "/tmp/cp.lock", + ]) + if (check_config_result == "") { exec_script("/usr/bin/env", [ + "flock", + "/tmp/cp.lock", "cp", "-f", rebase_path("$PCRE2_LIB_DIR/src/config.h.generic"), @@ -48,6 +57,8 @@ ohos_shared_library("libpcre2") { if (check_pcre2_result == "") { exec_script("/usr/bin/env", [ + "flock", + "/tmp/cp.lock", "cp", "-f", rebase_path("$PCRE2_LIB_DIR/src/pcre2.h.generic"), @@ -65,6 +76,8 @@ ohos_shared_library("libpcre2") { if (check_pcre2_chartables_result == "") { exec_script("/usr/bin/env", [ + "flock", + "/tmp/cp.lock", "cp", "-f", rebase_path("$PCRE2_LIB_DIR/src/pcre2_chartables.c.dist"), diff --git a/bundle.json b/bundle.json index 22f5321..1021d5d 100644 --- a/bundle.json +++ b/bundle.json @@ -28,16 +28,7 @@ { "name": "//third_party/pcre2:libpcre2", "header": { - "header_files": [ - "pcre2_internal.h", - "pcre2_intmodedep.h", - "pcre2_jit_neon_inc.h", - "pcre2_jit_simd_inc.h", - "pcre2_ucp.h", - "pcre2posix.h", - "pcre2.h", - "config.h" - ], + "header_files": [], "header_base": "//third_party/pcre2/pcre2/src" } } -- Gitee