1# Copyright (c) 2021-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. 13 14import("//ark/ts2abc/ts2panda/ts2abc_config.gni") 15import("//build/ohos.gni") 16 17config("window_manager_napi_config") { 18 visibility = [ ":*" ] 19 20 include_dirs = [ 21 "//foundation/windowmanager/interfaces/kits/napi/window_runtime/window_napi", 22 "//foundation/windowmanager/interfaces/kits/napi/window_runtime/window_manager_napi", 23 "//foundation/windowmanager/interfaces/innerkits/wm", 24 "//foundation/windowmanager/interfaces/innerkits/dm", 25 "//foundation/windowmanager/wm/include", 26 "//foundation/windowmanager/utils/include", 27 ] 28} 29 30config("window_native_kit_config") { 31 visibility = [ ":*" ] 32 33 include_dirs = [ 34 "//foundation/windowmanager/interfaces/kits/napi/window_runtime/window_napi", 35 "//foundation/windowmanager/interfaces/innerkits/wm", 36 "//foundation/windowmanager/wm/include", 37 "//foundation/windowmanager/utils/include", 38 "//foundation/windowmanager/wmserver/include", 39 ] 40} 41 42ohos_shared_library("window_native_kit") { 43 sources = [ 44 "window_napi/js_window.cpp", 45 "window_napi/js_window_listener.cpp", 46 "window_napi/js_window_register_manager.cpp", 47 "window_napi/js_window_utils.cpp", 48 ] 49 50 configs = [ ":window_native_kit_config" ] 51 deps = [ 52 "//foundation/windowmanager/utils:libwmutil", 53 "//foundation/windowmanager/wm:libwm", 54 "//foundation/windowmanager/wmserver:libwms", 55 ] 56 57 external_deps = [ 58 "ability_runtime:runtime", 59 "access_token:libaccesstoken_sdk", 60 "bundle_framework:appexecfwk_base", 61 "hiviewdfx_hilog_native:libhilog", 62 "ipc:ipc_core", 63 "napi:ace_napi", 64 ] 65 66 part_name = "window_manager" 67 subsystem_name = "window" 68} 69 70ohos_shared_library("window_napi") { 71 sources = [ 72 "window_manager_napi/js_window_manager.cpp", 73 "window_manager_napi/window_manager_module.cpp", 74 ] 75 configs = [ ":window_manager_napi_config" ] 76 deps = [ 77 ":window_native_kit", 78 "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native", 79 "//foundation/aafwk/standard/frameworks/kits/appkit:app_context", 80 "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native", 81 "//foundation/aafwk/standard/interfaces/innerkits/want:want", 82 "//foundation/windowmanager/utils:libwmutil", 83 "//foundation/windowmanager/wm:libwm", 84 "//foundation/windowmanager/wmserver:libwms", 85 ] 86 87 external_deps = [ 88 "ability_runtime:ability_context_native", 89 "ability_runtime:ability_manager", 90 "ability_runtime:runtime", 91 "hiviewdfx_hilog_native:libhilog", 92 "napi:ace_napi", 93 ] 94 95 relative_install_dir = "module" 96 97 part_name = "window_manager" 98 subsystem_name = "window" 99} 100 101ohos_shared_library("windowstage_kit") { 102 sources = [ "window_stage_napi/js_window_stage.cpp" ] 103 104 configs = [ ":window_native_kit_config" ] 105 include_dirs = [ "//foundation/windowmanager/interfaces/kits/napi/window_runtime/window_stage_napi" ] 106 deps = [ 107 ":window_native_kit", 108 "//foundation/windowmanager/utils:libwmutil", 109 "//foundation/windowmanager/wm:libwm", 110 "//foundation/windowmanager/wmserver:libwms", 111 ] 112 113 external_deps = [ 114 "ability_runtime:ability_manager", 115 "ability_runtime:runtime", 116 "hiviewdfx_hilog_native:libhilog", 117 "napi:ace_napi", 118 ] 119 120 part_name = "window_manager" 121 subsystem_name = "window" 122} 123