1# Copyright (c) 2021-2022 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("../../eventhandler.gni") 16import("inner_api_sources.gni") 17 18config("libeventhandler_config") { 19 include_dirs = [ 20 "${inner_api_path}", 21 "include", 22 ] 23} 24 25config("public_libeventhandler_config") { 26 include_dirs = [ "${inner_api_path}" ] 27} 28 29ohos_shared_library("libeventhandler") { 30 all_dependent_configs = [ ":libeventhandler_config" ] 31 cflags_cc = [] 32 sources = inner_api_sources 33 defines = event_handler_log_domain_defines 34 configs = [ ":libeventhandler_config" ] 35 36 public_configs = [ ":public_libeventhandler_config" ] 37 38 external_deps = [ 39 "hilog:libhilog", 40 "hitrace:libhitracechain", 41 ] 42 43 if (has_hichecker_native_part) { 44 cflags_cc += [ "-DHAS_HICHECKER_NATIVE_PART" ] 45 external_deps += [ "hichecker:libhichecker" ] 46 } 47 install_images = [ system_base_dir ] 48 subsystem_name = "notification" 49 innerapi_tags = [ 50 "platformsdk", 51 "chipsetsdk_indirect", 52 "sasdk", 53 ] 54 part_name = "eventhandler" 55} 56