• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2011 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15ifndef BUILD_EMULATOR_CAMERA_HAL
16BUILD_EMULATOR_CAMERA_HAL := true
17
18LOCAL_PATH := $(call my-dir)
19
20include $(CLEAR_VARS)
21
22LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
23LOCAL_CFLAGS += -fno-short-enums -DQEMU_HARDWARE
24LOCAL_SHARED_LIBRARIES:= \
25    libbinder \
26    libutils \
27    libcutils \
28    libcamera_client \
29    libui \
30
31# JPEG conversion libraries and includes.
32LOCAL_SHARED_LIBRARIES += \
33	libjpeg \
34	libskia \
35	libandroid_runtime \
36
37LOCAL_C_INCLUDES += external/jpeg \
38	external/skia/include/core/ \
39	frameworks/native/include/media/hardware \
40	frameworks/base/core/jni/android/graphics \
41	$(call include-path-for, camera)
42
43LOCAL_SRC_FILES := \
44	EmulatedCameraHal.cpp \
45    EmulatedCameraFactory.cpp \
46    EmulatedBaseCamera.cpp \
47    EmulatedCamera.cpp \
48	EmulatedCameraDevice.cpp \
49	EmulatedQemuCamera.cpp \
50	EmulatedQemuCameraDevice.cpp \
51	EmulatedFakeCamera.cpp \
52	EmulatedFakeCameraDevice.cpp \
53	Converters.cpp \
54	PreviewWindow.cpp \
55	CallbackNotifier.cpp \
56	QemuClient.cpp \
57	JpegCompressor.cpp \
58    EmulatedCamera2.cpp \
59	EmulatedFakeCamera2.cpp \
60	EmulatedQemuCamera2.cpp
61
62ifeq ($(TARGET_PRODUCT),vbox_x86)
63LOCAL_MODULE := camera.vbox_x86
64else
65LOCAL_MODULE := camera.goldfish
66endif
67
68LOCAL_MODULE_TAGS := debug
69include $(BUILD_SHARED_LIBRARY)
70
71endif # BUILD_EMULATOR_CAMERA_HAL
72