blob: df5c166b2794c1390cfe8600f6fa17caf78d64bb [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
Marco Nelissenae7f3c52009-08-13 09:24:47 -070028ifeq ($(TARGET_SIMULATOR),true)
29LOCAL_CFLAGS += -DSINGLE_PROCESS
30endif
31
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080032LOCAL_SHARED_LIBRARIES:= libui
33
34include $(BUILD_STATIC_LIBRARY)
35endif # USE_CAMERA_STUB
36
37#
38# libcameraservice
39#
40
41include $(CLEAR_VARS)
42
43LOCAL_SRC_FILES:= \
44 CameraService.cpp
45
46LOCAL_SHARED_LIBRARIES:= \
47 libui \
48 libutils \
Mathias Agopian25ba5b62009-05-18 15:08:03 -070049 libbinder \
Jason Samsdafe8ac2009-03-24 20:21:49 -070050 libcutils \
Mathias Agopian000479f2010-02-09 17:46:37 -080051 libmedia \
52 libcamera_client \
53 libsurfaceflinger_client
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080054
55LOCAL_MODULE:= libcameraservice
56
Marco Nelissenae7f3c52009-08-13 09:24:47 -070057LOCAL_CFLAGS += -DLOG_TAG=\"CameraService\"
58
59ifeq ($(TARGET_SIMULATOR),true)
60LOCAL_CFLAGS += -DSINGLE_PROCESS
61endif
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080062
63ifeq ($(USE_CAMERA_STUB), true)
64LOCAL_STATIC_LIBRARIES += libcamerastub
65LOCAL_CFLAGS += -include CameraHardwareStub.h
66else
67LOCAL_SHARED_LIBRARIES += libcamera
68endif
69
70include $(BUILD_SHARED_LIBRARY)
71