1b0e7dd80Sopenharmony_ci# Copyright (C) 2023 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("//build/ohos.gni") 15b0e7dd80Sopenharmony_ci 16b0e7dd80Sopenharmony_ciohos_shared_library("hitracechain_c_wrapper") { 17b0e7dd80Sopenharmony_ci include_dirs = [ 18b0e7dd80Sopenharmony_ci "../../native", 19b0e7dd80Sopenharmony_ci "../c_wrapper/include", 20b0e7dd80Sopenharmony_ci "../../native/innerkits/include", 21b0e7dd80Sopenharmony_ci ] 22b0e7dd80Sopenharmony_ci 23b0e7dd80Sopenharmony_ci sources = [ "./source/hitracechain_c_wrapper.c" ] 24b0e7dd80Sopenharmony_ci 25b0e7dd80Sopenharmony_ci deps = [ "../../../interfaces/native/innerkits:libhitracechain" ] 26b0e7dd80Sopenharmony_ci 27b0e7dd80Sopenharmony_ci external_deps = [ "bounds_checking_function:libsec_shared" ] 28b0e7dd80Sopenharmony_ci if (defined(ohos_lite)) { 29b0e7dd80Sopenharmony_ci external_deps += [ "hilog_lite:hilog_lite" ] 30b0e7dd80Sopenharmony_ci } else { 31b0e7dd80Sopenharmony_ci external_deps += [ "hilog:libhilog" ] 32b0e7dd80Sopenharmony_ci } 33b0e7dd80Sopenharmony_ci version_script = "hitracechain_c_wrapper.map" 34b0e7dd80Sopenharmony_ci output_extension = "so" 35b0e7dd80Sopenharmony_ci 36b0e7dd80Sopenharmony_ci part_name = "hitrace" 37b0e7dd80Sopenharmony_ci subsystem_name = "hiviewdfx" 38b0e7dd80Sopenharmony_ci} 39