openharmony: 子系统和组件

2024-02-18  本文已影响0人  xEndLess

openharmony版本:V4.0

之前一直没搞懂轻量级系统、小型系统和标准系统支持哪些子系统和组件。其实系统中再有定义。在路劲productdefine/common/base/下有三个文件,mini_system.json、small_system.json和standard_system.json。这三个文件定义了不同的系统所支持子系统和组件。如下图所示:

{
  "subsystems": [
    {
      "subsystem": "kernel",
      "components": [
        { "component": "liteos_m" }
      ]
    },
    {
      "subsystem": "hdf",
      "components": [
        { "component": "hdf_core" }
      ]
    },
    {
      "subsystem": "hiviewdfx",
      "components": [
        { "component": "hilog_lite" },
        { "component": "hievent_lite" },
        { "component": "hiview_lite" }
      ]
    },
    {
      "subsystem": "startup",
      "components": [
        { "component": "bootstrap_lite" }
      ]
    },
    {
      "subsystem": "communication",
      "components": [
        { "component": "dsoftbus" }
      ]
    },
    {
      "subsystem": "systemabilitymgr",
      "components": [
        { "component": "samgr_lite" }
      ]
    },
    {
      "subsystem": "security",
      "components": [
        { "component": "device_auth" },
        { "component": "huks" }
      ]
    },
    {
      "subsystem": "commonlibrary",
      "components": [
        { "component": "kv_store" },
        { "component": "kal_timer" }
      ]
    },
    {
      "subsystem": "updater",
      "components": [
        { "component": "sys_installer_lite" }
      ]
    }
  ]
}

其中每一个子系统在的位置在文件build/subsystem_config.json中定义了。如下图所示。

{
  "arkui": {
    "path": "foundation/arkui",
    "name": "arkui"
  },
  "ai": {
    "path": "foundation/ai",
    "name": "ai"
  },
  "account": {
    "path": "base/account",
    "name": "account"
  },
  "distributeddatamgr": {
    "path": "foundation/distributeddatamgr",
    "name": "distributeddatamgr"
  },
  "security": {
    "path": "base/security",
    "name": "security"
  },
  "useriam": {
    "path": "base/useriam",
    "name": "useriam"
  },
  "startup": {
    "path": "base/startup",
    "name": "startup"
  },
  "hiviewdfx": {
    "path": "base/hiviewdfx",
    "name": "hiviewdfx"
  },
  "utils": {
    "path": "utils",
    "name": "utils"
  },
  "commonlibrary": {
    "path": "commonlibrary",
    "name": "commonlibrary"
  },
  "bundlemanager": {
    "path": "foundation/bundlemanager",
    "name": "bundlemanager"
  },
  "appexecfwk": {
    "path": "foundation/appexecfwk",
    "name": "appexecfwk"
  },
  "ability": {
    "path": "foundation/ability",
    "name": "ability"
  },
  "notification": {
    "path": "base/notification",
    "name": "notification"
  },
  "communication": {
    "path": "foundation/communication",
    "name": "communication"
  },
  "location": {
    "path": "base/location",
    "name": "location"
  },
  "systemabilitymgr": {
    "path": "foundation/systemabilitymgr",
    "name": "systemabilitymgr"
  },
  "hdf": {
    "path": "drivers",
    "name": "hdf"
  },
  "updater": {
    "path": "base/update",
    "name": "updater"
  },
  "developtools": {
    "path": "developtools",
    "name": "developtools"
  },
  "sensors": {
    "path": "base/sensors",
    "name": "sensors"
  },
  "graphic": {
    "path": "foundation/graphic",
    "name": "graphic"
  },
  "window": {
    "path": "foundation/window",
    "name": "window"
  },
  "time": {
    "path": "base/time",
    "name": "time"
  },
  "inputmethod": {
    "path": "base/inputmethod",
    "name": "inputmethod"
  },
  "request": {
    "path": "base/request",
    "name": "request"
  },
  "print": {
    "path": "base/print",
    "name": "print"
  },
  "theme": {
    "path": "base/theme",
    "name": "theme"
  },
  "multimedia": {
    "path": "foundation/multimedia",
    "name": "multimedia"
  },
  "multimodalinput": {
    "path": "foundation/multimodalinput",
    "name": "multimodalinput"
  },
  "telephony": {
    "path": "base/telephony",
    "name": "telephony"
  },
  "global": {
    "path": "base/global",
    "name": "global"
  },
  "powermgr": {
    "path": "base/powermgr",
    "name": "powermgr"
  },
  "usb": {
    "path": "base/usb",
    "name": "usb"
  },
  "applications": {
    "path": "applications",
    "name": "applications"
  },
  "wpa_supplicant-2.9": {
    "path": "third_party/wpa_supplicant/wpa_supplicant-2.9_standard",
    "name": "wpa_supplicant-2.9"
  },
  "xts": {
    "path": "test/xts",
    "name": "xts"
  },
  "wukong": {
    "path": "test/ostest/wukong",
    "name": "wukong"
  },
  "testfwk": {
    "path": "test/testfwk",
    "name": "testfwk"
  },
  "distributedhardware": {
    "path": "foundation/distributedhardware",
    "name": "distributedhardware"
  },
  "arkcompiler": {
    "path": "arkcompiler",
    "name": "arkcompiler"
  },
  "iothardware": {
    "path": "base/iothardware",
    "name": "iothardware"
  },
  "kernel": {
    "path": "kernel",
    "name": "kernel"
  },
  "msdp": {
    "path": "base/msdp",
    "name": "msdp"
  },
  "deviceprofile": {
    "path": "foundation/deviceprofile",
    "name": "deviceprofile"
  },
  "filemanagement": {
    "path": "foundation/filemanagement",
    "name": "filemanagement"
  },
  "resourceschedule": {
    "path": "foundation/resourceschedule",
    "name": "resourceschedule"
  },
  "barrierfree": {
    "path": "foundation/barrierfree/accessibility",
    "name": "accessibility"
  },
  "customization": {
    "path": "base/customization",
    "name": "customization"
  },
  "web": {
    "path": "base/web",
    "name": "web"
  },
  "thirdparty": {
    "path": "third_party",
    "name": "thirdparty"
  },
  "ide": {
    "path": "ide",
    "name": "ide"
  },
  "advertising": {
    "path": "domains/cloud",
    "name": "advertising"
  }
}
上一篇 下一篇

猜你喜欢

热点阅读