1 ACLOCAL_AMFLAGS = -I m4 2 3 #libcamera.so 4 lib_LTLIBRARIES = libcamera.la 5 6 libcamera_la_CFLAGS := $(DEBUG_CFLAGS) 7 libcamera_la_CFLAGS += -DAMSS_VERSION=$(AMSS_VERSION) 8 libcamera_la_CFLAGS += -DMSM_CAMERA_GCC 9 libcamera_la_CFLAGS += -DLINUX_ENABLED 10 libcamera_la_CFLAGS += -Dstrlcpy=g_strlcpy 11 libcamera_la_CFLAGS += -fPIC 12 13 LOCAL_CFLAGS:= -DDLOPEN_LIBMMCAMERA=1 14 15 libcamera_la_CFLAGS += -DHW_ENCODE 16 17 if MSM7X27A 18 libcamera_la_CFLAGS+= -DNUM_PREVIEW_BUFFERS=6 19 libcamera_la_CFLAGS+= -DVFE_7X27A 20 else 21 libcamera_la_CFLAGS+= -DNUM_PREVIEW_BUFFERS=4 22 endif 23 24 # To Choose neon/C routines for YV12 conversion 25 libcamera_la_CFLAGS+= -DUSE_NEON_CONVERSION 26 # Uncomment below line to enable smooth zoom 27 #libcamera_la_CFLAGS+= -DCAMERA_SMOOTH_ZOOM 28 29 libcamera_la_SOURCES := mm_camera.c 30 libcamera_la_SOURCES += mm_camera_channel.c 31 libcamera_la_SOURCES += mm_camera_helper.c 32 libcamera_la_SOURCES += mm_camera_interface2.c 33 libcamera_la_SOURCES += mm_camera_notify.c 34 libcamera_la_SOURCES += mm_camera_poll_thread.c 35 libcamera_la_SOURCES += mm_camera_sock.c 36 libcamera_la_SOURCES += mm_camera_stream.c 37 38 if BUILD_JPEG 39 libcamera_la_SOURCES += mm_jpeg_encoder.c 40 libcamera_la_SOURCES += mm_omx_jpeg_encoder.c 41 endif 42 43 if BUILD_UNIFIED_CODE 44 if MSM8960 45 libcamera_la_SOURCES += QCameraHAL.cpp 46 libcamera_la_SOURCES += QCameraHWI_Parm.cpp 47 libcamera_la_SOURCES += QCameraHWI.cpp 48 libcamera_la_SOURCES += QCameraHWI_Preview.cpp 49 libcamera_la_SOURCES += QCameraHWI_Record.cpp 50 libcamera_la_SOURCES += QCameraHWI_Still.cpp 51 libcamera_la_SOURCES += QCameraHWI_Mem.cpp 52 libcamera_la_SOURCES += QCameraHWI_Display.cpp 53 libcamera_la_SOURCES += QCameraStream.cpp 54 libcamera_la_SOURCES += QualcommCamera2.cpp 55 elif MSM7X27A 56 libcamera_la_SOURCES += QCameraHAL.cpp 57 libcamera_la_SOURCES += QCameraHWI_Parm.cpp 58 libcamera_la_SOURCES += QCameraHWI.cpp 59 libcamera_la_SOURCES += QCameraHWI_Preview_7x27A.cpp 60 libcamera_la_SOURCES += QCameraHWI_Record_7x27A.cpp 61 libcamera_la_SOURCES += QCameraHWI_Still.cpp 62 libcamera_la_SOURCES += QCameraHWI_Mem.cpp 63 libcamera_la_SOURCES += QCameraHWI_Display.cpp 64 libcamera_la_SOURCES += QCameraStream.cpp 65 libcamera_la_SOURCES += QualcommCamera2.cpp 66 endif 67 endif 68 69 libcamera_la_LDFLAGS := $(DEBUG_LDFLAGS) 70 libcamera_la_LDFLAGS += -shared 71 libcamera_la_LIBADD = -ldl 72 73 dirs := 74 SUBDIRS = $(dirs) 75 76