127ba495aSopenharmony_ci# Copyright (c) 2020 Huawei Device Co., Ltd. 227ba495aSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 327ba495aSopenharmony_ci# you may not use this file except in compliance with the License. 427ba495aSopenharmony_ci# You may obtain a copy of the License at 527ba495aSopenharmony_ci# 627ba495aSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 727ba495aSopenharmony_ci# 827ba495aSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 927ba495aSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1027ba495aSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1127ba495aSopenharmony_ci# See the License for the specific language governing permissions and 1227ba495aSopenharmony_ci# limitations under the License. 1327ba495aSopenharmony_ci 1427ba495aSopenharmony_cideclare_args() { 1527ba495aSopenharmony_ci ohos_hiviewdfx_hievent_lite_fault_file_size = 1024 1627ba495aSopenharmony_ci ohos_hiviewdfx_hievent_lite_ue_file_size = 1024 1727ba495aSopenharmony_ci ohos_hiviewdfx_hievent_lite_stat_file_size = 1024 1827ba495aSopenharmony_ci ohos_hiviewdfx_hievent_lite_cache_size = 256 1927ba495aSopenharmony_ci ohos_hiviewdfx_hievent_lite_file_buffer_size = 128 2027ba495aSopenharmony_ci hievent_lite_customize_implementation = false 2127ba495aSopenharmony_ci} 2227ba495aSopenharmony_ci 2327ba495aSopenharmony_cistatic_library("hievent_lite_static") { 2427ba495aSopenharmony_ci sources = [ 2527ba495aSopenharmony_ci "frameworks/hiview_event.c", 2627ba495aSopenharmony_ci "frameworks/hiview_output_event.c", 2727ba495aSopenharmony_ci ] 2827ba495aSopenharmony_ci defines = [ 2927ba495aSopenharmony_ci "FAULT_EVENT_FILE_SIZE=$ohos_hiviewdfx_hievent_lite_fault_file_size", 3027ba495aSopenharmony_ci "UE_EVENT_FILE_SIZE=$ohos_hiviewdfx_hievent_lite_ue_file_size", 3127ba495aSopenharmony_ci "STAT_EVENT_FILE_SIZE=$ohos_hiviewdfx_hievent_lite_stat_file_size", 3227ba495aSopenharmony_ci "EVENT_CACHE_SIZE=$ohos_hiviewdfx_hievent_lite_cache_size", 3327ba495aSopenharmony_ci "HIVIEW_HIEVENT_FILE_BUF_SIZE=$ohos_hiviewdfx_hievent_lite_file_buffer_size", 3427ba495aSopenharmony_ci ] 3527ba495aSopenharmony_ci include_dirs = [ 3627ba495aSopenharmony_ci "//base/hiviewdfx/hievent_lite/interfaces/native/innerkits", 3727ba495aSopenharmony_ci "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite", 3827ba495aSopenharmony_ci "//base/hiviewdfx/hiview_lite", 3927ba495aSopenharmony_ci "//commonlibrary/utils_lite/include", 4027ba495aSopenharmony_ci "//third_party/bounds_checking_function/include", 4127ba495aSopenharmony_ci "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", 4227ba495aSopenharmony_ci ] 4327ba495aSopenharmony_ci public_configs = [ "//base/hiviewdfx/hiview_lite:hiview_lite_config" ] 4427ba495aSopenharmony_ci deps = [ "//base/hiviewdfx/hiview_lite" ] 4527ba495aSopenharmony_ci} 4627ba495aSopenharmony_ci 4727ba495aSopenharmony_cigroup("hievent_lite") { 4827ba495aSopenharmony_ci if (hievent_lite_customize_implementation) { 4927ba495aSopenharmony_ci public_configs = [ "//base/hiviewdfx/hiview_lite:hiview_lite_config" ] 5027ba495aSopenharmony_ci } else { 5127ba495aSopenharmony_ci public_deps = [ ":hievent_lite_static" ] 5227ba495aSopenharmony_ci } 5327ba495aSopenharmony_ci} 54