2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Set USE_CAMERA_STUB for non-emulator and non-simulator builds, if you want
|
|
|
|
# the camera service to use the fake camera. For emulator or simulator builds,
|
|
|
|
# we always use the fake camera.
|
|
|
|
|
|
|
|
ifeq ($(USE_CAMERA_STUB),)
|
|
|
|
USE_CAMERA_STUB:=false
|
|
|
|
ifneq ($(filter sooner generic sim,$(TARGET_DEVICE)),)
|
|
|
|
USE_CAMERA_STUB:=true
|
|
|
|
endif #libcamerastub
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(USE_CAMERA_STUB),true)
|
|
|
|
#
|
|
|
|
# libcamerastub
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
CameraHardwareStub.cpp \
|
|
|
|
FakeCamera.cpp
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libcamerastub
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES:= libui
|
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
endif # USE_CAMERA_STUB
|
|
|
|
|
|
|
|
#
|
|
|
|
# libcameraservice
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
CameraService.cpp
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES:= \
|
|
|
|
libui \
|
|
|
|
libutils \
|
2009-05-18 22:08:03 +00:00
|
|
|
libbinder \
|
2009-03-25 03:21:49 +00:00
|
|
|
libcutils \
|
|
|
|
libmedia
|
2009-03-04 03:31:44 +00:00
|
|
|
|
|
|
|
LOCAL_MODULE:= libcameraservice
|
|
|
|
|
|
|
|
LOCAL_CFLAGS+=-DLOG_TAG=\"CameraService\"
|
|
|
|
|
|
|
|
ifeq ($(USE_CAMERA_STUB), true)
|
|
|
|
LOCAL_STATIC_LIBRARIES += libcamerastub
|
|
|
|
LOCAL_CFLAGS += -include CameraHardwareStub.h
|
|
|
|
else
|
|
|
|
LOCAL_SHARED_LIBRARIES += libcamera
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|