1# Copyright (c) 2021-2022 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. 13 14import("//base/hiviewdfx/hiview/hiview.gni") 15import("//build/ohos.gni") 16 17config("system_service_config") { 18 visibility = [ "*:*" ] 19 20 include_dirs = [ 21 "//third_party/bounds_checking_function/include", 22 "include", 23 ] 24} 25 26ohos_source_set("system_service") { 27 part_name = "hiview" 28 public_configs = [ ":system_service_config" ] 29 30 sources = [ 31 "parameter_ex.cpp", 32 "platform/ohos/parameter_ex.cpp", 33 ] 34 35 if (is_standard_system) { 36 external_deps = [ 37 "c_utils:utils", 38 "init:libbegetutil", 39 ] 40 } else { 41 external_deps = [ 42 "c_utils:utils", 43 "init_lite:libbegetutil", 44 ] 45 } 46} 47 48group("unittest") { 49 testonly = true 50 deps = [ "test:SystemServiceOhosUnitTest" ] 51} 52