• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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
16group("common_target") {
17  deps = [ ":libappexecfwk_common" ]
18}
19
20config("appexecfwk_common_config") {
21  include_dirs = [
22    "log/include",
23    "utils/include",
24  ]
25}
26
27config("bundle_all_dependent_config") {
28  include_dirs = [ "log/include" ]
29}
30
31ohos_shared_library("libappexecfwk_common") {
32  sources = [
33    "log/src/app_log_wrapper.cpp",
34    "utils/src/bundle_file_util.cpp",
35  ]
36
37  defines = [
38    "APP_LOG_TAG = \"BundleMgrService\"",
39    "LOG_DOMAIN = 0xD001120",
40  ]
41
42  public_configs = [
43    ":appexecfwk_common_config",
44    "//commonlibrary/c_utils/base:utils_config",
45  ]
46
47  all_dependent_configs = [ ":bundle_all_dependent_config" ]
48
49  external_deps = [
50    "c_utils:utils",
51    "hiviewdfx_hilog_native:libhilog",
52  ]
53
54  subsystem_name = "bundlemanager"
55  part_name = "bundle_framework"
56}
57