mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-06-30 21:47:58 -04:00
dbb22ec1a0
Merge pull request !1287 from huangxiaolinabc123/803
91 lines
2.6 KiB
Plaintext
91 lines
2.6 KiB
Plaintext
# Copyright (c) 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("//build/ohos.gni")
|
|
|
|
## Build libdms.so
|
|
config("libdms_private_config") {
|
|
include_dirs = [
|
|
"//base/sensors/sensor/interfaces/native/include",
|
|
"//foundation/window/window_manager/dm/include",
|
|
"//foundation/window/window_manager/interfaces/innerkits/dm",
|
|
]
|
|
}
|
|
|
|
config("libdms_public_config") {
|
|
include_dirs = [ "include" ]
|
|
}
|
|
|
|
ohos_shared_library("libdms") {
|
|
sources = [
|
|
"../dm/src/zidl/display_manager_agent_proxy.cpp",
|
|
"src/abstract_display.cpp",
|
|
"src/abstract_display_controller.cpp",
|
|
"src/abstract_screen.cpp",
|
|
"src/abstract_screen_controller.cpp",
|
|
"src/display_cutout_controller.cpp",
|
|
"src/display_dumper.cpp",
|
|
"src/display_manager_agent_controller.cpp",
|
|
"src/display_manager_config.cpp",
|
|
"src/display_manager_service.cpp",
|
|
"src/display_manager_service_inner.cpp",
|
|
"src/display_manager_stub.cpp",
|
|
"src/display_power_controller.cpp",
|
|
"src/screen_rotation_controller.cpp",
|
|
]
|
|
|
|
configs = [
|
|
":libdms_private_config",
|
|
"//foundation/window/window_manager/resources/config/build:coverage_flags",
|
|
]
|
|
|
|
public_configs = [ ":libdms_public_config" ]
|
|
|
|
deps = [
|
|
"//foundation/window/window_manager/dm:libdm",
|
|
"//foundation/window/window_manager/utils:libwmutil",
|
|
|
|
# RSSurface
|
|
"//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
|
|
]
|
|
|
|
external_deps = [
|
|
"access_token:libaccesstoken_sdk",
|
|
"c_utils:utils",
|
|
"config_policy:configpolicy_util",
|
|
"graphic_standard:surface",
|
|
"hilog_native:libhilog",
|
|
"hitrace_native:hitrace_meter",
|
|
"ipc:ipc_core",
|
|
"safwk:system_ability_fwk",
|
|
"samgr:samgr_proxy",
|
|
"sensor:sensor_interface_native",
|
|
]
|
|
|
|
include_dirs = [ "//third_party/flutter/skia/src" ]
|
|
|
|
if (is_standard_system) {
|
|
external_deps += [ "init:libbegetutil" ]
|
|
} else {
|
|
external_deps += [ "init_lite:libbegetutil" ]
|
|
}
|
|
|
|
part_name = "window_manager"
|
|
subsystem_name = "window"
|
|
}
|
|
|
|
group("test") {
|
|
testonly = true
|
|
deps = [ "test:test" ]
|
|
}
|