1LOCAL_PATH:= $(call my-dir) 2 3# Set USE_CAMERA_STUB if you don't want to use the hardware camera. 4 5# force these builds to use camera stub only 6ifneq ($(filter sooner generic sim,$(TARGET_DEVICE)),) 7 USE_CAMERA_STUB:=true 8endif 9 10ifeq ($(USE_CAMERA_STUB),) 11 USE_CAMERA_STUB:=false 12endif 13 14ifeq ($(USE_CAMERA_STUB),true) 15# 16# libcamerastub 17# 18 19include $(CLEAR_VARS) 20 21LOCAL_SRC_FILES:= \ 22 CameraHardwareStub.cpp \ 23 FakeCamera.cpp 24 25LOCAL_MODULE:= libcamerastub 26 27ifeq ($(TARGET_SIMULATOR),true) 28LOCAL_CFLAGS += -DSINGLE_PROCESS 29endif 30 31LOCAL_SHARED_LIBRARIES:= libui 32 33include $(BUILD_STATIC_LIBRARY) 34endif # USE_CAMERA_STUB 35 36# 37# libcameraservice 38# 39 40include $(CLEAR_VARS) 41 42LOCAL_SRC_FILES:= \ 43 CameraService.cpp 44 45LOCAL_SHARED_LIBRARIES:= \ 46 libui \ 47 libutils \ 48 libbinder \ 49 libcutils \ 50 libmedia \ 51 libcamera_client \ 52 libsurfaceflinger_client 53 54LOCAL_MODULE:= libcameraservice 55 56ifeq ($(TARGET_SIMULATOR),true) 57LOCAL_CFLAGS += -DSINGLE_PROCESS 58endif 59 60ifeq ($(USE_CAMERA_STUB), true) 61LOCAL_STATIC_LIBRARIES += libcamerastub 62else 63LOCAL_SHARED_LIBRARIES += libcamera 64endif 65 66include $(BUILD_SHARED_LIBRARY) 67