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. 13 14import("//arkcompiler/ets_frontend/ts2panda/ts2abc_config.gni") 15import("//build/ohos.gni") 16import("//foundation/window/window_manager/windowmanager_aafwk.gni") 17 18config("screen_runtime_config") { 19 visibility = [ ":*" ] 20 21 include_dirs = [ 22 "//foundation/window/window_manager/interfaces/kits/napi/screen_runtime/api", 23 "//foundation/window/window_manager/interfaces/kits/napi/screen_runtime/napi", 24 ] 25} 26 27ohos_shared_library("screen_napi") { 28 sources = [ 29 "napi/js_screen.cpp", 30 "napi/js_screen_listener.cpp", 31 "napi/js_screen_manager.cpp", 32 "napi/screen_manager_module.cpp", 33 ] 34 35 configs = [ 36 ":screen_runtime_config", 37 "//foundation/window/window_manager/resources/config/build:coverage_flags", 38 ] 39 40 deps = [ 41 "//foundation/window/window_manager/dm:libdm", 42 "//foundation/window/window_manager/utils:libwmutil", 43 ] 44 45 external_deps = [ 46 "ability_runtime:runtime", 47 "c_utils:utils", 48 "graphic_standard:surface", # use for SurfaceUtils 49 "hiviewdfx_hilog_native:libhilog", 50 "napi:ace_napi", 51 ] 52 53 relative_install_dir = "module" 54 55 part_name = "window_manager" 56 subsystem_name = "window" 57} 58