1# Copyright (c) 2021 Bestechnic (Shanghai) Co., Ltd. All rights reserved. 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 14declare_args() { 15 bes_fs_test = true 16 bes_histreamer_test = false 17 bes_ui_test = false 18 bes_ability_test = true 19 bes_wifi_test = true 20 bes_rpc_test = false 21 bes_dsoftbus_test = false 22} 23 24static_library("example") { 25 sources = [ 26 "app.cpp", 27 "example.c", 28 ] 29 defines = [] 30 deps = [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_static" ] 31 32 include_dirs = [ "//commonlibrary/utils_lite/include" ] 33 34 if (bes_histreamer_test) { 35 deps += [ "histreamer:histreamer_test" ] 36 defines += [ "HISTREAMER_TEST" ] 37 } 38 39 if (bes_fs_test) { 40 deps += [ "fs:fs_test" ] 41 defines += [ "FS_TEST" ] 42 include_dirs += [ "fs" ] 43 } 44 45 if (bes_ui_test) { 46 deps += [ "ui:ui_test" ] 47 defines += [ "UI_TEST" ] 48 include_dirs += [ "ui" ] 49 } else if (bes_ability_test) { 50 deps += [ "ability:ability_test" ] 51 defines += [ "ABILITY_TEST" ] 52 include_dirs += [ "ability" ] 53 } 54 55 if (bes_wifi_test) { 56 deps += [ "wifi:wifi_test" ] 57 defines += [ "WIFI_TEST" ] 58 } 59 60 if (bes_rpc_test) { 61 deps += [ "rpc:rpc_test" ] 62 defines += [ "RPC_TEST" ] 63 } 64 65 if (bes_dsoftbus_test) { 66 deps += [ "dsoftbus:dsoftbus_test" ] 67 defines += [ "DSOFTBUS_TEST" ] 68 } 69} 70