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 31PLUGINS_SRCS := \ 32 $(PLUGINS_DIR)/lib_pclm.c $(PLUGINS_DIR)/lib_pwg.c \ 33 $(PLUGINS_DIR)/genPCLm/src/genPCLm.cpp \ 34 $(PLUGINS_DIR)/genPCLm/src/genJPEGStrips.cpp \ 35 $(PLUGINS_DIR)/pdf_render.c $(PLUGINS_DIR)/plugin_pcl.c \ 36 $(PLUGINS_DIR)/plugin_pdf.c $(PLUGINS_DIR)/pclm_wrapper_api.cpp \ 37 $(PLUGINS_DIR)/wprint_image.c $(PLUGINS_DIR)/wprint_image_platform.c \ 38 $(PLUGINS_DIR)/wprint_mupdf.c $(PLUGINS_DIR)/wprint_scaler.c 39 40LIB_SRCS := \ 41 $(LIB_DIR)/lib_wprint.c $(LIB_DIR)/plugin_db.c \ 42 $(LIB_DIR)/printable_area.c $(LIB_DIR)/printer.c \ 43 $(LIB_DIR)/wprint_msgq.c $(LIB_DIR)/wprintJNI.c 44 45IPP_HELPER_SRCS := \ 46 $(IPP_HELPER_DIR)/ipp_print.c $(IPP_HELPER_DIR)/ipphelper.c \ 47 $(IPP_HELPER_DIR)/ippstatus_capabilities.c \ 48 $(IPP_HELPER_DIR)/ippstatus_monitor.c 49 50LOCAL_SRC_FILES:= \ 51 $(LIB_SRCS) $(IPP_HELPER_SRCS) $(PLUGINS_SRCS) 52 53LOCAL_C_INCLUDES += \ 54 $(LOCAL_PATH)/$(INCLUDE_DIR) $(LOCAL_PATH)/$(PLUGINS_DIR)/genPCLm/inc \ 55 $(LOCAL_PATH)/$(IPP_HELPER_DIR) 56LOCAL_STATIC_LIBRARIES := libjpeg_static_ndk 57LOCAL_SHARED_LIBRARIES := libcups liblog libz 58LOCAL_MODULE := libwfds 59LOCAL_MODULE_TAGS := optional 60include $(BUILD_SHARED_LIBRARY) 61