• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2* Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3* Licensed under the Apache License, Version 2.0 (the "License");
4* you may not use this file except in compliance with the License.
5* You may obtain a copy of the License at
6*
7* http://www.apache.org/licenses/LICENSE-2.0
8*
9* Unless required by applicable law or agreed to in writing, software
10* distributed under the License is distributed on an "AS IS" BASIS,
11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12* See the License for the specific language governing permissions and
13* limitations under the License.
14*/
15
16import { FileTemp } from "../../gen/datatype";
17
18export let peripheralDumpGn4_1: FileTemp = {
19  name: 'BUILD.gn',
20  content: ` #Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd.
21  #Licensed under the Apache License, Version 2.0 (the "License");
22  #you may not use this file except in compliance with the License.
23  #You may obtain a copy of the License at
24  #
25  #    http://www.apache.org/licenses/LICENSE-2.0
26  #
27  #Unless required by applicable law or agreed to in writing, software
28  #distributed under the License is distributed on an "AS IS" BASIS,
29  #WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
30  #See the License for the specific language governing permissions and
31  #limitations under the License.
32  #
33import("//build/ohos.gni")
34
35config("libhdi_[driverName]_pub_config") {
36  visibility = [ ":*" ]
37}
38ohos_shared_library("hdi_[driverName]") {
39  public_configs = [ ":libhdi_[driverName]_pub_config" ]
40  sources = [
41    "[driverName]_dump.c",
42  ]
43  include_dirs = [
44    "include",
45    "../utils/interface",
46    "//third_party/bounds_checking_function/include",
47  ]
48  cflags = [
49    "-Wall",
50    "-Wextra",
51    "-Werror",
52    "-fsigned-char",
53    "-fno-common",
54    "-fno-strict-aliasing",
55  ]
56  install_images = [ chipset_base_dir ]
57  subsystem_name = "hdf"
58  part_name = "drivers_peripheral_[driverName]"
59  if (is_standard_system) {
60    external_deps = [
61      "c_utils:utils",
62      "hdf_core:libhdf_host",
63      "hdf_core:libhdf_utils",
64      "hilog:libhilog",
65    ]
66  } else {
67    external_deps = [ "hilog:libhilog" ]
68  }
69}
70  `
71}