• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/ohos.gni")
15
16ohos_shared_library("libpartition_slot_service_1.0") {
17  include_dirs = [ "include" ]
18  sources = [ "src/partitionslot_impl.cpp" ]
19  public_deps = [
20    "../../../../drivers/peripheral/partitionslot/hal:partitionslot_source",
21  ]
22  external_deps = [
23    "c_utils:utils",
24    "drivers_interface_partitionslot:libpartitionslot_proxy_1.0",
25    "hdf_core:libhdf_utils",
26    "hilog:libhilog",
27    "init:libbegetutil",
28  ]
29
30  install_images = [ chipset_base_dir ]
31  subsystem_name = "hdf"
32  part_name = "drivers_peripheral_partitionslot"
33}
34
35ohos_shared_library("libpartitionslot_driver") {
36  include_dirs = [ "include" ]
37  sources = [ "src/partition_slot_driver.cpp" ]
38  external_deps = [
39    "c_utils:utils",
40    "drivers_interface_partitionslot:libpartitionslot_stub_1.0",
41    "hdf_core:libhdf_host",
42    "hdf_core:libhdf_ipc_adapter",
43    "hdf_core:libhdf_utils",
44    "hdf_core:libhdi",
45    "hilog:libhilog",
46    "ipc:ipc_single",
47  ]
48
49  shlib_type = "hdi"
50  install_images = [ chipset_base_dir ]
51  subsystem_name = "hdf"
52  part_name = "drivers_peripheral_partitionslot"
53}
54
55group("hdf_partitionslot_service") {
56  deps = [
57    ":libpartition_slot_service_1.0",
58    ":libpartitionslot_driver",
59  ]
60}
61