• 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")
15import("../../../../appexecfwk.gni")
16
17config("bundle_ndk_config") {
18  include_dirs = [ "include" ]
19}
20ohos_ndk_headers("bundle_header") {
21  dest_dir = "$ndk_headers_out_dir/bundle/"
22  sources = [ "./include/native_interface_bundle.h" ]
23}
24
25ohos_ndk_library("libbundle_ndk") {
26  ndk_description_file = "./libbundle.ndk.json"
27  min_compact_version = "9"
28  output_name = "bundle_ndk"
29}
30
31ohos_shared_library("bundle_ndk") {
32  public_configs = [ ":bundle_ndk_config" ]
33  include_dirs = [
34    "${common_path}/log/include",
35    "${inner_api_path}/appexecfwk_base/include",
36    "${inner_api_path}/appexecfwk_base/include/quick_fix",
37    "//third_party/json/include",
38  ]
39  defines = [
40    "APP_LOG_TAG = \"BundleMgrService\"",
41    "LOG_DOMAIN = 0xD001120",
42  ]
43  sources = [
44    "${inner_api_path}/appexecfwk_base/src/ability_info.cpp",
45    "${inner_api_path}/appexecfwk_base/src/application_info.cpp",
46    "${inner_api_path}/appexecfwk_base/src/compatible_application_info.cpp",
47    "${inner_api_path}/appexecfwk_base/src/extension_ability_info.cpp",
48    "${inner_api_path}/appexecfwk_base/src/module_info.cpp",
49    "${inner_api_path}/appexecfwk_base/src/quick_fix/app_quick_fix.cpp",
50    "${inner_api_path}/appexecfwk_base/src/quick_fix/appqf_info.cpp",
51    "${inner_api_path}/appexecfwk_base/src/quick_fix/hqf_info.cpp",
52    "src/bundle_mgr_proxy_native.cpp",
53    "src/native_interface_bundle.cpp",
54  ]
55
56  deps = [ "${common_path}:libappexecfwk_common" ]
57
58  external_deps = [
59    "c_utils:utils",
60    "hiviewdfx_hilog_native:libhilog",
61    "ipc:ipc_core",
62    "samgr:samgr_proxy",
63  ]
64  subsystem_name = "bundlemanager"
65  part_name = "bundle_framework"
66}
67