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