!9 修改gn文件中的sysroot路径以适配嵌入式环境

From: @s-c-c 
Reviewed-by: @yukaii 
Signed-off-by: @yukaii
This commit is contained in:
openeuler-ci-bot 2024-03-20 03:14:52 +00:00 committed by Gitee
commit 58a9594d72
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 7 additions and 3 deletions

View File

@ -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" ]
}

View File

@ -12,7 +12,7 @@ Name: commonlibrary_c_utils
# rpm包版本号
Version: 1.0.0
# rpm包Release号每次修改需要+1changelog同步修改
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 <shichuchao@huawei.com> - 1.0.0-2
- Fix sysroot path for embedded
* Thu Jun 15 2023 chrisshangguan <shangguanjingshi@huawei.com> - 1.0.0-1
- Init and adapt to openeuler