• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_helper") {
23  include_dirs = [
24    "//third_party/node/src",
25    "//third_party/curl/include",
26    "${print_path}/frameworks/innerkitsimpl/include",
27    "${print_utils_path}/include",
28  ]
29  public_configs = [ ":print_interfaces_kits_napi_config" ]
30
31  sources = [
32    "src/napi_print_utils.cpp",
33    "src/print_extension_info_helper.cpp",
34    "src/print_job_helper.cpp",
35    "src/print_margin_helper.cpp",
36    "src/print_page_size_helper.cpp",
37    "src/print_preview_attribute_helper.cpp",
38    "src/print_range_helper.cpp",
39    "src/print_resolution_helper.cpp",
40    "src/printer_capability_helper.cpp",
41    "src/printer_info_helper.cpp",
42  ]
43  deps = [ "${print_path}/frameworks/innerkitsimpl:print_client" ]
44  external_deps = [
45    "ability_base:want",
46    "ability_base:zuri",
47    "ability_runtime:ability_manager",
48    "ability_runtime:abilitykit_native",
49    "ability_runtime:data_ability_helper",
50    "ability_runtime:napi_base_context",
51    "c_utils:utils",
52    "common_event_service:cesfwk_innerkits",
53    "eventhandler:libeventhandler",
54    "hilog:libhilog",
55    "ipc:ipc_core",
56    "napi:ace_napi",
57    "preferences:native_preferences",
58    "relational_store:native_appdatafwk",
59    "relational_store:native_dataability",
60    "relational_store:native_rdb",
61    "samgr:samgr_proxy",
62  ]
63
64  #relative_install_dir = "module"
65  install_enable = true
66  subsystem_name = "print"
67  innerapi_tags = [ "platformsdk" ]
68  part_name = "print_fwk"
69}
70