window_window_manager/dm/BUILD.gn
openharmony_ci 29e885392f
!1315 Remove useless dependency for libdm
Merge pull request !1315 from 毛江平/local
2022-08-06 07:49:52 +00:00

72 lines
1.8 KiB
Plaintext

# 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("//build/ohos.gni")
config("libdm_private_config") {
include_dirs = [
"include",
"../dmserver/include",
]
}
config("libdm_public_config") {
include_dirs = [
"../interfaces/innerkits/dm",
"../utils/include",
]
}
## Build libdm.so
ohos_shared_library("libdm") {
sources = [
"../dmserver/src/display_manager_proxy.cpp",
"src/display.cpp",
"src/display_manager.cpp",
"src/display_manager_adapter.cpp",
"src/screen.cpp",
"src/screen_group.cpp",
"src/screen_manager.cpp",
"src/zidl/display_manager_agent_stub.cpp",
]
configs = [
":libdm_private_config",
"//foundation/window/window_manager/resources/config/build:coverage_flags",
]
public_configs = [ ":libdm_public_config" ]
deps = [
"//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
"//foundation/window/window_manager/utils:libwmutil",
]
external_deps = [
"c_utils:utils",
"hilog_native:libhilog",
"ipc:ipc_core",
"multimedia_image_standard:image_native",
"safwk:system_ability_fwk",
"samgr:samgr_proxy",
]
part_name = "window_manager"
subsystem_name = "window"
}
group("test") {
testonly = true
deps = [ "test:test" ]
}