• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2020 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.
13import("//build/lite/config/component/lite_component.gni")
14import("//build/lite/config/subsystem/aafwk/config.gni")
15
16lite_component("tools_lite") {
17  features = [ ":aa" ]
18}
19
20generate_notice_file("tools_lite_notice_file") {
21  module_name = "tools_lite"
22  module_source_dir_list = [
23    "//third_party/bounds_checking_function",
24    "//third_party/cJSON",
25  ]
26}
27
28executable("aa") {
29  sources = [
30    "src/ability_tool.cpp",
31    "src/main.cpp",
32  ]
33
34  cflags = [ "-Wall" ]
35  cflags_cc = cflags
36
37  ldflags = [
38    "-lstdc++",
39    "-lpthread",
40    "-ldl",
41  ]
42
43  deps = [
44    "${aafwk_lite_path}/frameworks/abilitymgr_lite:aafwk_abilityManager_lite",
45    "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle",
46    "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
47    "//build/lite/config/component/cJSON:cjson_shared",
48    "//foundation/communication/ipc_lite:liteipc_adapter",
49    "//foundation/distributedschedule/samgr_lite/samgr:samgr",
50    "//utils/native/lite/kv_store:kv_store",
51  ]
52
53  if (enable_ohos_appexecfwk_feature_ability == true) {
54    deps += [
55      "//foundation/graphic/surface",
56      "//foundation/graphic/ui:lite_ui",
57      "//foundation/graphic/utils:lite_graphic_utils",
58    ]
59  }
60  include_dirs = [
61    "include",
62    "${aafwk_lite_path}/interfaces/kits/ability_lite",
63    "${aafwk_lite_path}/interfaces/kits/want_lite",
64    "${aafwk_lite_path}/interfaces/innerkits/abilitymgr_lite",
65    "${aafwk_lite_path}/frameworks/abilitymgr_lite/include",
66    "${aafwk_lite_path}/frameworks/want_lite/include",
67    "${appexecfwk_lite_path}/utils/bundle_lite",
68    "${appexecfwk_lite_path}/interfaces/kits/bundle_lite",
69    "//foundation/communication/ipc_lite/interfaces/kits",
70    "//foundation/distributedschedule/samgr_lite/interfaces/kits/registry",
71    "//foundation/distributedschedule/samgr_lite/interfaces/kits/samgr",
72    "//third_party/bounds_checking_function/include",
73    "//third_party/cJSON",
74    "//utils/native/lite/include",
75  ]
76
77  defines = [ "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER" ]
78  output_dir = "$root_out_dir/dev_tools"
79}
80