• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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
16config("base_config") {
17  visibility = [ ":*" ]
18  include_dirs = [ "//utils/native/base/include" ]
19}
20
21config("base_public_config") {
22  visibility = [ ":*" ]
23  include_dirs = [
24    "//foundation/aafwk/standard/interfaces/innerkits/base/include",
25    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base/include",
26    "//foundation/appexecfwk/standard/common/log/include",
27    "//third_party/jsoncpp/include",
28    "//utils/native/base/include",
29  ]
30}
31
32baseImpl =
33    "//foundation/aafwk/standard/frameworks/kits/base/cpp/src/ohos/aafwk/base"
34
35ohos_shared_library("base") {
36  sources = [
37    "${baseImpl}/array_wrapper.cpp",
38    "${baseImpl}/base.cpp",
39    "${baseImpl}/base_object.cpp",
40    "${baseImpl}/bool_wrapper.cpp",
41    "${baseImpl}/byte_wrapper.cpp",
42    "${baseImpl}/double_wrapper.cpp",
43    "${baseImpl}/float_wrapper.cpp",
44    "${baseImpl}/int_wrapper.cpp",
45    "${baseImpl}/long_wrapper.cpp",
46    "${baseImpl}/short_wrapper.cpp",
47    "${baseImpl}/string_wrapper.cpp",
48    "${baseImpl}/user_object_wrapper.cpp",
49    "${baseImpl}/zchar_wrapper.cpp",
50  ]
51  configs = [ ":base_config" ]
52  public_configs = [ ":base_public_config" ]
53  deps = [
54    "//third_party/jsoncpp:jsoncpp",
55    "//utils/native/base:utils",
56  ]
57
58  subsystem_name = "aafwk"
59  part_name = "aafwk_standard"
60}
61