Home | History | Annotate | Download | only in CameraHal
      1 
      2 LOCAL_PATH:= $(call my-dir)
      3 
      4 # Temporary wrapper to disable the camera_test in non CPCAM mode.
      5 # The camera_test source code should respect the lack of
      6 # OMAP_ENHANCEMENT and OMAP_ENHANCEMENT_CPCAM macros in order to
      7 # be returned back into build.
      8 ifdef OMAP_ENHANCEMENT_CPCAM
      9 
     10 include $(CLEAR_VARS)
     11 
     12 LOCAL_SRC_FILES:= \
     13 	camera_test_surfacetexture.cpp \
     14 	camera_test_menu.cpp \
     15 	camera_test_script.cpp
     16 
     17 LOCAL_SHARED_LIBRARIES:= \
     18 	libdl \
     19 	libui \
     20 	libutils \
     21 	libcutils \
     22 	liblog \
     23 	libbinder \
     24 	libmedia \
     25 	libmedia_native \
     26 	libui \
     27 	libgui \
     28 	libcamera_client \
     29 	libEGL \
     30 	libGLESv2 \
     31 
     32 ifdef OMAP_ENHANCEMENT_CPCAM
     33 LOCAL_STATIC_LIBRARIES += \
     34     libcpcamcamera_client
     35 endif
     36 
     37 LOCAL_C_INCLUDES += \
     38 	frameworks/base/include/ui \
     39 	frameworks/base/include/surfaceflinger \
     40 	frameworks/base/include/camera \
     41 	frameworks/base/include/media
     42 
     43 LOCAL_MODULE:= camera_test
     44 LOCAL_MODULE_TAGS:= tests
     45 
     46 LOCAL_CFLAGS += -Wall -fno-short-enums -O0 -g -D___ANDROID___ $(ANDROID_API_CFLAGS)
     47 
     48 # Add TARGET FLAG for OMAP4 and OMAP5 boards only
     49 # First eliminate OMAP3 and then ensure that this is not used
     50 # for customer boards.
     51 ifneq ($(TARGET_BOARD_PLATFORM),omap3)
     52     ifeq ($(findstring omap, $(TARGET_BOARD_PLATFORM)),omap)
     53         LOCAL_CFLAGS += -DTARGET_OMAP4
     54     endif
     55 endif
     56 
     57 include $(BUILD_HEAPTRACKED_EXECUTABLE)
     58 
     59 
     60 include $(CLEAR_VARS)
     61 
     62 LOCAL_SRC_FILES:= \
     63 	surfacetexture_test.cpp
     64 
     65 LOCAL_SHARED_LIBRARIES:= \
     66 	libdl \
     67 	libui \
     68 	libutils \
     69 	libcutils \
     70 	liblog \
     71 	libbinder \
     72 	libmedia \
     73 	libui \
     74 	libgui \
     75 	libcamera_client \
     76 	libEGL \
     77 	libGLESv2 \
     78 	libion
     79 
     80 LOCAL_C_INCLUDES += \
     81 	frameworks/base/include/ui \
     82 	frameworks/base/include/surfaceflinger \
     83 	frameworks/base/include/camera \
     84 	frameworks/base/include/media \
     85 	hardware/ti/omap4xxx/ion
     86 
     87 LOCAL_MODULE:= surfacetexture_test
     88 LOCAL_MODULE_TAGS:= tests
     89 
     90 LOCAL_CFLAGS += -Wall -fno-short-enums -O0 -g -D___ANDROID___ $(ANDROID_API_CFLAGS)
     91 
     92 ifeq ($(TARGET_BOARD_PLATFORM),omap4)
     93     LOCAL_CFLAGS += -DTARGET_OMAP4
     94 endif
     95 
     96 include $(BUILD_HEAPTRACKED_EXECUTABLE)
     97 
     98 endif
     99