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 = false 20} 21 22static_library("example") { 23 sources = [ 24 "app.cpp", 25 "example.c", 26 ] 27 defines = [] 28 deps = [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_static" ] 29 30 include_dirs = [ 31 "//utils/native/lite/include", 32 ] 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