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) 25LOCAL_VENDOR_MODULE := true 26 27jpeg_module_relative_path := hw 28jpeg_cflags := -fno-short-enums -DQEMU_HARDWARE 29jpeg_cflags += -Wno-unused-parameter 30jpeg_clang_flags += -Wno-c++11-narrowing 31jpeg_shared_libraries := \ 32 libcutils \ 33 libexif \ 34 libjpeg \ 35 liblog \ 36 37jpeg_c_includes := external/libjpeg-turbo \ 38 external/libexif \ 39 frameworks/native/include 40jpeg_src := \ 41 Compressor.cpp \ 42 JpegStub.cpp \ 43 44 45# goldfish build ############################################################### 46 47LOCAL_MODULE_RELATIVE_PATH := ${jpeg_module_relative_path} 48LOCAL_CFLAGS += ${jpeg_cflags} 49LOCAL_CLANG_CFLAGS += ${jpeg_clangflags} 50 51LOCAL_SHARED_LIBRARIES := ${jpeg_shared_libraries} 52LOCAL_C_INCLUDES += ${jpeg_c_includes} 53LOCAL_SRC_FILES := ${jpeg_src} 54 55LOCAL_MODULE := camera.goldfish.jpeg 56 57include $(BUILD_SHARED_LIBRARY) 58 59# ranchu build ################################################################# 60 61include ${CLEAR_VARS} 62 63LOCAL_VENDOR_MODULE := true 64LOCAL_MODULE := camera.ranchu.jpeg 65 66LOCAL_MODULE_RELATIVE_PATH := ${jpeg_module_relative_path} 67LOCAL_CFLAGS += ${jpeg_cflags} 68LOCAL_CLANG_CFLAGS += ${jpeg_clangflags} 69 70LOCAL_SHARED_LIBRARIES := ${jpeg_shared_libraries} 71LOCAL_C_INCLUDES += ${jpeg_c_includes} 72LOCAL_SRC_FILES := ${jpeg_src} 73 74include $(BUILD_SHARED_LIBRARY) 75 76endif # !PDK 77