1e0dac50fSopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
2e0dac50fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3e0dac50fSopenharmony_ci# you may not use this file except in compliance with the License.
4e0dac50fSopenharmony_ci# You may obtain a copy of the License at
5e0dac50fSopenharmony_ci#
6e0dac50fSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7e0dac50fSopenharmony_ci#
8e0dac50fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9e0dac50fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10e0dac50fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11e0dac50fSopenharmony_ci# See the License for the specific language governing permissions and
12e0dac50fSopenharmony_ci# limitations under the License.
13e0dac50fSopenharmony_ciimport("//build/ohos.gni")
14e0dac50fSopenharmony_ci
15e0dac50fSopenharmony_ciohos_prebuilt_etc("window_manager_config") {
16e0dac50fSopenharmony_ci  if (is_emulator) {
17e0dac50fSopenharmony_ci    source = "./other/window_manager_config.xml"
18e0dac50fSopenharmony_ci    install_enable = false
19e0dac50fSopenharmony_ci  } else {
20e0dac50fSopenharmony_ci    source = "./other/window_manager_config.xml"
21e0dac50fSopenharmony_ci    install_enable = false
22e0dac50fSopenharmony_ci  }
23e0dac50fSopenharmony_ci  part_name = "window_manager"
24e0dac50fSopenharmony_ci  subsystem_name = "window"
25e0dac50fSopenharmony_ci  relative_install_dir = "window/resources"
26e0dac50fSopenharmony_ci}
27e0dac50fSopenharmony_ci
28e0dac50fSopenharmony_ciohos_prebuilt_etc("display_manager_config") {
29e0dac50fSopenharmony_ci  if (is_emulator) {
30e0dac50fSopenharmony_ci    source = "./other/display_manager_config.xml"
31e0dac50fSopenharmony_ci    install_enable = false
32e0dac50fSopenharmony_ci  } else {
33e0dac50fSopenharmony_ci    source = "./other/display_manager_config.xml"
34e0dac50fSopenharmony_ci    install_enable = false
35e0dac50fSopenharmony_ci  }
36e0dac50fSopenharmony_ci  part_name = "window_manager"
37e0dac50fSopenharmony_ci  subsystem_name = "window"
38e0dac50fSopenharmony_ci  relative_install_dir = "window/resources"
39e0dac50fSopenharmony_ci}
40e0dac50fSopenharmony_ci
41e0dac50fSopenharmony_cigroup("window_config") {
42e0dac50fSopenharmony_ci  deps = [
43e0dac50fSopenharmony_ci    ":display_manager_config",
44e0dac50fSopenharmony_ci    ":window_manager_config",
45e0dac50fSopenharmony_ci  ]
46e0dac50fSopenharmony_ci}
47