1# Copyright (c) 2021-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") 15import("../../../../windowmanager_aafwk.gni") 16 17config("window_manager_napi_config") { 18 visibility = [ ":*" ] 19 20 include_dirs = [ 21 "window_napi", 22 "window_manager_napi", 23 "../../../innerkits/wm", 24 "../../../innerkits/dm", 25 "../../../../wm/include", 26 "../../../../utils/include", 27 ] 28} 29 30config("window_native_kit_config") { 31 visibility = [ ":*" ] 32 33 include_dirs = [ 34 "window_napi", 35 "../../../innerkits/wm", 36 "../../../../utils/include", 37 "../../../../wm/include", 38 "../../../../wmserver/include", 39 40 # because of pixle_map.h 41 "//foundation/multimedia/image_framework/interfaces/innerkits/include", 42 ] 43} 44 45ohos_shared_library("window_native_kit") { 46 sources = [ 47 "window_napi/js_transition_controller.cpp", 48 "window_napi/js_window.cpp", 49 "window_napi/js_window_listener.cpp", 50 "window_napi/js_window_register_manager.cpp", 51 "window_napi/js_window_utils.cpp", 52 ] 53 54 configs = [ 55 ":window_native_kit_config", 56 "../../../../resources/config/build:coverage_flags", 57 ] 58 59 deps = [ 60 "../../../../utils:libwmutil", 61 "../../../../wm:libwm", 62 ] 63 64 external_deps = [ 65 "ability_runtime:ability_manager", 66 "ability_runtime:dialog_request_info", 67 "ability_runtime:extensionkit_native", 68 "ability_runtime:runtime", 69 "access_token:libaccesstoken_sdk", 70 "ace_engine:ace_uicontent", 71 "bundle_framework:appexecfwk_base", 72 "c_utils:utils", 73 "hilog:libhilog", 74 "image_framework:image", 75 "image_framework:image_native", 76 "ipc:ipc_napi_common", 77 "ipc:ipc_single", 78 "napi:ace_napi", 79 ] 80 81 innerapi_tags = [ "platformsdk" ] 82 part_name = "window_manager" 83 subsystem_name = "window" 84} 85 86ohos_shared_library("window_napi") { 87 sources = [ 88 "window_manager_napi/js_window_manager.cpp", 89 "window_manager_napi/window_manager_module.cpp", 90 ] 91 92 configs = [ 93 ":window_manager_napi_config", 94 "../../../../resources/config/build:coverage_flags", 95 ] 96 97 deps = [ 98 ":window_native_kit", 99 "../../../../dm:libdm", 100 "../../../../utils:libwmutil", 101 "../../../../wm:libwm", 102 ] 103 104 external_deps = [ 105 "ability_runtime:ability_context_native", 106 "ability_runtime:abilitykit_native", 107 "ability_runtime:runtime", 108 "c_utils:utils", 109 "common_event_service:cesfwk_innerkits", 110 "graphic_2d:librender_service_client", 111 "hilog:libhilog", 112 "hitrace:hitrace_meter", 113 "image_framework:image", 114 "napi:ace_napi", 115 ] 116 117 relative_install_dir = "module" 118 119 part_name = "window_manager" 120 subsystem_name = "window" 121} 122 123ohos_shared_library("windowstage_kit") { 124 sources = [ "window_stage_napi/js_window_stage.cpp" ] 125 126 configs = [ 127 ":window_native_kit_config", 128 "../../../../resources/config/build:coverage_flags", 129 ] 130 131 include_dirs = [ "window_stage_napi" ] 132 deps = [ 133 ":window_native_kit", 134 "../../../../utils:libwmutil", 135 "../../../../wm:libwm", 136 ] 137 138 external_deps = [ 139 "ability_runtime:runtime", 140 "c_utils:utils", 141 "hilog:libhilog", 142 "napi:ace_napi", 143 ] 144 145 innerapi_tags = [ "platformsdk" ] 146 part_name = "window_manager" 147 subsystem_name = "window" 148} 149