1# Copyright (C) 2016 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15 16LOCAL_PATH := $(call my-dir) 17 18include $(CLEAR_VARS) 19 20# JPEG stub##################################################################### 21 22ifneq ($(TARGET_BUILD_PDK),true) 23 24include $(CLEAR_VARS) 25 26jpeg_module_relative_path := hw 27jpeg_cflags := -fno-short-enums -DQEMU_HARDWARE 28jpeg_cflags += -Wno-unused-parameter 29jpeg_clang_flags += -Wno-c++11-narrowing 30jpeg_shared_libraries := \ 31 libcutils \ 32 libexif \ 33 libjpeg \ 34 liblog \ 35 libandroid_runtime 36jpeg_c_includes := external/libjpeg-turbo \ 37 external/libexif \ 38 frameworks/native/include 39jpeg_src := \ 40 Compressor.cpp \ 41 JpegStub.cpp \ 42 43 44# goldfish build ############################################################### 45 46LOCAL_MODULE_RELATIVE_PATH := ${jpeg_module_relative_path} 47LOCAL_CFLAGS += ${jpeg_cflags} 48LOCAL_CLANG_CFLAGS += ${jpeg_clangflags} 49 50LOCAL_SHARED_LIBRARIES := ${jpeg_shared_libraries} 51LOCAL_C_INCLUDES += ${jpeg_c_includes} 52LOCAL_SRC_FILES := ${jpeg_src} 53 54LOCAL_MODULE := camera.goldfish.jpeg 55 56include $(BUILD_SHARED_LIBRARY) 57 58# ranchu build ################################################################# 59 60include ${CLEAR_VARS} 61 62LOCAL_MODULE := camera.ranchu.jpeg 63 64LOCAL_MODULE_RELATIVE_PATH := ${jpeg_module_relative_path} 65LOCAL_CFLAGS += ${jpeg_cflags} 66LOCAL_CLANG_CFLAGS += ${jpeg_clangflags} 67 68LOCAL_SHARED_LIBRARIES := ${jpeg_shared_libraries} 69LOCAL_C_INCLUDES += ${jpeg_c_includes} 70LOCAL_SRC_FILES := ${jpeg_src} 71 72include $(BUILD_SHARED_LIBRARY) 73 74endif # !PDK 75