blob: 96cc512dc5d63e3a7c247c60a984840ee7e36b43 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001LOCAL_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 ($(USE_CAMERA_STUB),)
9USE_CAMERA_STUB:=false
10ifneq ($(filter sooner generic sim,$(TARGET_DEVICE)),)
11USE_CAMERA_STUB:=true
12endif #libcamerastub
13endif
14
15ifeq ($(USE_CAMERA_STUB),true)
16#
17# libcamerastub
18#
19
20include $(CLEAR_VARS)
21
22LOCAL_SRC_FILES:= \
23 CameraHardwareStub.cpp \
24 FakeCamera.cpp
25
26LOCAL_MODULE:= libcamerastub
27
28LOCAL_SHARED_LIBRARIES:= libui
29
30include $(BUILD_STATIC_LIBRARY)
31endif # USE_CAMERA_STUB
32
33#
34# libcameraservice
35#
36
37include $(CLEAR_VARS)
38
39LOCAL_SRC_FILES:= \
40 CameraService.cpp
41
42LOCAL_SHARED_LIBRARIES:= \
43 libui \
44 libutils \
Jason Samsb18b6912009-03-24 20:21:36 -070045 libcutils \
46 libmedia
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080047
48LOCAL_MODULE:= libcameraservice
49
50LOCAL_CFLAGS+=-DLOG_TAG=\"CameraService\"
51
52ifeq ($(USE_CAMERA_STUB), true)
53LOCAL_STATIC_LIBRARIES += libcamerastub
54LOCAL_CFLAGS += -include CameraHardwareStub.h
55else
56LOCAL_SHARED_LIBRARIES += libcamera
57endif
58
59include $(BUILD_SHARED_LIBRARY)
60