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. 13import("//base/print/print_fwk/print.gni") 14import("//build/ohos.gni") 15 16config("print_interfaces_kits_napi_config") { 17 visibility = [ ":*" ] 18 include_dirs = [ "include" ] 19 20 cflags_cc = [ "-fno-exceptions" ] 21} 22ohos_shared_library("print_napi") { 23 include_dirs = [ 24 "//third_party/node/src", 25 "//third_party/curl/include", 26 "${print_utils_path}/include", 27 "${print_path}/frameworks/helper/include", 28 "${print_path}/frameworks/innerkitsimpl/include", 29 ] 30 public_configs = [ ":print_interfaces_kits_napi_config" ] 31 32 sources = [ 33 "src/napi_inner_print.cpp", 34 "src/napi_print_ext.cpp", 35 "src/napi_print_task.cpp", 36 "src/print_async_call.cpp", 37 "src/print_callback.cpp", 38 "src/print_module.cpp", 39 "src/print_task.cpp", 40 ] 41 deps = [ 42 "${print_path}/frameworks/helper:print_helper", 43 "${print_path}/frameworks/innerkitsimpl:print_client", 44 ] 45 external_deps = [ 46 "ability_base:want", 47 "ability_base:zuri", 48 "ability_runtime:ability_context_native", 49 "ability_runtime:ability_manager", 50 "ability_runtime:abilitykit_native", 51 "ability_runtime:data_ability_helper", 52 "ability_runtime:napi_base_context", 53 "c_utils:utils", 54 "eventhandler:libeventhandler", 55 "hilog:libhilog", 56 "ipc:ipc_core", 57 "napi:ace_napi", 58 "preferences:native_preferences", 59 "relational_store:native_appdatafwk", 60 "relational_store:native_dataability", 61 "relational_store:native_rdb", 62 "samgr:samgr_proxy", 63 ] 64 relative_install_dir = "module" 65 subsystem_name = "print" 66 part_name = "print_fwk" 67} 68