blob: be78a6285b14220e2283d9307eccacf3842c466e [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 \
Mathias Agopian25ba5b62009-05-18 15:08:03 -070045 libbinder \
Jason Samsdafe8ac2009-03-24 20:21:49 -070046 libcutils \
47 libmedia
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080048
49LOCAL_MODULE:= libcameraservice
50
51LOCAL_CFLAGS+=-DLOG_TAG=\"CameraService\"
52
53ifeq ($(USE_CAMERA_STUB), true)
54LOCAL_STATIC_LIBRARIES += libcamerastub
55LOCAL_CFLAGS += -include CameraHardwareStub.h
56else
57LOCAL_SHARED_LIBRARIES += libcamera
58endif
59
60include $(BUILD_SHARED_LIBRARY)
61