diff options
Diffstat (limited to 'test/CameraHal/Android.mk')
-rw-r--r-- | test/CameraHal/Android.mk | 67 |
1 files changed, 62 insertions, 5 deletions
diff --git a/test/CameraHal/Android.mk b/test/CameraHal/Android.mk index c7da48a..d704540 100644 --- a/test/CameraHal/Android.mk +++ b/test/CameraHal/Android.mk @@ -1,8 +1,16 @@ + LOCAL_PATH:= $(call my-dir) +# Temporary wrapper to disable the camera_test in non CPCAM mode. +# The camera_test source code should respect the lack of +# OMAP_ENHANCEMENT and OMAP_ENHANCEMENT_CPCAM macros in order to +# be returned back into build. +ifdef OMAP_ENHANCEMENT_CPCAM + include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ + camera_test_surfacetexture.cpp \ camera_test_menu.cpp \ camera_test_script.cpp @@ -15,19 +23,68 @@ LOCAL_SHARED_LIBRARIES:= \ libmedia \ libui \ libgui \ - libcamera_client + libcamera_client \ + libEGL \ + libGLESv2 \ + +ifdef OMAP_ENHANCEMENT_CPCAM +LOCAL_STATIC_LIBRARIES += \ + libcpcamcamera_client +endif LOCAL_C_INCLUDES += \ frameworks/base/include/ui \ frameworks/base/include/surfaceflinger \ frameworks/base/include/camera \ - frameworks/base/include/media \ - $(PV_INCLUDES) + frameworks/base/include/media LOCAL_MODULE:= camera_test LOCAL_MODULE_TAGS:= tests -LOCAL_CFLAGS += -Wall -fno-short-enums -O0 -g -D___ANDROID___ +LOCAL_CFLAGS += -Wall -fno-short-enums -O0 -g -D___ANDROID___ $(ANDROID_API_CFLAGS) + +# Add TARGET FLAG for OMAP4 and OMAP5 boards only +# First eliminate OMAP3 and then ensure that this is not used +# for customer boards. +ifneq ($(TARGET_BOARD_PLATFORM),omap3) + ifeq ($(findstring omap, $(TARGET_BOARD_PLATFORM)),omap) + LOCAL_CFLAGS += -DTARGET_OMAP4 + endif +endif + +include $(BUILD_HEAPTRACKED_EXECUTABLE) + + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES:= \ + surfacetexture_test.cpp + +LOCAL_SHARED_LIBRARIES:= \ + libdl \ + libui \ + libutils \ + libcutils \ + libbinder \ + libmedia \ + libui \ + libgui \ + libcamera_client \ + libEGL \ + libGLESv2 \ + libion + +LOCAL_C_INCLUDES += \ + frameworks/base/include/ui \ + frameworks/base/include/surfaceflinger \ + frameworks/base/include/camera \ + frameworks/base/include/media \ + hardware/ti/omap4xxx/ion + +LOCAL_MODULE:= surfacetexture_test +LOCAL_MODULE_TAGS:= tests + +LOCAL_CFLAGS += -Wall -fno-short-enums -O0 -g -D___ANDROID___ $(ANDROID_API_CFLAGS) ifeq ($(TARGET_BOARD_PLATFORM),omap4) LOCAL_CFLAGS += -DTARGET_OMAP4 @@ -35,4 +92,4 @@ endif include $(BUILD_HEAPTRACKED_EXECUTABLE) - +endif |