blob: 2dfe659a2e042273966f781c5fc4ada1df9e8e62 [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.
The Android Open Source Projecte09fd9e2008-12-17 18:05:43 -08007
8ifeq ($(USE_CAMERA_STUB),)
The Android Open Source Project7c1b96a2008-10-21 07:00:00 -07009USE_CAMERA_STUB:=false
The Android Open Source Projecte09fd9e2008-12-17 18:05:43 -080010ifneq ($(filter sooner generic sim,$(TARGET_DEVICE)),)
11USE_CAMERA_STUB:=true
The Android Open Source Project7c1b96a2008-10-21 07:00:00 -070012endif #libcamerastub
The Android Open Source Projecte09fd9e2008-12-17 18:05:43 -080013endif
The Android Open Source Project7c1b96a2008-10-21 07:00:00 -070014
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 \
45 libcutils
46
47LOCAL_MODULE:= libcameraservice
48
49LOCAL_CFLAGS+=-DLOG_TAG=\"CameraService\"
50
51ifeq ($(USE_CAMERA_STUB), true)
52LOCAL_STATIC_LIBRARIES += libcamerastub
53LOCAL_CFLAGS += -include CameraHardwareStub.h
54else
The Android Open Source Projecte09fd9e2008-12-17 18:05:43 -080055LOCAL_SHARED_LIBRARIES += libcamera
The Android Open Source Project7c1b96a2008-10-21 07:00:00 -070056endif
57
58include $(BUILD_SHARED_LIBRARY)
59