• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2020-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/lite/config/subsystem/aafwk/config.gni")
15import("//test/xts/tools/lite/build/suite_lite.gni")
16
17hcpptest_suite("ActsAbilityMgrTest") {
18  suite_name = "acts"
19  if (enable_ohos_appexecfwk_feature_ability == true) {
20    sources = [ "src/AbilityMgrTest.cpp" ]
21  } else {
22    sources = [ "src/AbilityMgrTest2.cpp" ]
23  }
24
25  deps = [
26    "${aafwk_lite_path}/frameworks/ability_lite:aafwk_abilitykit_lite",
27    "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle",
28    "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
29    "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
30    "//foundation/distributeddatamgr/kv_store/interfaces/inner_api/kv_store:kv_store",
31    "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
32  ]
33  if (enable_ohos_appexecfwk_feature_ability == true) {
34    deps += [
35      "//foundation/arkui/ui_lite:ui_lite",
36      "//foundation/graphic/graphic_utils_lite:utils_lite",
37      "//foundation/graphic/surface_lite",
38    ]
39  }
40
41  include_dirs = [
42    "src",
43    "//third_party/googletest/googletest/include",
44    "${aafwk_lite_path}/interfaces/innerkits/abilitymgr_lite",
45    "${aafwk_lite_path}/interfaces/kits/ability_lite",
46    "${aafwk_lite_path}/interfaces/kits/want_lite",
47    "${aafwk_lite_path}/services/abilitymgr_lite/include",
48    "${aafwk_lite_path}/frameworks/abilitymgr_lite/include",
49    "${appexecfwk_lite_path}/interfaces/kits/bundle_lite/",
50    "${appexecfwk_lite_path}/utils/bundle_lite",
51    "${appexecfwk_lite_path}/interfaces/innerkits/bundlemgr_lite/",
52    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry",
53    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr",
54    "//third_party/bounds_checking_function/include",
55    "//third_party/cJSON",
56    "//commonlibrary/utils_lite/include",
57    "${appexecfwk_lite_path}/interfaces/innerkits/bundlemgr_lite",
58    "//foundation/arkui/ui_lite/interfaces/kits",
59    "//foundation/graphic/graphic_utils_lite/interfaces/innerkits",
60    "//foundation/graphic/graphic_utils_lite/interfaces/kits",
61  ]
62  cflags = [ "-Wno-error" ]
63  defines = [
64    "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER",
65    "ABILITY_WINDOW_SUPPORT",
66  ]
67  ldflags = [
68    "-lstdc++",
69    "-lm",
70    "-lpthread",
71    "-ldl",
72  ]
73}
74