# Copyright (c) 2021-2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//base/powermgr/display_manager/displaymgr.gni") import("//base/powermgr/power_manager/powermgr.gni") config("displaymgr_private_config") { include_dirs = [ "${powermgr_utils_path}/setting/include", "${powermgr_utils_path}/native/include", "//base/hiviewdfx/hicollie/interfaces/native/innerkits/include/xcollie", "//base/powermgr/display_manager/interfaces/innerkits/native/include", ] } config("displaymgr_public_config") { include_dirs = [ "native/include", "zidl/include", ] } ohos_shared_library("displaymgrservice") { sources = [ "native/src/display_auto_brightness.cpp", "native/src/display_event_handler.cpp", "native/src/display_param_helper.cpp", "native/src/display_power_mgr_service.cpp", "native/src/display_system_ability.cpp", "native/src/gradual_animator.cpp", "native/src/screen_action.cpp", "native/src/screen_controller.cpp", "zidl/src/display_power_callback_proxy.cpp", "zidl/src/display_power_mgr_stub.cpp", ] configs = [ "${displaymgr_utils_path}:utils_config", ":displaymgr_private_config", ] public_configs = [ ":displaymgr_public_config" ] deps = [ "${powermgr_utils_path}/param:power_sysparam", "${powermgr_utils_path}/permission:power_permission", "${powermgr_utils_path}/setting:power_setting", ] external_deps = [ "ability_runtime:ability_manager", "c_utils:utils", "data_share:datashare_consumer", "eventhandler:libeventhandler", "hicollie_native:libhicollie", "hisysevent_native:libhisysevent", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", "multimedia_image_framework:image_native", "safwk:system_ability_fwk", "sensor:sensor_interface_native", "window_manager:libdm", ] part_name = "${displaymgr_part_name}" } ohos_shared_library("displaymgr_stub") { sources = [ "zidl/src/display_power_mgr_stub.cpp" ] configs = [ "${displaymgr_utils_path}:utils_config", ":displaymgr_private_config", ] public_configs = [ ":displaymgr_public_config" ] external_deps = [ "c_utils:utils", "hicollie_native:libhicollie", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", "safwk:system_ability_fwk", ] part_name = "${displaymgr_part_name}" }