Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
cf178463
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
1 年多 前同步成功
通知
37
Star
125
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Musl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
cf178463
编写于
1月 16, 2023
作者:
O
openharmony_ci
提交者:
Gitee
1月 16, 2023
浏览文件
操作
浏览文件
下载
差异文件
!785 NDK中native包增加x86_64架构
Merge pull request !785 from lijunru/cherry-pick-1673599465
上级
43df22c5
b139ae2c
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
45 addition
and
0 deletion
+45
-0
ndk_script/BUILD.gn
ndk_script/BUILD.gn
+45
-0
未找到文件。
ndk_script/BUILD.gn
浏览文件 @
cf178463
...
...
@@ -198,6 +198,19 @@ musl_lib_arm64 = [
"//third_party/musl:soft_librt(//build/toolchain/ohos:ohos_clang_arm64)",
]
musl_lib_x86_64 = [
"//third_party/musl:soft_musl_crt_install_action(//build/toolchain/ohos:ohos_clang_x86_64)",
"//third_party/musl:soft_libc_musl_static(//build/toolchain/ohos:ohos_clang_x86_64)",
"//third_party/musl:soft_libm(//build/toolchain/ohos:ohos_clang_x86_64)",
"//third_party/musl:soft_libdl(//build/toolchain/ohos:ohos_clang_x86_64)",
"//third_party/musl:soft_libpthread(//build/toolchain/ohos:ohos_clang_x86_64)",
"//third_party/musl:soft_libcrypt(//build/toolchain/ohos:ohos_clang_x86_64)",
"//third_party/musl:soft_libutil(//build/toolchain/ohos:ohos_clang_x86_64)",
"//third_party/musl:soft_libxnet(//build/toolchain/ohos:ohos_clang_x86_64)",
"//third_party/musl:soft_libresolv(//build/toolchain/ohos:ohos_clang_x86_64)",
"//third_party/musl:soft_librt(//build/toolchain/ohos:ohos_clang_x86_64)",
]
## arm-linux-ohos asm directory
ohos_ndk_copy("musl_arm_uapi_arm32") {
dest_dir = "$ndk_os_irrelevant_out_dir/sysroot/usr/include/arm-linux-ohos"
...
...
@@ -332,3 +345,35 @@ ohos_copy("musl_ndk_libs_aarch64") {
outputs = [ "$ndk_os_irrelevant_out_dir/sysroot/usr/lib/aarch64-linux-ohos/{{source_file_part}}" ]
}
ohos_copy("musl_ndk_libs_x86_64") {
deps = musl_lib_x86_64
crt_dir = "${root_build_dir}/obj/third_party/musl/usr/lib/x86_64-linux-ohos"
sources = [
"${crt_dir}/Scrt1.o",
"${crt_dir}/crt1.o",
"${crt_dir}/crti.o",
"${crt_dir}/crtn.o",
"${crt_dir}/rcrt1.o",
]
sources += [ get_label_info(deps[0], "target_out_dir") +
"/usr/lib/x86_64-linux-ohos/libc.a" ]
sources += [ get_label_info(deps[0], "target_out_dir") +
"/usr/lib/x86_64-linux-ohos/libdl.a" ]
sources += [ get_label_info(deps[0], "target_out_dir") +
"/usr/lib/x86_64-linux-ohos/libm.a" ]
sources += [ get_label_info(deps[0], "target_out_dir") +
"/usr/lib/x86_64-linux-ohos/libcrypt.a" ]
sources += [ get_label_info(deps[0], "target_out_dir") +
"/usr/lib/x86_64-linux-ohos/libpthread.a" ]
sources += [ get_label_info(deps[0], "target_out_dir") +
"/usr/lib/x86_64-linux-ohos/libresolv.a" ]
sources += [ get_label_info(deps[0], "target_out_dir") +
"/usr/lib/x86_64-linux-ohos/librt.a" ]
sources += [ get_label_info(deps[0], "target_out_dir") +
"/usr/lib/x86_64-linux-ohos/libutil.a" ]
sources += [ get_label_info(deps[0], "target_out_dir") +
"/usr/lib/x86_64-linux-ohos/libxnet.a" ]
outputs = [ "$ndk_os_irrelevant_out_dir/sysroot/usr/lib/x86_64-linux-ohos/{{source_file_part}}" ]
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录