1# Copyright (C) 2008 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#disable build in PDK
16ifneq ($(TARGET_BUILD_PDK),true)
17
18LOCAL_PATH:= $(call my-dir)
19include $(CLEAR_VARS)
20
21LOCAL_SRC_FILES:= \
22       FaceDetector_jni.cpp \
23       Embedded/common/src/b_APIEm/DCR.c \
24       Embedded/common/src/b_APIEm/BFFaceFinder.c \
25       Embedded/common/src/b_APIEm/FaceFinder.c \
26       Embedded/common/src/b_APIEm/FaceFinderRef.c \
27       Embedded/common/src/b_APIEm/Functions.c \
28       Embedded/common/src/b_BasicEm/APh.c \
29       Embedded/common/src/b_BasicEm/APhArr.c \
30       Embedded/common/src/b_BasicEm/Complex.c \
31       Embedded/common/src/b_BasicEm/ComplexArr.c \
32       Embedded/common/src/b_BasicEm/Context.c \
33       Embedded/common/src/b_BasicEm/DynMemManager.c \
34       Embedded/common/src/b_BasicEm/Functions.c \
35       Embedded/common/src/b_BasicEm/Int16Arr.c \
36       Embedded/common/src/b_BasicEm/Int32Arr.c \
37       Embedded/common/src/b_BasicEm/Int8Arr.c \
38       Embedded/common/src/b_BasicEm/Math.c.arm \
39       Embedded/common/src/b_BasicEm/MemSeg.c \
40       Embedded/common/src/b_BasicEm/MemTbl.c \
41       Embedded/common/src/b_BasicEm/Memory.c \
42       Embedded/common/src/b_BasicEm/Phase.c \
43       Embedded/common/src/b_BasicEm/String.c \
44       Embedded/common/src/b_BasicEm/UInt16Arr.c \
45       Embedded/common/src/b_BasicEm/UInt32Arr.c \
46       Embedded/common/src/b_BasicEm/UInt8Arr.c \
47       Embedded/common/src/b_BitFeatureEm/BitParam.c \
48       Embedded/common/src/b_BitFeatureEm/Feature.c \
49       Embedded/common/src/b_BitFeatureEm/Functions.c \
50       Embedded/common/src/b_BitFeatureEm/I04Dns2x2Ftr.c \
51       Embedded/common/src/b_BitFeatureEm/I04Dns2x4Ftr.c \
52       Embedded/common/src/b_BitFeatureEm/I04Tld2x4Ftr.c \
53       Embedded/common/src/b_BitFeatureEm/L01Dns2x4Ftr.c \
54       Embedded/common/src/b_BitFeatureEm/L01Tld1x1Ftr.c \
55       Embedded/common/src/b_BitFeatureEm/L01Tld2x4Ftr.c \
56       Embedded/common/src/b_BitFeatureEm/L04Dns2x2Ftr.c \
57       Embedded/common/src/b_BitFeatureEm/L04Dns2x4Ftr.c \
58       Embedded/common/src/b_BitFeatureEm/L04Dns3x3Ftr.c \
59       Embedded/common/src/b_BitFeatureEm/L04Tld2x4Ftr.c \
60       Embedded/common/src/b_BitFeatureEm/L06Dns3x3Ftr.c \
61       Embedded/common/src/b_BitFeatureEm/L06Dns4x4Ftr.c \
62       Embedded/common/src/b_BitFeatureEm/L06DnsNx4x4Ftr.c \
63       Embedded/common/src/b_BitFeatureEm/LocalScanDetector.c \
64       Embedded/common/src/b_BitFeatureEm/LocalScanner.c \
65       Embedded/common/src/b_BitFeatureEm/ScanDetector.c \
66       Embedded/common/src/b_BitFeatureEm/Scanner.c \
67       Embedded/common/src/b_BitFeatureEm/Sequence.c \
68       Embedded/common/src/b_ImageEm/APhImage.c \
69       Embedded/common/src/b_ImageEm/ComplexImage.c \
70       Embedded/common/src/b_ImageEm/Flt16Image.c \
71       Embedded/common/src/b_ImageEm/Functions.c \
72       Embedded/common/src/b_ImageEm/HistoEq.c \
73       Embedded/common/src/b_ImageEm/UInt16ByteImage.c \
74       Embedded/common/src/b_ImageEm/UInt16BytePyrImage.c \
75       Embedded/common/src/b_ImageEm/UInt8Image.c \
76       Embedded/common/src/b_ImageEm/UInt32Image.c \
77       Embedded/common/src/b_ImageEm/UInt8PyramidalImage.c \
78       Embedded/common/src/b_TensorEm/Alt.c \
79       Embedded/common/src/b_TensorEm/Cluster2D.c \
80       Embedded/common/src/b_TensorEm/Cluster3D.c \
81       Embedded/common/src/b_TensorEm/CompactAlt.c \
82       Embedded/common/src/b_TensorEm/CompactMat.c \
83       Embedded/common/src/b_TensorEm/Flt16Alt2D.c \
84       Embedded/common/src/b_TensorEm/Flt16Alt3D.c \
85       Embedded/common/src/b_TensorEm/Flt16Mat2D.c \
86       Embedded/common/src/b_TensorEm/Flt16Mat3D.c \
87       Embedded/common/src/b_TensorEm/Flt16Vec.c \
88       Embedded/common/src/b_TensorEm/Flt16Vec2D.c \
89       Embedded/common/src/b_TensorEm/Flt16Vec3D.c \
90       Embedded/common/src/b_TensorEm/Functions.c \
91       Embedded/common/src/b_TensorEm/IdCluster2D.c \
92       Embedded/common/src/b_TensorEm/Int16Mat2D.c \
93       Embedded/common/src/b_TensorEm/Int16Rect.c \
94       Embedded/common/src/b_TensorEm/Int16Vec2D.c \
95       Embedded/common/src/b_TensorEm/Int16Vec3D.c \
96       Embedded/common/src/b_TensorEm/Int32Mat.c \
97       Embedded/common/src/b_TensorEm/MapSequence.c \
98       Embedded/common/src/b_TensorEm/Mat.c \
99       Embedded/common/src/b_TensorEm/Normalizer.c \
100       Embedded/common/src/b_TensorEm/RBFMap2D.c \
101       Embedded/common/src/b_TensorEm/SubVecMap.c \
102       Embedded/common/src/b_TensorEm/Uint32Rect.c \
103       Embedded/common/src/b_TensorEm/VectorMap.c \
104       FaceRecEm/common/src/b_FDSDK/DCR.c \
105       FaceRecEm/common/src/b_FDSDK/FaceFinder.c \
106       FaceRecEm/common/src/b_FDSDK/SDK.c
107##
108
109LOCAL_CFLAGS += -Depl_LINUX
110
111LOCAL_C_INCLUDES += \
112	external/neven/FaceRecEm/common/src/b_FDSDK \
113	$(JNI_H_INCLUDE) \
114	$(LOCAL_PATH)/FaceRecEm/common/src \
115	$(LOCAL_PATH)/Embedded/common/conf \
116	$(LOCAL_PATH)/Embedded/common/src \
117	$(LOCAL_PATH)/unix/src
118
119LOCAL_SHARED_LIBRARIES := \
120	libnativehelper \
121	libutils \
122	liblog \
123	libjnigraphics \
124	libcutils
125
126LOCAL_MODULE:= libFFTEm
127
128ALL_PREBUILT += $(TARGET_OUT)/usr/share/bmd/RFFspeed_501.bmd
129$(TARGET_OUT)/usr/share/bmd/RFFspeed_501.bmd : $(LOCAL_PATH)/Embedded/common/data/APIEm/Modules/RFFspeed_501.bmd | $(ACP)
130	$(transform-prebuilt-to-target)
131
132ALL_PREBUILT += $(TARGET_OUT)/usr/share/bmd/RFFstd_501.bmd
133$(TARGET_OUT)/usr/share/bmd/RFFstd_501.bmd : $(LOCAL_PATH)/Embedded/common/data/APIEm/Modules/RFFstd_501.bmd | $(ACP)
134	$(transform-prebuilt-to-target)
135
136
137include $(BUILD_SHARED_LIBRARY)
138
139endif #TARGET_BUILD_PDK
140