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