1# Copyright (c) 2021-2023 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. 13import("//base/hiviewdfx/hiview/hiview.gni") 14import("//build/ohos.gni") 15 16config("hiview_core_config") { 17 visibility = [ "*:*" ] 18 include_dirs = [ 19 "include", 20 "param_update/include", 21 "$hiview_root/include", 22 "$hiview_base/utility/include", 23 ] 24 cflags_cc = [ "-D__HIVIEW_OHOS__" ] 25} 26 27ohos_source_set("hiview_core") { 28 part_name = "hiview" 29 public_configs = [ ":hiview_core_config" ] 30 configs = [ "//third_party/jsoncpp:jsoncpp_public_config" ] 31 32 sources = [ 33 "event_json_parser.cpp", 34 "flat_json_parser.cpp", 35 "hiview_platform.cpp", 36 "plugin_bundle.cpp", 37 "plugin_config.cpp", 38 ] 39 40 deps = [ 41 "$hiview_adapter/plugins/eventservice/service:sys_event_service_adapter", 42 "$hiview_base:hiviewbase", 43 "param_update:hiview_param_update", 44 "platform_config:hiviewplatform_config", 45 ] 46 47 external_deps = [ 48 "hilog:libhilog", 49 "hisysevent:libhisysevent", 50 "init:libbeget_proxy", 51 "init:libbegetutil", 52 "ipc:ipc_single", 53 ] 54} 55 56group("unittest") { 57 testonly = true 58 deps = [] 59} 60 61group("moduletest") { 62 testonly = true 63 deps = [] 64} 65