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("//base/notification/ans_standard/notification.gni") 15import("//build/ohos.gni") 16 17group("anm_target") { 18 deps = [ ":anm" ] 19} 20 21ohos_executable("anm") { 22 include_dirs = [ "${tools_path}/dump/include" ] 23 24 sources = [ 25 "src/main.cpp", 26 "src/notification_shell_command.cpp", 27 "src/shell_command.cpp", 28 ] 29 30 cflags = [] 31 if (target_cpu == "arm") { 32 cflags += [ "-DBINDER_IPC_32BIT" ] 33 } 34 35 deps = [ 36 "${core_path}:ans_core", 37 "//utils/native/base:utils", 38 ] 39 40 configs = [ 41 "${core_path}:public_ans_core_config", 42 "//foundation/aafwk/standard/frameworks/kits/wantagent:wantagent_innerkits_public_config", 43 ] 44 45 defines = [] 46 if (distributed_notification_supported) { 47 defines += [ "DISTRIBUTED_NOTIFICATION_SUPPORTED" ] 48 } 49 50 external_deps = [ 51 "hiviewdfx_hilog_native:libhilog", 52 "multimedia_image_standard:image_native", 53 "native_appdatamgr:native_rdb", 54 ] 55 external_deps += ans_standard_external_deps 56 57 install_enable = true 58 part_name = "ans_standard" 59 subsystem_name = "notification" 60} 61