1 # Copyright (C) 2011 The Android Open Source Project
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 LOCAL_PATH := $(call my-dir)
20 # Emulator camera module########################################################
22 emulator_camera_module_relative_path := hw
23 emulator_camera_cflags := -fno-short-enums -DQEMU_HARDWARE
24 emulator_camera_cflags += -Wno-unused-parameter -Wno-missing-field-initializers
25 emulator_camera_clang_flags := -Wno-c++11-narrowing
26 emulator_camera_shared_libraries := \
37 emulator_camera_c_includes := external/jpeg \
38 frameworks/native/include/media/hardware \
39 $(LOCAL_PATH)/../opengl/system/OpenglSystemCommon \
40 $(call include-path-for, camera)
42 emulator_camera_src := \
43 EmulatedCameraHal.cpp \
44 EmulatedCameraFactory.cpp \
45 EmulatedCameraHotplugThread.cpp \
46 EmulatedBaseCamera.cpp \
48 EmulatedCameraDevice.cpp \
49 EmulatedQemuCamera.cpp \
50 EmulatedQemuCameraDevice.cpp \
51 EmulatedFakeCamera.cpp \
52 EmulatedFakeCameraDevice.cpp \
55 CallbackNotifier.cpp \
59 EmulatedFakeCamera2.cpp \
60 EmulatedQemuCamera2.cpp \
61 fake-pipeline2/Scene.cpp \
62 fake-pipeline2/Sensor.cpp \
63 fake-pipeline2/JpegCompressor.cpp \
65 EmulatedFakeCamera3.cpp
67 # Emulated camera - goldfish / vbox_x86 build###################################
69 LOCAL_MODULE_RELATIVE_PATH := ${emulator_camera_module_relative_path}
70 LOCAL_CFLAGS := ${emulator_camera_cflags}
71 LOCAL_CLANG_CFLAGS += ${emulator_camera_clang_flags}
73 LOCAL_SHARED_LIBRARIES := ${emulator_camera_shared_libraries}
74 LOCAL_C_INCLUDES += ${emulator_camera_c_includes}
75 LOCAL_SRC_FILES := ${emulator_camera_src}
77 ifeq ($(TARGET_PRODUCT),vbox_x86)
78 LOCAL_MODULE := camera.vbox_x86
80 LOCAL_MODULE := camera.goldfish
83 include $(BUILD_SHARED_LIBRARY)
85 # Emulator camera - ranchu build################################################
89 LOCAL_MODULE_RELATIVE_PATH := ${emulator_camera_module_relative_path}
90 LOCAL_CFLAGS := ${emulator_camera_cflags}
91 LOCAL_CLANG_CFLAGS += ${emulator_camera_clang_flags}
93 LOCAL_SHARED_LIBRARIES := ${emulator_camera_shared_libraries}
94 LOCAL_C_INCLUDES += ${emulator_camera_c_includes}
95 LOCAL_SRC_FILES := ${emulator_camera_src}
97 LOCAL_MODULE := camera.ranchu
99 include $(BUILD_SHARED_LIBRARY)
101 # JPEG stub#####################################################################
103 ifneq ($(TARGET_BUILD_PDK),true)
105 include $(CLEAR_VARS)
107 jpeg_module_relative_path := hw
108 jpeg_cflags := -fno-short-enums -DQEMU_HARDWARE
109 jpeg_cflags += -Wno-unused-parameter
110 jpeg_clang_flags += -Wno-c++11-narrowing
111 jpeg_shared_libraries := \
116 jpeg_c_includes := external/libjpeg-turbo \
117 external/skia/include/core/ \
118 frameworks/base/core/jni/android/graphics \
119 frameworks/native/include
120 jpeg_src := JpegStub.cpp
122 # JPEG stub - goldfish build####################################################
124 LOCAL_MODULE_RELATIVE_PATH := ${jpeg_module_relative_path}
125 LOCAL_CFLAGS += ${jpeg_cflags}
126 LOCAL_CLANG_CFLAGS += ${jpeg_clangflags}
128 LOCAL_SHARED_LIBRARIES := ${jpeg_shared_libraries}
129 LOCAL_C_INCLUDES += ${jpeg_c_includes}
130 LOCAL_SRC_FILES := ${jpeg_src}
132 LOCAL_MODULE := camera.goldfish.jpeg
134 include $(BUILD_SHARED_LIBRARY)
136 # JPEG stub - ranchu build######################################################
138 include ${CLEAR_VARS}
140 LOCAL_MODULE := camera.ranchu.jpeg
142 LOCAL_MODULE_RELATIVE_PATH := ${jpeg_module_relative_path}
143 LOCAL_CFLAGS += ${jpeg_cflags}
144 LOCAL_CLANG_CFLAGS += ${jpeg_clangflags}
146 LOCAL_SHARED_LIBRARIES := ${jpeg_shared_libraries}
147 LOCAL_C_INCLUDES += ${jpeg_c_includes}
148 LOCAL_SRC_FILES := ${jpeg_src}
150 include $(BUILD_SHARED_LIBRARY)