From 78b51ced50a26a52da9c932fab2f366c97ef75a1 Mon Sep 17 00:00:00 2001 From: s_c_c Date: Mon, 18 Mar 2024 11:45:02 +0800 Subject: [PATCH] Fix sysroot path for embedded --- c_utils.BUILD.gn | 5 +++-- commonlibrary_c_utils.spec | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/c_utils.BUILD.gn b/c_utils.BUILD.gn index d9d4246..329339c 100644 --- a/c_utils.BUILD.gn +++ b/c_utils.BUILD.gn @@ -11,14 +11,15 @@ # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") +import("//build/config/sysroot.gni") config("utils_configs") { - include_dirs = [ "include" ] + include_dirs = [ "${sysroot}/usr/include/c_utils" ] libs = [ "utils.z" ] } config("utilsbase_config") { - include_dirs = [ "include" ] + include_dirs = [ "${sysroot}/usr/include/c_utils" ] libs = [ "utilsbase.z" ] } diff --git a/commonlibrary_c_utils.spec b/commonlibrary_c_utils.spec index 54e5fe3..bbcdd68 100644 --- a/commonlibrary_c_utils.spec +++ b/commonlibrary_c_utils.spec @@ -12,7 +12,7 @@ Name: commonlibrary_c_utils # rpm包版本号 Version: 1.0.0 # rpm包Release号,每次修改需要+1,changelog同步修改 -Release: 1 +Release: 2 # rpm简介 Summary: C++ common basic library for distributed module construction and operation # License openHarmony的应该都是Apache License 2.0 @@ -117,5 +117,8 @@ ln -s /usr/include/c_utils %{buildroot}%{build_opt}/openeuler/compiler_gn/common # 变更日志 %changelog +* Fri Mar 15 2024 s_c_c - 1.0.0-2 +- Fix sysroot path for embedded + * Thu Jun 15 2023 chrisshangguan - 1.0.0-1 - Init and adapt to openeuler -- Gitee