1# Copyright (c) 2021 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/common_event_service/event.gni") 15import("//build/ohos.gni") 16 17config("tools_cem_config") { 18 include_dirs = [ 19 "//commonlibrary/c_utils/base/include", 20 "include", 21 ] 22} 23 24ohos_source_set("tools_cem_source_set") { 25 public_configs = [ ":tools_cem_config" ] 26 27 sources = [ 28 "src/common_event_command.cpp", 29 "src/main.cpp", 30 "src/shell_command.cpp", 31 ] 32 33 cflags = [] 34 if (target_cpu == "arm") { 35 cflags += [ "-DBINDER_IPC_32BIT" ] 36 } 37 38 deps = [ 39 "${ces_common_path}:libevent_common", 40 "${ces_core_path}:cesfwk_core", 41 "${ces_native_path}:cesfwk_innerkits", 42 ] 43 44 external_deps = [ 45 "ability_base:want", 46 "c_utils:utils", 47 "eventhandler:libeventhandler", 48 "hiviewdfx_hilog_native:libhilog", 49 "ipc:ipc_core", 50 ] 51 subsystem_name = "notification" 52 part_name = "common_event_service" 53} 54 55ohos_executable("cem") { 56 deps = [ ":tools_cem_source_set" ] 57 58 install_enable = true 59 60 subsystem_name = "notification" 61 part_name = "common_event_service" 62} 63 64group("tools_cem") { 65 deps = [ ":cem" ] 66} 67