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