鸿蒙BUILD.gn文件中deps和external_deps区别?

deps和external_deps有什么区别?

我看到很多gn文件中,依赖给人感觉很混乱.


例如base\location\location_gnss\gnss\​​BUILD.gn​​:

 deps = [
    "$SUBSYSTEM_DIR/location_common/common:lbsservice_common",
    "$SUBSYSTEM_DIR/location_locator/locator:lbsservice_locator",
    "${aafwk_path}/interfaces/innerkits/base:base",
    "${aafwk_path}/interfaces/innerkits/want:want",
    "//base/location/interfaces/innerkits/locator_standard:locator_sdk",
    "//base/notification/ces_standard/frameworks/core:cesfwk_core",
    "//base/notification/ces_standard/frameworks/native:cesfwk_innerkits",
    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
    "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "ces_standard:cesfwk_innerkits",
    "eventhandler:libeventhandler",
    "hisysevent_native:libhisysevent",
    "hiviewdfx_hilog_native:libhilog",
  ]

cesfwk_innerkits在deps中声明了一次,但是又在external_deps中再次声明,这个是重复多余的吗?

如果我只使用deps,那么是否在bundle.json中就无须添加ces_standard

"deps": {
            "components": [
                "ipc",
                "ces_standard",   
                "hiviewdfx_hilog_native",    
                "appexecfwk_standard",    
                "hisysevent_native"    
            ],
 },

openharmony
鸿蒙
gn
2022-10-11 16:04:13
浏览
已于2022-10-11 16:27:26修改
收藏 0
回答 0
待解决
相关问题
eTS文件ts文件区别
107浏览 • 1回复 待解决
/build.py w800hpm dist指令有什么区别
3360浏览 • 1回复 待解决
Build Output文件报错
6611浏览 • 1回复 待解决
鸿蒙1.0鸿蒙2.0有什么区别
12923浏览 • 3回复 待解决
build.gradle的签名问题
5837浏览 • 2回复 待解决
鸿蒙系统预装升级有什么区别
9403浏览 • 2回复 待解决
liteos-a 鸿蒙2.0有什么区别
7163浏览 • 1回复 已解决
wampserverapache的区别
688浏览 • 1回复 待解决
exportexport default的区别
90浏览 • 1回复 待解决
鸿蒙系统安卓系统的区别有哪些呢?
13503浏览 • 2回复 已解决
鸿蒙2.0,欧拉C++20,有何区别
3900浏览 • 1回复 待解决
HVD ManagerDevice Manager区别
5138浏览 • 1回复 待解决
HARHAP的区别有哪些
99浏览 • 1回复 待解决
hilogconsole.log的区别
91浏览 • 1回复 待解决
Stage模型FA模型的区别
151浏览 • 1回复 待解决