1 # Copyright (C) 2011 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 LOCAL_MODULE_RELATIVE_PATH := hw 21 LOCAL_CFLAGS += -fno-short-enums -DQEMU_HARDWARE 22 LOCAL_CFLAGS += -Wno-unused-parameter -Wno-missing-field-initializers 23 LOCAL_CLANG_CFLAGS += -Wno-c++11-narrowing 24 LOCAL_SHARED_LIBRARIES:= \ 25 libbinder \ 26 liblog \ 27 libutils \ 28 libcutils \ 29 libcamera_client \ 30 libui \ 31 libdl 32 33 # JPEG conversion libraries and includes. 34 LOCAL_SHARED_LIBRARIES += \ 35 libjpeg \ 36 libcamera_metadata 37 38 LOCAL_C_INCLUDES += external/jpeg \ 39 frameworks/native/include/media/hardware \ 40 $(LOCAL_PATH)/../opengl/system/OpenglSystemCommon \ 41 $(call include-path-for, camera) 42 43 LOCAL_SRC_FILES := \ 44 EmulatedCameraHal.cpp \ 45 EmulatedCameraFactory.cpp \ 46 EmulatedCameraHotplugThread.cpp \ 47 EmulatedBaseCamera.cpp \ 48 EmulatedCamera.cpp \ 49 EmulatedCameraDevice.cpp \ 50 EmulatedQemuCamera.cpp \ 51 EmulatedQemuCameraDevice.cpp \ 52 EmulatedFakeCamera.cpp \ 53 EmulatedFakeCameraDevice.cpp \ 54 Converters.cpp \ 55 PreviewWindow.cpp \ 56 CallbackNotifier.cpp \ 57 QemuClient.cpp \ 58 JpegCompressor.cpp \ 59 EmulatedCamera2.cpp \ 60 EmulatedFakeCamera2.cpp \ 61 EmulatedQemuCamera2.cpp \ 62 fake-pipeline2/Scene.cpp \ 63 fake-pipeline2/Sensor.cpp \ 64 fake-pipeline2/JpegCompressor.cpp \ 65 EmulatedCamera3.cpp \ 66 EmulatedFakeCamera3.cpp 67 68 ifeq ($(TARGET_PRODUCT),vbox_x86) 69 LOCAL_MODULE := camera.vbox_x86 70 else 71 LOCAL_MODULE := camera.goldfish 72 endif 73 74 include $(BUILD_SHARED_LIBRARY) 75 76 ################################################################# 77 ifneq ($(TARGET_BUILD_PDK),true) 78 79 include $(CLEAR_VARS) 80 81 LOCAL_MODULE_RELATIVE_PATH := hw 82 LOCAL_CFLAGS += -fno-short-enums -DQEMU_HARDWARE 83 LOCAL_CFLAGS += -Wno-unused-parameter 84 LOCAL_CLANG_CFLAGS += -Wno-c++11-narrowing 85 LOCAL_SHARED_LIBRARIES:= \ 86 libcutils \ 87 liblog \ 88 libskia \ 89 libandroid_runtime 90 91 LOCAL_C_INCLUDES += external/jpeg \ 92 external/skia/include/core/ \ 93 frameworks/base/core/jni/android/graphics \ 94 frameworks/native/include 95 96 LOCAL_SRC_FILES := JpegStub.cpp 97 98 LOCAL_MODULE := camera.goldfish.jpeg 99 100 include $(BUILD_SHARED_LIBRARY) 101 102 endif # !PDK 103