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