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 ifndef BUILD_EMULATOR_CAMERA_HAL 16 BUILD_EMULATOR_CAMERA_HAL := true 17 18 LOCAL_PATH := $(call my-dir) 19 20 include $(CLEAR_VARS) 21 22 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw 23 LOCAL_CFLAGS += -fno-short-enums -DQEMU_HARDWARE 24 LOCAL_SHARED_LIBRARIES:= \ 25 libbinder \ 26 libutils \ 27 libcutils \ 28 libcamera_client \ 29 libui \ 30 31 # JPEG conversion libraries and includes. 32 LOCAL_SHARED_LIBRARIES += \ 33 libjpeg \ 34 libskia \ 35 libandroid_runtime \ 36 37 LOCAL_C_INCLUDES += external/jpeg \ 38 external/skia/include/core/ \ 39 frameworks/base/core/jni/android/graphics 40 41 LOCAL_SRC_FILES := \ 42 EmulatedCameraHal.cpp \ 43 EmulatedCameraFactory.cpp \ 44 EmulatedCamera.cpp \ 45 EmulatedCameraDevice.cpp \ 46 EmulatedQemuCamera.cpp \ 47 EmulatedQemuCameraDevice.cpp \ 48 EmulatedFakeCamera.cpp \ 49 EmulatedFakeCameraDevice.cpp \ 50 Converters.cpp \ 51 PreviewWindow.cpp \ 52 CallbackNotifier.cpp \ 53 QemuClient.cpp \ 54 JpegCompressor.cpp 55 56 ifeq ($(TARGET_PRODUCT),vbox_x86) 57 LOCAL_MODULE := camera.vbox_x86 58 else 59 LOCAL_MODULE := camera.goldfish 60 endif 61 62 LOCAL_MODULE_TAGS := debug 63 include $(BUILD_SHARED_LIBRARY) 64 65 endif # BUILD_EMULATOR_CAMERA_HAL 66