• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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.
13import("//build/ohos.gni")
14
15declare_args() {
16  window_manager_dayu200_resource_config = true
17}
18
19declare_args() {
20  window_manager_dayu210_resource_config = true
21}
22
23ohos_prebuilt_etc("window_manager_config") {
24  if (is_emulator) {
25    source = "./other/window_manager_config.xml"
26    install_enable = false
27  } else if (window_manager_dayu200_resource_config) {
28    source = "./rk3568/window_manager_config.xml"
29    install_enable = true
30  } else if (window_manager_dayu210_resource_config) {
31    source = "./rk3588/window_manager_config.xml"
32    install_enable = true
33  } else {
34    source = "./other/window_manager_config.xml"
35    install_enable = false
36  }
37  part_name = "window_manager"
38  subsystem_name = "window"
39  relative_install_dir = "window/resources"
40}
41
42ohos_prebuilt_etc("display_manager_config") {
43  if (is_emulator) {
44    source = "./other/display_manager_config.xml"
45    install_enable = false
46  } else if (window_manager_dayu200_resource_config) {
47    source = "./rk3568/display_manager_config.xml"
48    install_enable = true
49  } else if (window_manager_dayu210_resource_config) {
50    source = "./rk3588/display_manager_config.xml"
51    install_enable = true
52  } else {
53    source = "./other/display_manager_config.xml"
54    install_enable = false
55  }
56  part_name = "window_manager"
57  subsystem_name = "window"
58  relative_install_dir = "window/resources"
59}
60
61group("window_config") {
62  deps = [
63    ":display_manager_config",
64    ":window_manager_config",
65  ]
66}
67