blob: 4e7d6d23e91624c10310843a92c323d2b88d6258 [file] [log] [blame]
The Android Open Source Project7c1b96a2008-10-21 07:00:00 -07001LOCAL_PATH:= $(call my-dir)
2
3#
4# Set USE_CAMERA_STUB for non-emulator and non-simulator builds, if you want
5# the camera service to use the fake camera. For emulator or simulator builds,
6# we always use the fake camera.
7#
8ifeq ($(BOARD_CAMERA_LIBRARIES),)
9USE_CAMERA_STUB:=true
10else
11USE_CAMERA_STUB:=false
12endif #libcamerastub
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
27LOCAL_SHARED_LIBRARIES:= libui
28
29include $(BUILD_STATIC_LIBRARY)
30endif # USE_CAMERA_STUB
31
32#
33# libcameraservice
34#
35
36include $(CLEAR_VARS)
37
38LOCAL_SRC_FILES:= \
39 CameraService.cpp
40
41LOCAL_SHARED_LIBRARIES:= \
42 libui \
43 libutils \
44 libcutils
45
46LOCAL_MODULE:= libcameraservice
47
48LOCAL_CFLAGS+=-DLOG_TAG=\"CameraService\"
49
50ifeq ($(USE_CAMERA_STUB), true)
51LOCAL_STATIC_LIBRARIES += libcamerastub
52LOCAL_CFLAGS += -include CameraHardwareStub.h
53else
54LOCAL_SHARED_LIBRARIES += $(BOARD_CAMERA_LIBRARIES)
55endif
56
57include $(BUILD_SHARED_LIBRARY)
58