1209bc2fbSopenharmony_ci# Copyright (c) 2024 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("//build/ohos.gni") 15209bc2fbSopenharmony_ci 16209bc2fbSopenharmony_ciohos_shared_library("ohhicollie") { 17209bc2fbSopenharmony_ci include_dirs = [ 18209bc2fbSopenharmony_ci "include", 19209bc2fbSopenharmony_ci "../native/innerkits/include/xcollie", 20209bc2fbSopenharmony_ci "../../frameworks/native", 21209bc2fbSopenharmony_ci ] 22209bc2fbSopenharmony_ci sources = [ 23209bc2fbSopenharmony_ci "hicollie.cpp", 24209bc2fbSopenharmony_ci "report_data.cpp", 25209bc2fbSopenharmony_ci ] 26209bc2fbSopenharmony_ci 27209bc2fbSopenharmony_ci deps = [ "../native/innerkits:libhicollie" ] 28209bc2fbSopenharmony_ci 29209bc2fbSopenharmony_ci external_deps = [ 30209bc2fbSopenharmony_ci "c_utils:utils", 31209bc2fbSopenharmony_ci "hilog:libhilog", 32209bc2fbSopenharmony_ci "ipc:ipc_core", 33209bc2fbSopenharmony_ci "samgr:samgr_proxy", 34209bc2fbSopenharmony_ci ] 35209bc2fbSopenharmony_ci defines = [] 36209bc2fbSopenharmony_ci if (defined(global_parts_info) && 37209bc2fbSopenharmony_ci defined(global_parts_info.notification_eventhandler)) { 38209bc2fbSopenharmony_ci external_deps += [ "eventhandler:libeventhandler" ] 39209bc2fbSopenharmony_ci } 40209bc2fbSopenharmony_ci innerapi_tags = [ "ndk" ] 41209bc2fbSopenharmony_ci output_extension = "so" 42209bc2fbSopenharmony_ci part_name = "hicollie" 43209bc2fbSopenharmony_ci subsystem_name = "hiviewdfx" 44209bc2fbSopenharmony_ci version_script = "libohhicollie.map" 45209bc2fbSopenharmony_ci} 46