已关闭
[Bug]: cj_ability_access_ctrl_ffi device 构建缺少 node_header_notice 依赖 #3603
ding_hong_4创建于  15 天前关闭于  13 天前
ding_hong_4
ding_hong_4
15 天前 创建

发生了什么问题? | Describe the issue

interfaces/kits/cj/accesstoken/BUILD.gncj_ability_access_ctrl_ffi 在 device 构建分支(if (!ohos_indep_compiler_enable && product_name != "ohos-sdk"))的 external_deps 缺少 node:node_header_notice 依赖。该 target 的源文件通过 cj_common_ffi.hcj_lambda.hffi_remote_data.h 等 CJ FFI 绑定头文件间接引用 Node.js native API 头文件(如 node_api.h),而 node:node_header_notice 负责提供这些 Node 头文件。依赖缺失导致 device 构建时找不到 Node 头文件,编译失败。

期望行为 | Expected

cj_ability_access_ctrl_ffi device 构建应能正常解析 Node.js native API 头文件,编译通过。

如何修复 | Fix

  • interfaces/kits/cj/accesstoken/BUILD.gn:在 cj_ability_access_ctrl_ffi device 构建分支的 external_deps 中补充 node:node_header_notice,与 napi:cj_bind_ffinapi:cj_bind_native 并列。

分支版本信息 | Branch

/br [ ] main
/br [x] master

likedislike
ding_hong_4ding_hong_4
15 天前 添加了label:bug
openharmony_ci
openharmony_ci成员
15 天前 评论:

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 [@hehehe-li](https://gitcode.com/hehehe-li) [@linshuqing](https://gitcode.com/linshuqing) [@chennian](https://gitcode.com/chennian) 。如果需要调整订阅PR、Issue的变更状态,请访问链接


Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer gitcode for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ci成员
15 天前 添加了label:waiting_for_assign
ding_hong_4ding_hong_4
15 天前 关联了pull request:fix: add node_header_notice dep for cj_ability_access_ctrl_ffi
openharmony_ciopenharmony_ci成员
13 天前 关闭了 issue
openharmony_ciopenharmony_ci成员
13 天前 issue状态由 待办的 改变为 已完成