1# Copyright (c) 2023-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("pip_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "../../../../wm/include", 21 "${arkui_path}/ace_engine/interface/inner_api/ace", 22 ] 23} 24 25ohos_shared_library("pipwindow_napi") { 26 branch_protector_ret = "pac_ret" 27 sanitize = { 28 cfi = true 29 cfi_cross_dso = true 30 debug = false 31 } 32 sources = [ 33 "js_pip_controller.cpp", 34 "js_pip_utils.cpp", 35 "js_pip_window_manager.cpp", 36 "js_pipwindow_module.cpp", 37 ] 38 39 configs = [ 40 ":pip_config", 41 "../../../../resources/config/build:coverage_flags", 42 ] 43 44 deps = [ 45 "../../../../dm:libdm", 46 "../../../../utils:libwmutil", 47 "../../../../wm:libwm", 48 ] 49 50 external_deps = [ 51 "ability_runtime:ability_context_native", 52 "ability_runtime:abilitykit_native", 53 "ability_runtime:runtime", 54 "ace_engine:ace_uicontent", 55 "ace_engine:ace_xcomponent_controller", 56 "c_utils:utils", 57 "common_event_service:cesfwk_innerkits", 58 "graphic_2d:librender_service_client", 59 "hilog:libhilog", 60 "hitrace:hitrace_meter", 61 "image_framework:image", 62 "napi:ace_napi", 63 ] 64 65 relative_install_dir = "module" 66 part_name = "window_manager" 67 subsystem_name = "window" 68} 69