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
16cc_library_shared {
17    name: "libwfds",
18
19    sdk_version: "current",
20
21    cflags: [
22        "-DINCLUDE_PDF=1",
23        "-Werror",
24        "-Wextra",
25        "-Wno-unused-parameter",
26        "-Wno-sign-compare",
27        "-Wno-missing-field-initializers",
28        "-Wno-implicit-function-declaration",
29        "-Wno-format",
30        "-Wno-missing-braces",
31        "-Wno-deprecated-declarations",
32    ],
33
34    srcs: [
35        "lib/lib_wprint.c",
36        "lib/plugin_db.c",
37        "lib/printable_area.c",
38        "lib/printer.c",
39        "lib/wprint_msgq.c",
40        "lib/wprintJNI.c",
41
42        "ipphelper/ipp_print.c",
43        "ipphelper/ipphelper.c",
44        "ipphelper/ippstatus_capabilities.c",
45        "ipphelper/ippstatus_monitor.c",
46
47        "plugins/lib_pclm.c",
48        "plugins/lib_pwg.c",
49        "plugins/genPCLm/src/genPCLm.cpp",
50        "plugins/genPCLm/src/genJPEGStrips.cpp",
51        "plugins/pdf_render.c",
52        "plugins/plugin_pcl.c",
53        "plugins/plugin_pdf.c",
54        "plugins/pclm_wrapper_api.cpp",
55        "plugins/wprint_image.c",
56        "plugins/wprint_image_platform.c",
57        "plugins/wprint_mupdf.c",
58        "plugins/wprint_scaler.c",
59    ],
60
61    header_libs: ["jni_headers"],
62    local_include_dirs: [
63        "include",
64        "plugins/genPCLm/inc",
65        "ipphelper",
66    ],
67    static_libs: ["libjpeg_static_ndk"],
68    shared_libs: [
69        "libcups",
70        "liblog",
71        "libz",
72    ],
73}
74