1b0e7dd80Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 2b0e7dd80Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3b0e7dd80Sopenharmony_ci# you may not use this file except in compliance with the License. 4b0e7dd80Sopenharmony_ci# You may obtain a copy of the License at 5b0e7dd80Sopenharmony_ci# 6b0e7dd80Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7b0e7dd80Sopenharmony_ci# 8b0e7dd80Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9b0e7dd80Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10b0e7dd80Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11b0e7dd80Sopenharmony_ci# See the License for the specific language governing permissions and 12b0e7dd80Sopenharmony_ci# limitations under the License. 13b0e7dd80Sopenharmony_ci 14b0e7dd80Sopenharmony_ciimport("//base/hiviewdfx/hitrace/hitrace.gni") 15b0e7dd80Sopenharmony_ciimport("//build/ohos.gni") 16b0e7dd80Sopenharmony_ci 17b0e7dd80Sopenharmony_ciohos_shared_library("cj_hitracechain_ffi") { 18b0e7dd80Sopenharmony_ci include_dirs = [ 19b0e7dd80Sopenharmony_ci "include", 20b0e7dd80Sopenharmony_ci "$hitrace_interfaces_path/native/innerkits/include/hitrace", 21b0e7dd80Sopenharmony_ci "$hitrace_frameworks_path/include", 22b0e7dd80Sopenharmony_ci ] 23b0e7dd80Sopenharmony_ci 24b0e7dd80Sopenharmony_ci sources = [ 25b0e7dd80Sopenharmony_ci "src/hitracechain_ffi.cpp", 26b0e7dd80Sopenharmony_ci "src/hitracechain_impl.cpp", 27b0e7dd80Sopenharmony_ci ] 28b0e7dd80Sopenharmony_ci 29b0e7dd80Sopenharmony_ci deps = [ "$hitrace_interfaces_path/native/innerkits:libhitracechain" ] 30b0e7dd80Sopenharmony_ci 31b0e7dd80Sopenharmony_ci external_deps = [ 32b0e7dd80Sopenharmony_ci "bounds_checking_function:libsec_shared", 33b0e7dd80Sopenharmony_ci "napi:cj_bind_ffi", 34b0e7dd80Sopenharmony_ci ] 35b0e7dd80Sopenharmony_ci 36b0e7dd80Sopenharmony_ci innerapi_tags = [ "platformsdk" ] 37b0e7dd80Sopenharmony_ci 38b0e7dd80Sopenharmony_ci part_name = "hitrace" 39b0e7dd80Sopenharmony_ci subsystem_name = "hiviewdfx" 40b0e7dd80Sopenharmony_ci} 41b0e7dd80Sopenharmony_ci 42b0e7dd80Sopenharmony_ciohos_shared_library("cj_hitracemeter_ffi") { 43b0e7dd80Sopenharmony_ci include_dirs = [ 44b0e7dd80Sopenharmony_ci "include", 45b0e7dd80Sopenharmony_ci "$hitrace_frameworks_path/include", 46b0e7dd80Sopenharmony_ci ] 47b0e7dd80Sopenharmony_ci sources = [ 48b0e7dd80Sopenharmony_ci "src/hitracemeter_ffi.cpp", 49b0e7dd80Sopenharmony_ci "src/hitracemeter_impl.cpp", 50b0e7dd80Sopenharmony_ci ] 51b0e7dd80Sopenharmony_ci 52b0e7dd80Sopenharmony_ci deps = [ "$hitrace_interfaces_path/native/innerkits:hitrace_meter" ] 53b0e7dd80Sopenharmony_ci 54b0e7dd80Sopenharmony_ci external_deps = [ 55b0e7dd80Sopenharmony_ci "bounds_checking_function:libsec_shared", 56b0e7dd80Sopenharmony_ci "napi:cj_bind_ffi", 57b0e7dd80Sopenharmony_ci ] 58b0e7dd80Sopenharmony_ci 59b0e7dd80Sopenharmony_ci innerapi_tags = [ "platformsdk" ] 60b0e7dd80Sopenharmony_ci 61b0e7dd80Sopenharmony_ci subsystem_name = "hiviewdfx" 62b0e7dd80Sopenharmony_ci part_name = "hitrace" 63b0e7dd80Sopenharmony_ci} 64