1# Copyright (c) 2024 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/test.gni") 15import("//foundation/multimedia/player_framework/config.gni") 16 17################################################################################################################## 18ohos_unittest("task_queue_unit_test") { 19 module_out_path = "player_framework/player_framework/services/utils" 20 21 cflags = [ 22 "-std=c++17", 23 "-fno-rtti", 24 "-fno-exceptions", 25 "-Wall", 26 "-fno-common", 27 "-fstack-protector-all", 28 "-Wshadow", 29 "-FPIC", 30 "-FS", 31 "-O2", 32 "-D_FORTIFY_SOURCE=2", 33 "-Wformat=2", 34 "-Wdate-time", 35 "-Dprivate=public", 36 "-Dprotected=public", 37 ] 38 39 include_dirs = [ 40 "$MEDIA_PLAYER_ROOT_DIR/interfaces/inner_api/native", 41 "$MEDIA_PLAYER_ROOT_DIR/services/services/engine_intf", 42 "$MEDIA_PLAYER_ROOT_DIR/services/utils/include", 43 ] 44 45 cflags_cc = cflags 46 47 sources = [ 48 "$MEDIA_PLAYER_ROOT_DIR/services/utils/task_queue.cpp", 49 "task_queue_unit_test.cpp", 50 ] 51 52 external_deps = [ 53 "access_token:libaccesstoken_sdk", 54 "access_token:libprivacy_sdk", 55 "av_codec:av_codec_client", 56 "bundle_framework:appexecfwk_base", 57 "bundle_framework:appexecfwk_core", 58 "c_utils:utils", 59 "graphic_surface:surface", 60 "hicollie:libhicollie", 61 "hilog:libhilog", 62 "hisysevent:libhisysevent", 63 "hitrace:hitrace_meter", 64 "hitrace:libhitracechain", 65 "init:libbegetutil", 66 "ipc:ipc_single", 67 "libxml2:libxml2", 68 "media_foundation:media_foundation", 69 "os_account:os_account_innerkits", 70 "qos_manager:qos", 71 "samgr:samgr_proxy", 72 ] 73} 74