10485dae0Sopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd. 20485dae0Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 30485dae0Sopenharmony_ci# you may not use this file except in compliance with the License. 40485dae0Sopenharmony_ci# You may obtain a copy of the License at 50485dae0Sopenharmony_ci# 60485dae0Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 70485dae0Sopenharmony_ci# 80485dae0Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 90485dae0Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 100485dae0Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 110485dae0Sopenharmony_ci# See the License for the specific language governing permissions and 120485dae0Sopenharmony_ci# limitations under the License. 130485dae0Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni") 140485dae0Sopenharmony_ci 150485dae0Sopenharmony_cistatic_library("testDeathCallbackLibrary") { 160485dae0Sopenharmony_ci sources = [ "death_callback_test.cpp" ] 170485dae0Sopenharmony_ci cflags_cc = [ "-fexceptions" ] 180485dae0Sopenharmony_ci include_dirs = [ 190485dae0Sopenharmony_ci "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog", 200485dae0Sopenharmony_ci "//foundation/ai/ai_engine/interfaces", 210485dae0Sopenharmony_ci "//foundation/ai/ai_engine/services/client", 220485dae0Sopenharmony_ci "//foundation/ai/ai_engine/services/common", 230485dae0Sopenharmony_ci "//foundation/ai/ai_engine/test/utils", 240485dae0Sopenharmony_ci "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include", 250485dae0Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/interfaces/innerkits/registry", 260485dae0Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/interfaces/innerkits/samgr", 270485dae0Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry", 280485dae0Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", 290485dae0Sopenharmony_ci "//third_party/bounds_checking_function/include", 300485dae0Sopenharmony_ci "//commonlibrary/utils_lite/include", 310485dae0Sopenharmony_ci ] 320485dae0Sopenharmony_ci} 330485dae0Sopenharmony_ci 340485dae0Sopenharmony_cilite_component("testDeathCallback") { 350485dae0Sopenharmony_ci target_type = "executable" 360485dae0Sopenharmony_ci output_dir = "$root_out_dir/test/unittest/ai" 370485dae0Sopenharmony_ci features = [ ":testDeathCallbackLibrary" ] 380485dae0Sopenharmony_ci ldflags = [ "-lstdc++" ] 390485dae0Sopenharmony_ci deps = [ 400485dae0Sopenharmony_ci "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 410485dae0Sopenharmony_ci "//foundation/ai/ai_engine/services/client:ai_client", 420485dae0Sopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 430485dae0Sopenharmony_ci ] 440485dae0Sopenharmony_ci} 45