已开启
device_auth 在不支持 jsapi 的平台上添加条件编译 #1
handyohos创建于  4月24日
handyohos
handyohos成员
4月24日 创建

Problem Description

device_auth 构建在不支持 jsapi 的平台(如 taihe 环境)上失败,
原因是 napi 构建组缺少 support_jsapi 条件判断。

Environment Information

  • Platform: Platforms without jsapi support (taihe environment)
  • Component: device_auth
  • Build System: GN
  • File: BUILD.gn

Expected Behavior

device_auth 应该能够在不支持 jsapi 的平台上正常构建,
通过条件编译自动排除依赖 jsapi 的 napi 组件。

Actual Behavior

构建失败,提示缺少 jsapi 相关的依赖组件。

Suggested Solution

在 BUILD.gn 中添加 support_jsapi 条件判断:

  • deviceauth_napi_build 组中添加 && support_jsapi 条件
  • 确保条件编译逻辑正确

Priority

Medium - Affects build capability on platforms without jsapi

  • Build system
  • taihe compilation support
  • Cross-platform compatibility

This issue will be resolved by the corresponding PR

likedislike
handyohoshandyohos成员
4月24日 添加了label:buildplatform-supporttaihe
handyohoshandyohos成员
4月24日 关联了pull request:feat: device_auth 在不支持 jsapi 的平台移除 napi 依赖