HarmonyOS arkguard编译报错
基于arkguard做二次开发,如何编译arkguard工程?
目前按照https://gitee.com/openharmony/arkcompiler_ets_frontend/tree/m... 配置gn、ninja等编译环境,存在编译问题:
ERROR at //arkcompiler/toolchain/build/toolchain/toolchain. gni:57:5: Undefined identifierl
if (is_mac) {
See //arkcompiler/toolchain/build/ark. gni:18:1: whence it was imported.
import("$build_root/toolchain/toolchain. gni")
See //arkcompiler/ets_frontend/ets_frontend_config.gni:24:3: whence it was inported.import(“Sbuild_root/ark.gni”)
See //arkcompiler/toolchain/build/core/gn/BUILD. gn:14:1: whence it was imported.
inport("//arkcompiler/ets_frontend/ets_frontend_config.gni")
ohos-typescript-4.9.5-r4.tgz解压后,把包名改成typescript。
按照下方这种操作:
1:将arkguard目录下node_modules中的typescript删除。
2:将ohos-typescript.xxx.tgz解压到arkguard目录下的node_modules,并将解压出来的包名package改为typescript。