• 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
16LOCAL_PATH:= $(call my-dir)
17include $(CLEAR_VARS)
18
19INCLUDE_DIR    := include
20LIB_DIR        := lib
21PLUGINS_DIR    := plugins
22IPP_HELPER_DIR := ipphelper
23
24LOCAL_SDK_VERSION := current
25
26LOCAL_CFLAGS += \
27      -DINCLUDE_PDF=1 -Werror -Wextra -Wno-unused-parameter \
28      -Wno-sign-compare -Wno-missing-field-initializers \
29      -Wno-implicit-function-declaration -Wno-format -Wno-missing-braces \
30      -Wno-deprecated-declarations
31
32
33PLUGINS_SRCS := \
34      $(PLUGINS_DIR)/lib_pclm.c $(PLUGINS_DIR)/lib_pwg.c \
35      $(PLUGINS_DIR)/genPCLm/src/genPCLm.cpp \
36      $(PLUGINS_DIR)/genPCLm/src/genJPEGStrips.cpp \
37      $(PLUGINS_DIR)/pdf_render.c $(PLUGINS_DIR)/plugin_pcl.c \
38      $(PLUGINS_DIR)/plugin_pdf.c $(PLUGINS_DIR)/pclm_wrapper_api.cpp \
39      $(PLUGINS_DIR)/wprint_image.c $(PLUGINS_DIR)/wprint_image_platform.c \
40      $(PLUGINS_DIR)/wprint_mupdf.c $(PLUGINS_DIR)/wprint_scaler.c
41
42LIB_SRCS := \
43      $(LIB_DIR)/lib_wprint.c $(LIB_DIR)/plugin_db.c \
44      $(LIB_DIR)/printable_area.c $(LIB_DIR)/printer.c \
45      $(LIB_DIR)/wprint_msgq.c $(LIB_DIR)/wprintJNI.c
46
47IPP_HELPER_SRCS := \
48      $(IPP_HELPER_DIR)/ipp_print.c $(IPP_HELPER_DIR)/ipphelper.c \
49      $(IPP_HELPER_DIR)/ippstatus_capabilities.c \
50      $(IPP_HELPER_DIR)/ippstatus_monitor.c
51
52LOCAL_SRC_FILES:= \
53      $(LIB_SRCS) $(IPP_HELPER_SRCS) $(PLUGINS_SRCS)
54
55LOCAL_C_INCLUDES += \
56      $(LOCAL_PATH)/$(INCLUDE_DIR) $(LOCAL_PATH)/$(PLUGINS_DIR)/genPCLm/inc \
57      $(LOCAL_PATH)/$(IPP_HELPER_DIR)
58LOCAL_STATIC_LIBRARIES := libjpeg_static_ndk
59LOCAL_SHARED_LIBRARIES := libcups liblog libz
60LOCAL_MODULE := libwfds
61LOCAL_MODULE_TAGS := optional
62include $(BUILD_SHARED_LIBRARY)
63