• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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("//build/ohos.gni")
15
16## Build setresolution {{{
17config("setresolution_config") {
18  visibility = [ ":*" ]
19  include_dirs = [ "include" ]
20}
21
22ohos_executable("setresolution_screen") {
23  install_enable = true
24  sources = [ "src/setresolution_screen.cpp" ]
25
26  configs = [
27    ":setresolution_config",
28    "../resources/config/build:coverage_flags",
29  ]
30
31  deps = [
32    ":libsetresolution_util",
33    "../dm:libdm",
34  ]
35
36  external_deps = [
37    "c_utils:utils",
38    "graphic_surface:surface",
39  ]
40
41  part_name = "window_manager"
42  subsystem_name = "window"
43}
44
45ohos_shared_library("libsetresolution_util") {
46  sources = [ "src/setresolution_utils.cpp" ]
47
48  configs = [
49    ":setresolution_config",
50    "../resources/config/build:coverage_flags",
51  ]
52
53  deps = [ "../dm:libdm" ]
54
55  external_deps = [
56    "c_utils:utils",
57    "hitrace:hitrace_meter",
58  ]
59
60  part_name = "window_manager"
61  subsystem_name = "window"
62}
63## Build setresolution }}}
64