• 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")
15import("//foundation/ability/ability_runtime/ability_runtime.gni")
16
17config("aakit_mock_config") {
18  include_dirs = [
19    "${ability_runtime_test_path}/mock/services_abilitymgr_test/libs/aakit/include",
20    "${ability_runtime_innerkits_path}/ability_manager/include",
21    "${ability_runtime_services_path}/abilitymgr/include",
22    "${ability_runtime_innerkits_path}/app_manager/include",
23    "${ability_runtime_path}/interfaces/kits/native/ability/native/",
24    "include/",
25    "//third_party/jsoncpp/include",
26    "${ability_runtime_services_path}/common/include/",
27  ]
28}
29
30ohos_source_set("aakit_mock") {
31  sources = [
32    "src/ability_scheduler.cpp",
33    "src/mock_ability_connect_callback.cpp",
34  ]
35
36  configs = [ ":aakit_mock_config" ]
37  cflags = []
38  if (target_cpu == "arm") {
39    cflags += [ "-DBINDER_IPC_32BIT" ]
40  }
41  deps = [
42    "${ability_runtime_innerkits_path}/app_manager:app_manager",
43    "${distributedschedule_path}/safwk/interfaces/innerkits/safwk:system_ability_fwk",
44    "${distributedschedule_path}/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
45    "//third_party/jsoncpp:jsoncpp",
46  ]
47  external_deps = [
48    "ability_base:base",
49    "ability_base:configuration",
50    "ability_base:session_info",
51    "ability_base:want",
52    "bundle_framework:appexecfwk_base",
53    "bundle_framework:appexecfwk_core",
54    "c_utils:utils",
55    "ffrt:libffrt",
56    "hilog:libhilog",
57    "ipc:ipc_core",
58  ]
59
60  subsystem_name = "ability"
61  part_name = "ability_runtime"
62}
63