1# Copyright (C) 2021 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("//build/ohos.gni") 15import("//developtools/hiperf/hiperf.gni") 16 17config("hiperf_client_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "include", 21 "${hiperf_path}/include", 22 ] 23} 24 25ohos_shared_library("hiperf_client") { 26 install_enable = true 27 public_configs = [ ":hiperf_client_config" ] 28 sources = [ "src/hiperf_client.cpp" ] 29 defines = [] 30 if (is_linux) { 31 defines += [ "CONFIG_NO_HILOG" ] 32 } else { 33 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 34 } 35 36 install_enable = false 37 subsystem_name = "developtools" 38 part_name = "hiperf" 39} 40 41ohos_static_library("hiperf_client_static") { 42 public_configs = [ ":hiperf_client_config" ] 43 sources = [ "src/hiperf_client.cpp" ] 44 defines = [] 45 if (is_linux) { 46 defines += [ "CONFIG_NO_HILOG" ] 47 } else { 48 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 49 } 50 51 subsystem_name = "developtools" 52 part_name = "hiperf" 53} 54