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/bytrace_standard/bytrace.gni") 16 17ohos_shared_library("bytrace") { 18 sources = [ 19 "bytrace.cpp", 20 "declare_napi.cpp", 21 ] 22 deps = [ 23 "${innerkits_path}/native:bytrace_core", 24 "//foundation/ace/napi:ace_napi", 25 ] 26 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 27 28 relative_install_dir = "module" 29 30 subsystem_name = "developtools" 31 part_name = "bytrace_standard" 32} 33 34ohos_shared_library("hitracemeter_napi") { 35 sources = [ 36 "declare_napi.cpp", 37 "hitracemeter.cpp", 38 ] 39 deps = [ 40 "${innerkits_path}/native:bytrace_core", 41 "//foundation/ace/napi:ace_napi", 42 ] 43 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 44 45 relative_install_dir = "module" 46 47 subsystem_name = "developtools" 48 part_name = "bytrace_standard" 49} 50