blob: ecaebffc2347b07af6518873b4a61e32a621e2fb [file] [log] [blame]
The Android Open Source Projectedbf3b62009-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 Nelissen7907df72009-08-13 09:24:47 -070028ifeq ($(TARGET_SIMULATOR),true)
29LOCAL_CFLAGS += -DSINGLE_PROCESS
30endif
31
The Android Open Source Projectedbf3b62009-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 Agopian208059f2009-05-18 15:08:03 -070049 libbinder \
Jason Sams3cff3022009-03-24 20:21:49 -070050 libcutils \
51 libmedia
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080052
53LOCAL_MODULE:= libcameraservice
54
Marco Nelissen7907df72009-08-13 09:24:47 -070055LOCAL_CFLAGS += -DLOG_TAG=\"CameraService\"
56
57ifeq ($(TARGET_SIMULATOR),true)
58LOCAL_CFLAGS += -DSINGLE_PROCESS
59endif
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080060
61ifeq ($(USE_CAMERA_STUB), true)
62LOCAL_STATIC_LIBRARIES += libcamerastub
63LOCAL_CFLAGS += -include CameraHardwareStub.h
64else
65LOCAL_SHARED_LIBRARIES += libcamera
66endif
67
68include $(BUILD_SHARED_LIBRARY)
69