59 lines
1.0 KiB
Makefile
59 lines
1.0 KiB
Makefile
|
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 ($(BOARD_CAMERA_LIBRARIES),)
|
||
|
USE_CAMERA_STUB:=true
|
||
|
else
|
||
|
USE_CAMERA_STUB:=false
|
||
|
endif #libcamerastub
|
||
|
|
||
|
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 \
|
||
|
libcutils
|
||
|
|
||
|
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 += $(BOARD_CAMERA_LIBRARIES)
|
||
|
endif
|
||
|
|
||
|
include $(BUILD_SHARED_LIBRARY)
|
||
|
|