2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
2010-05-10 06:36:24 +00:00
|
|
|
# Set USE_CAMERA_STUB if you don't want to use the hardware camera.
|
|
|
|
|
2010-05-10 07:04:40 +00:00
|
|
|
# force these builds to use camera stub only
|
|
|
|
ifneq ($(filter sooner generic sim,$(TARGET_DEVICE)),)
|
|
|
|
USE_CAMERA_STUB:=true
|
|
|
|
endif
|
|
|
|
|
2010-06-10 05:32:16 +00:00
|
|
|
ifeq ($(USE_CAMERA_STUB),)
|
|
|
|
USE_CAMERA_STUB:=false
|
2009-03-04 03:31:44 +00:00
|
|
|
endif
|
|
|
|
|
2010-06-10 05:32:16 +00:00
|
|
|
ifeq ($(USE_CAMERA_STUB),true)
|
2009-03-04 03:31:44 +00:00
|
|
|
#
|
|
|
|
# libcamerastub
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
CameraHardwareStub.cpp \
|
|
|
|
FakeCamera.cpp
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libcamerastub
|
|
|
|
|
2009-08-13 16:24:47 +00:00
|
|
|
ifeq ($(TARGET_SIMULATOR),true)
|
|
|
|
LOCAL_CFLAGS += -DSINGLE_PROCESS
|
|
|
|
endif
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES:= libui
|
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2010-06-10 05:32:16 +00:00
|
|
|
endif # USE_CAMERA_STUB
|
2009-03-04 03:31:44 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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 \
|
2010-02-10 01:46:37 +00:00
|
|
|
libmedia \
|
|
|
|
libcamera_client \
|
|
|
|
libsurfaceflinger_client
|
2009-03-04 03:31:44 +00:00
|
|
|
|
|
|
|
LOCAL_MODULE:= libcameraservice
|
|
|
|
|
2009-08-13 16:24:47 +00:00
|
|
|
ifeq ($(TARGET_SIMULATOR),true)
|
|
|
|
LOCAL_CFLAGS += -DSINGLE_PROCESS
|
|
|
|
endif
|
2009-03-04 03:31:44 +00:00
|
|
|
|
2010-06-10 05:32:16 +00:00
|
|
|
ifeq ($(USE_CAMERA_STUB), true)
|
2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_STATIC_LIBRARIES += libcamerastub
|
2010-06-10 05:32:16 +00:00
|
|
|
else
|
2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES += libcamera
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|