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/aafwk/standard/aafwk.gni") 16 17config("aakit_mock_config") { 18 include_dirs = [ 19 "//foundation/aafwk/standard/services/abilitymgr/test/mock/libs/aakit/include", 20 "//foundation/aafwk/standard/interfaces/innerkits/ability_manager/include", 21 "//foundation/aafwk/standard/services/abilitymgr/include", 22 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base/include", 23 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core/include", 24 "//foundation/aafwk/standard/frameworks/kits/ability/native/include/", 25 "include/", 26 "//third_party/jsoncpp/include", 27 "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include/", 28 "//foundation/aafwk/standard/services/common/include/", 29 ] 30} 31 32ohos_source_set("aakit_mock") { 33 sources = [ 34 "src/ability_scheduler.cpp", 35 "src/mock_ability_connect_callback.cpp", 36 ] 37 38 configs = [ ":aakit_mock_config" ] 39 cflags = [] 40 if (target_cpu == "arm") { 41 cflags += [ "-DBINDER_IPC_32BIT" ] 42 } 43 deps = [ 44 "${innerkits_path}/want:want", 45 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base", 46 "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler", 47 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", 48 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 49 "//third_party/jsoncpp:jsoncpp", 50 "//utils/native/base:utils", 51 ] 52 external_deps = [ 53 "hiviewdfx_hilog_native:libhilog", 54 "ipc:ipc_core", 55 ] 56} 57