diff --git a/BUILD.gn b/BUILD.gn index f2f3ac8ecac42d0d38e1df7dceba4ba33aa41291..00f49e927dab2f698b336693919fcec16dddf04c 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 22f53215e9856320156e0e735c136752769f840b..1021d5d1610dbd302f6f64fdeb75d40e749070fc 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" } }