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# 14 15import("//test/xts/tools/lite/build/suite_lite.gni") 16 17hcpptest_suite("ActsMediaAudioTest") { 18 suite_name = "acts" 19 sources = [ "src/ActsMediaAudioTest.cpp" ] 20 ldflags = [ "-lstdc++" ] 21 ldflags += [ "-lm" ] 22 if (ohos_kernel_type == "linux") { 23 ldflags += [ "-lpthread" ] 24 } 25 ldflags += [ "-Wl,-rpath-link=$ohos_root_path/$root_out_dir" ] 26 27 include_dirs = [ 28 "src", 29 "//test/xts/acts/multimedia_lite/utils_posix/common/include", 30 "//foundation/multimedia/audio_lite/frameworks/audio_encoder/include", 31 "//foundation/multimedia/audio_lite/frameworks/audio_source/include", 32 "//foundation/multimedia/audio_lite/interfaces/kits", 33 "//foundation/multimedia/utils/lite/include", 34 "//drivers/peripheral/audio/interfaces/include", 35 "//drivers/peripheral/codec/interfaces/include", 36 "//drivers/peripheral/base", 37 "//drivers/peripheral/display/interfaces/include", 38 "//drivers/peripheral/format/interfaces/include", 39 "//foundation/multimedia/audio_lite/test/unittest", 40 "//foundation/multimedia/utils/lite/interfaces/kits", 41 ] 42 43 deps = [ 44 "//foundation/multimedia/audio_lite/frameworks:audio_capturer_lite", 45 "//foundation/multimedia/utils/lite:media_common", 46 "//third_party/bounds_checking_function:libsec_shared", 47 ] 48 49 cflags = [ "-Wno-error" ] 50} 51