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. 13import("//build/lite/config/component/lite_component.gni") 14 15static_library("testDeathCallbackLibrary") { 16 sources = [ "death_callback_test.cpp" ] 17 cflags_cc = [ "-fexceptions" ] 18 include_dirs = [ 19 "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog", 20 "//foundation/ai/ai_engine/interfaces", 21 "//foundation/ai/ai_engine/services/client", 22 "//foundation/ai/ai_engine/services/common", 23 "//foundation/ai/ai_engine/test/utils", 24 "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include", 25 "//foundation/systemabilitymgr/samgr_lite/interfaces/innerkits/registry", 26 "//foundation/systemabilitymgr/samgr_lite/interfaces/innerkits/samgr", 27 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry", 28 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", 29 "//third_party/bounds_checking_function/include", 30 "//commonlibrary/utils_lite/include", 31 ] 32} 33 34lite_component("testDeathCallback") { 35 target_type = "executable" 36 output_dir = "$root_out_dir/test/unittest/ai" 37 features = [ ":testDeathCallbackLibrary" ] 38 ldflags = [ "-lstdc++" ] 39 deps = [ 40 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 41 "//foundation/ai/ai_engine/services/client:ai_client", 42 "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 43 ] 44} 45