1# Copyright (C) 2022 Huawei Technologies Co., Ltd. 2# Licensed under the Mulan PSL v2. 3# You can use this software according to the terms and conditions of the Mulan PSL v2. 4# You may obtain a copy of Mulan PSL v2 at: 5# http://license.coscl.org.cn/MulanPSL2 6# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR 7# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR 8# PURPOSE. 9# See the Mulan PSL v2 for more details. 10 11import("//build/ohos.gni") 12import("//build/ohos_var.gni") 13 14ohos_executable("tlogcat") { 15 part_name = "tee_client" 16 subsystem_name = "tee" 17 18 defines = [ 19 "TEE_LOG_PATH_BASE=\"/data/log\"", 20 "CONFIG_TLOGCAT_TAG", 21 "CONFIG_TEE_PRIVATE_LOGFILE", 22 "ENABLE_FDSAN_CHECK", 23 ] 24 25 sources = [ 26 "../../../../frameworks/tee_file/tee_file.c", 27 "../../src/proc_tag.c", 28 "../../src/sys_hilog_cfg.c", 29 "../../src/tarzip.c", 30 "../../src/tlogcat.c", 31 ] 32 33 include_dirs = [ 34 "../../include", 35 "../../../../frameworks/include", 36 "../../../../frameworks/include/standard", 37 "../../../../interfaces/inner_api", 38 ] 39 40 external_deps = [ 41 "c_utils:utils", 42 "hilog:libhilog", 43 "hilog:libhilog", 44 "zlib:libz", 45 ] 46} 47