已关闭
[Bug]: cj_ability_access_ctrl_ffi device 构建缺少 node_header_notice 依赖 #3603
ding_hong_4创建于 15 天前关闭于 13 天前
15 天前 添加了label:bug
openharmony_ci
15 天前 评论:
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.


15 天前 添加了label:waiting_for_assign
15 天前 关联了pull request:fix: add node_header_notice dep for cj_ability_access_ctrl_ffi
13 天前 关闭了 issue
13 天前 issue状态由 待办的 改变为 已完成
发生了什么问题? | Describe the issue
interfaces/kits/cj/accesstoken/BUILD.gn中cj_ability_access_ctrl_ffi在 device 构建分支(if (!ohos_indep_compiler_enable && product_name != "ohos-sdk"))的external_deps缺少node:node_header_notice依赖。该 target 的源文件通过cj_common_ffi.h、cj_lambda.h、ffi_remote_data.h等 CJ FFI 绑定头文件间接引用 Node.js native API 头文件(如node_api.h),而node:node_header_notice负责提供这些 Node 头文件。依赖缺失导致 device 构建时找不到 Node 头文件,编译失败。期望行为 | Expected
cj_ability_access_ctrl_ffidevice 构建应能正常解析 Node.js native API 头文件,编译通过。如何修复 | Fix
cj_ability_access_ctrl_ffidevice 构建分支的external_deps中补充node:node_header_notice,与napi:cj_bind_ffi、napi:cj_bind_native并列。分支版本信息 | Branch
/br [ ] main
/br [x] master