Home | History | Annotate | Download | only in camera
      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 
     15 
     16 LOCAL_PATH := $(call my-dir)
     17 
     18 include $(CLEAR_VARS)
     19 
     20 LOCAL_MODULE_RELATIVE_PATH := hw
     21 LOCAL_CFLAGS += -fno-short-enums -DQEMU_HARDWARE
     22 LOCAL_CFLAGS += -Wno-unused-parameter -Wno-missing-field-initializers
     23 LOCAL_SHARED_LIBRARIES:= \
     24     libbinder \
     25     liblog \
     26     libutils \
     27     libcutils \
     28     libcamera_client \
     29     libui \
     30     libdl
     31 
     32 # JPEG conversion libraries and includes.
     33 LOCAL_SHARED_LIBRARIES += \
     34 	libjpeg \
     35 	libcamera_metadata
     36 
     37 LOCAL_C_INCLUDES += external/jpeg \
     38 	frameworks/native/include/media/hardware \
     39 	$(LOCAL_PATH)/../opengl/system/OpenglSystemCommon \
     40 	$(call include-path-for, camera)
     41 
     42 LOCAL_SRC_FILES := \
     43 	EmulatedCameraHal.cpp \
     44 	EmulatedCameraFactory.cpp \
     45 	EmulatedCameraHotplugThread.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 		fake-pipeline2/Scene.cpp \
     62 		fake-pipeline2/Sensor.cpp \
     63 		fake-pipeline2/JpegCompressor.cpp \
     64 	EmulatedCamera3.cpp \
     65 		EmulatedFakeCamera3.cpp
     66 
     67 ifeq ($(TARGET_PRODUCT),vbox_x86)
     68 LOCAL_MODULE := camera.vbox_x86
     69 else
     70 LOCAL_MODULE := camera.goldfish
     71 endif
     72 
     73 include $(BUILD_SHARED_LIBRARY)
     74 
     75 #################################################################
     76 ifneq ($(TARGET_BUILD_PDK),true)
     77 
     78 include $(CLEAR_VARS)
     79 
     80 LOCAL_MODULE_RELATIVE_PATH := hw
     81 LOCAL_CFLAGS += -fno-short-enums -DQEMU_HARDWARE
     82 LOCAL_CFLAGS += -Wno-unused-parameter
     83 LOCAL_SHARED_LIBRARIES:= \
     84     libcutils \
     85     liblog \
     86     libskia \
     87     libandroid_runtime
     88 
     89 LOCAL_C_INCLUDES += external/jpeg \
     90                     external/skia/include/core/ \
     91                     frameworks/base/core/jni/android/graphics \
     92                     frameworks/native/include
     93 
     94 LOCAL_SRC_FILES := JpegStub.cpp
     95 
     96 LOCAL_MODULE := camera.goldfish.jpeg
     97 
     98 include $(BUILD_SHARED_LIBRARY)
     99 
    100 endif # !PDK
    101