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-format",
33        "-Wno-missing-braces",
34        "-Wno-deprecated-declarations",
35    ],
36
37    srcs: [
38        "lib/lib_wprint.c",
39        "lib/plugin_db.c",
40        "lib/printable_area.c",
41        "lib/printer.c",
42        "lib/wprint_msgq.c",
43        "lib/wprintJNI.c",
44
45        "ipphelper/ipp_print.c",
46        "ipphelper/ipphelper.c",
47        "ipphelper/ippstatus_capabilities.c",
48        "ipphelper/ippstatus_monitor.c",
49
50        "plugins/lib_pclm.c",
51        "plugins/lib_pwg.c",
52        "plugins/genPCLm/src/genPCLm.cpp",
53        "plugins/genPCLm/src/genJPEGStrips.cpp",
54        "plugins/pdf_render.c",
55        "plugins/plugin_pcl.c",
56        "plugins/plugin_pdf.c",
57        "plugins/pclm_wrapper_api.cpp",
58        "plugins/wprint_image.c",
59        "plugins/wprint_image_platform.c",
60        "plugins/wprint_mupdf.c",
61        "plugins/wprint_scaler.c",
62    ],
63
64    header_libs: ["jni_headers"],
65    local_include_dirs: [
66        "include",
67        "plugins/genPCLm/inc",
68        "ipphelper",
69    ],
70    static_libs: ["libjpeg_static_ndk"],
71    shared_libs: [
72        "libcups",
73        "liblog",
74        "libz",
75    ],
76}
77