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") 14import("//build/lite/config/test.gni") 15 16unittest("ai_test_common_door") { 17 output_extension = "bin" 18 output_dir = "$root_out_dir/test/unittest/ai" 19 ldflags = [ 20 "-lstdc++", 21 "-ldl", 22 ] 23 include_dirs = [ 24 "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog", 25 "//foundation/ai/ai_engine/interfaces", 26 "//foundation/ai/ai_engine/services/common", 27 "//third_party/googletest/googletest/include", 28 "//third_party/googletest/googletest/src", 29 ] 30 deps = [ 31 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 32 "//foundation/ai/ai_engine/services/common/platform/dl_operation:dlOperation", 33 "//foundation/ai/ai_engine/services/common/platform/event:event", 34 "//foundation/ai/ai_engine/services/common/platform/semaphore:semaphore", 35 "//foundation/ai/ai_engine/services/common/platform/threadpool:threadpool", 36 "//foundation/ai/ai_engine/services/common/platform/time:time", 37 "//foundation/ai/ai_engine/services/common/utils/encdec:encdec", 38 ] 39 sources = [ 40 "dl_operation/dl_operation_test.cpp", 41 "encdec/encdec_test.cpp", 42 "event/event_test.cpp", 43 "queuepool/queuepool_test.cpp", 44 "semaphore/semaphore_test.cpp", 45 "threadpool/thread_pool_test.cpp", 46 "time/time_test.cpp", 47 ] 48} 49 50group("common") { 51 deps = [ 52 ":ai_test_common_door", 53 "dl_operation:testDlOperationSo", 54 ] 55} 56