graphic_graphic_2d/frameworks/wmserver/BUILD.gn
maojiangping edd80f62fe remove useless window code
Signed-off-by: maojiangping <maojiangping@huawei.com>
Change-Id: I0f0f041179d798f45ab10655a7df6c2172796412
Signed-off-by: maojiangping <maojiangping@huawei.com>
2022-01-22 14:50:14 +08:00

134 lines
3.2 KiB
Plaintext

# Copyright (c) 2021 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")
import("//third_party/wayland_standard/wayland_protocol.gni")
## Generate Wayland Protocols {{{
wayland_protocol("wms_protocol") {
sources = [ "protocol/wms.xml" ]
}
## Generate Wayland Protocols }}}
## Build wmserver.so {{{
config("wmserver_config") {
visibility = [ ":*" ]
include_dirs = [
"//third_party/wayland_standard",
"//third_party/weston/compositor",
"//third_party/weston/ivi-shell",
"//third_party/weston/libweston",
"//third_party/wayland-ivi-extension/ivi-input-modules/ivi-input-controller/src/",
"//utils/native/base/include",
"//foundation/graphic/standard/interfaces/innerkits/wmclient",
"//foundation/graphic/standard/interfaces/innerkits/wmservice",
]
cflags = [
"-Wall",
"-Werror",
"-g3",
]
}
config("wmserver_public_config") {
include_dirs = [ "src" ]
}
ohos_shared_library("wmserver") {
sources = [
"src/layout_controller.cpp",
"src/rects.cpp",
"src/screen_info.c",
"src/split_mode.cpp",
"src/wmserver.c",
]
configs = [ ":wmserver_config" ]
public_configs = [ ":wmserver_public_config" ]
deps = [
":layout_header",
"//drivers/peripheral/display/hal:hdi_display_device",
"//foundation/graphic/standard/frameworks/animation_server:libanimation_service",
"//foundation/graphic/standard/utils:libgraphic_utils",
"//foundation/multimodalinput/input/patch/diff_libinput_mmi:libinput-third-mmi",
"//third_party/wayland_standard:wayland_core_protocol",
"//third_party/weston:libexec_weston",
"//third_party/weston:trace",
"//utils/native/base:utils",
]
public_deps = [ ":wms_protocol" ]
part_name = "graphic_standard"
subsystem_name = "graphic"
}
## Build wmserver.so }}}
## Build screen-info-test {{{
config("screen-info-test_config") {
visibility = [ ":*" ]
include_dirs = []
cflags = []
}
ohos_executable("screen-info-test") {
install_enable = false
sources = [ "src/screen_info_test.c" ]
configs = [ ":screen-info-test_config" ]
deps = [
":wms_protocol",
"//foundation/multimodalinput/input/patch/diff_libinput_mmi:libinput-third-mmi",
"//third_party/wayland_standard:libwayland_client",
]
part_name = "graphic_standard"
subsystem_name = "graphic"
}
## Build screen-info-test }}}
## Build layout_header.a {{{
config("layout_header_config") {
visibility = [ ":*" ]
cflags = [
"-Wall",
"-Werror",
"-g3",
]
}
config("layout_header_public_config") {
include_dirs = [ "src" ]
}
ohos_static_library("layout_header") {
sources = [ "src/layout_header.cpp" ]
configs = [ ":layout_header_config" ]
public_configs = [ ":layout_header_public_config" ]
}
## Build layout_header.a }}}