Home | History | Annotate | Download | only in camera
      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/native/include/media/hardware \
     40 	frameworks/base/core/jni/android/graphics \
     41 	$(call include-path-for, camera)
     42 
     43 LOCAL_SRC_FILES := \
     44 	EmulatedCameraHal.cpp \
     45     EmulatedCameraFactory.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 
     62 ifeq ($(TARGET_PRODUCT),vbox_x86)
     63 LOCAL_MODULE := camera.vbox_x86
     64 else
     65 LOCAL_MODULE := camera.goldfish
     66 endif
     67 
     68 LOCAL_MODULE_TAGS := debug
     69 include $(BUILD_SHARED_LIBRARY)
     70 
     71 endif # BUILD_EMULATOR_CAMERA_HAL
     72