• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2016 The Android Open Source Project
2// Copyright (C) 2016 Mopria Alliance, Inc.
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20cc_library_shared {
21    name: "libwfds",
22
23    sdk_version: "current",
24
25    cflags: [
26        "-DINCLUDE_PDF=1",
27        "-Werror",
28        "-Wextra",
29        "-Wno-unused-parameter",
30        "-Wno-sign-compare",
31        "-Wno-missing-field-initializers",
32        "-Wno-implicit-function-declaration",
33        "-Wno-format",
34        "-Wno-missing-braces",
35        "-Wno-deprecated-declarations",
36    ],
37
38    srcs: [
39        "lib/lib_wprint.c",
40        "lib/plugin_db.c",
41        "lib/printable_area.c",
42        "lib/printer.c",
43        "lib/wprint_msgq.c",
44        "lib/wprintJNI.c",
45
46        "ipphelper/ipp_print.c",
47        "ipphelper/ipphelper.c",
48        "ipphelper/ippstatus_capabilities.c",
49        "ipphelper/ippstatus_monitor.c",
50
51        "plugins/lib_pclm.c",
52        "plugins/lib_pwg.c",
53        "plugins/genPCLm/src/genPCLm.cpp",
54        "plugins/genPCLm/src/genJPEGStrips.cpp",
55        "plugins/pdf_render.c",
56        "plugins/plugin_pcl.c",
57        "plugins/plugin_pdf.c",
58        "plugins/pclm_wrapper_api.cpp",
59        "plugins/wprint_image.c",
60        "plugins/wprint_image_platform.c",
61        "plugins/wprint_mupdf.c",
62        "plugins/wprint_scaler.c",
63    ],
64
65    header_libs: ["jni_headers"],
66    local_include_dirs: [
67        "include",
68        "plugins/genPCLm/inc",
69        "ipphelper",
70    ],
71    static_libs: ["libjpeg_static_ndk"],
72    shared_libs: [
73        "libcups",
74        "liblog",
75        "libz",
76    ],
77}
78