1209bc2fbSopenharmony_ci# Copyright (c) 2021-2022 Huawei Device Co., Ltd. 2209bc2fbSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3209bc2fbSopenharmony_ci# you may not use this file except in compliance with the License. 4209bc2fbSopenharmony_ci# You may obtain a copy of the License at 5209bc2fbSopenharmony_ci# 6209bc2fbSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7209bc2fbSopenharmony_ci# 8209bc2fbSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9209bc2fbSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10209bc2fbSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11209bc2fbSopenharmony_ci# See the License for the specific language governing permissions and 12209bc2fbSopenharmony_ci# limitations under the License. 13209bc2fbSopenharmony_ci 14209bc2fbSopenharmony_ciimport("//base/hiviewdfx/hicollie/hicollie.gni") 15209bc2fbSopenharmony_ciimport("//build/ohos.gni") 16209bc2fbSopenharmony_ci 17209bc2fbSopenharmony_ciohos_shared_library("libthread_sampler") { 18209bc2fbSopenharmony_ci sources = [ 19209bc2fbSopenharmony_ci "sample_stack_printer.cpp", 20209bc2fbSopenharmony_ci "thread_sampler.cpp", 21209bc2fbSopenharmony_ci "thread_sampler_api.cpp", 22209bc2fbSopenharmony_ci "thread_sampler_utils.cpp", 23209bc2fbSopenharmony_ci ] 24209bc2fbSopenharmony_ci include_dirs = [ "${hicollie_libthread_sampler}/include" ] 25209bc2fbSopenharmony_ci 26209bc2fbSopenharmony_ci external_deps = [ 27209bc2fbSopenharmony_ci "c_utils:utils", 28209bc2fbSopenharmony_ci "faultloggerd:libasync_stack", 29209bc2fbSopenharmony_ci "faultloggerd:libunwinder", 30209bc2fbSopenharmony_ci "hilog:libhilog", 31209bc2fbSopenharmony_ci ] 32209bc2fbSopenharmony_ci 33209bc2fbSopenharmony_ci defines = [] 34209bc2fbSopenharmony_ci 35209bc2fbSopenharmony_ci innerapi_tags = [ 36209bc2fbSopenharmony_ci "chipsetsdk_indirect", 37209bc2fbSopenharmony_ci "platformsdk_indirect", 38209bc2fbSopenharmony_ci ] 39209bc2fbSopenharmony_ci 40209bc2fbSopenharmony_ci part_name = "hicollie" 41209bc2fbSopenharmony_ci subsystem_name = "hiviewdfx" 42209bc2fbSopenharmony_ci version_script = "libthread_sampler.map" 43209bc2fbSopenharmony_ci} 44