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