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/ces_standard/event.gni") 15import("//build/ohos.gni") 16 17config("tools_cem_config") { 18 include_dirs = [ 19 "//utils/native/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 defines = [ 39 "EVENT_LOG_TAG = \"CesFwk\"", 40 "LOG_DOMAIN = 0xD008800", 41 ] 42 43 deps = [ 44 "${ces_common_path}:libevent_common", 45 "${ces_core_path}:cesfwk_core", 46 "${ces_native_path}:cesfwk_innerkits", 47 "//utils/native/base:utils", 48 ] 49 50 external_deps = [ 51 "ability_base:want", 52 "eventhandler:libeventhandler", 53 "hiviewdfx_hilog_native:libhilog", 54 "ipc:ipc_core", 55 ] 56 subsystem_name = "notification" 57 part_name = "ces_standard" 58} 59 60ohos_executable("cem") { 61 deps = [ ":tools_cem_source_set" ] 62 63 install_enable = true 64 65 subsystem_name = "notification" 66 part_name = "ces_standard" 67} 68 69group("tools_cem") { 70 deps = [ ":cem" ] 71} 72