• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2LOCAL_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.
8ifdef OMAP_ENHANCEMENT_CPCAM
9
10include $(CLEAR_VARS)
11
12LOCAL_SRC_FILES:= \
13	camera_test_surfacetexture.cpp \
14	camera_test_menu.cpp \
15	camera_test_script.cpp
16
17LOCAL_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
32ifdef OMAP_ENHANCEMENT_CPCAM
33LOCAL_STATIC_LIBRARIES += \
34    libcpcamcamera_client
35endif
36
37LOCAL_C_INCLUDES += \
38	frameworks/base/include/ui \
39	frameworks/base/include/surfaceflinger \
40	frameworks/base/include/camera \
41	frameworks/base/include/media
42
43LOCAL_MODULE:= camera_test
44LOCAL_MODULE_TAGS:= tests
45
46LOCAL_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.
51ifneq ($(TARGET_BOARD_PLATFORM),omap3)
52    ifeq ($(findstring omap, $(TARGET_BOARD_PLATFORM)),omap)
53        LOCAL_CFLAGS += -DTARGET_OMAP4
54    endif
55endif
56
57include $(BUILD_HEAPTRACKED_EXECUTABLE)
58
59
60include $(CLEAR_VARS)
61
62LOCAL_SRC_FILES:= \
63	surfacetexture_test.cpp
64
65LOCAL_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
80LOCAL_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
87LOCAL_MODULE:= surfacetexture_test
88LOCAL_MODULE_TAGS:= tests
89
90LOCAL_CFLAGS += -Wall -fno-short-enums -O0 -g -D___ANDROID___ $(ANDROID_API_CFLAGS)
91
92ifeq ($(TARGET_BOARD_PLATFORM),omap4)
93    LOCAL_CFLAGS += -DTARGET_OMAP4
94endif
95
96include $(BUILD_HEAPTRACKED_EXECUTABLE)
97
98endif
99