• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15package {
16    default_applicable_licenses: ["external_neven_license"],
17}
18
19// Added automatically by a large-scale-change
20// See: http://go/android-license-faq
21license {
22    name: "external_neven_license",
23    visibility: [":__subpackages__"],
24    license_kinds: [
25        "SPDX-license-identifier-Apache-2.0",
26    ],
27    license_text: [
28        "NOTICE",
29    ],
30}
31
32cc_library_shared {
33    name: "libFFTEm",
34
35    srcs: [
36        "FaceDetector_jni.cpp",
37        "Embedded/common/src/b_APIEm/DCR.c",
38        "Embedded/common/src/b_APIEm/BFFaceFinder.c",
39        "Embedded/common/src/b_APIEm/FaceFinder.c",
40        "Embedded/common/src/b_APIEm/FaceFinderRef.c",
41        "Embedded/common/src/b_APIEm/Functions.c",
42        "Embedded/common/src/b_BasicEm/APh.c",
43        "Embedded/common/src/b_BasicEm/APhArr.c",
44        "Embedded/common/src/b_BasicEm/Complex.c",
45        "Embedded/common/src/b_BasicEm/ComplexArr.c",
46        "Embedded/common/src/b_BasicEm/Context.c",
47        "Embedded/common/src/b_BasicEm/DynMemManager.c",
48        "Embedded/common/src/b_BasicEm/Functions.c",
49        "Embedded/common/src/b_BasicEm/Int16Arr.c",
50        "Embedded/common/src/b_BasicEm/Int32Arr.c",
51        "Embedded/common/src/b_BasicEm/Int8Arr.c",
52        "Embedded/common/src/b_BasicEm/Math.c",
53        "Embedded/common/src/b_BasicEm/MemSeg.c",
54        "Embedded/common/src/b_BasicEm/MemTbl.c",
55        "Embedded/common/src/b_BasicEm/Memory.c",
56        "Embedded/common/src/b_BasicEm/Phase.c",
57        "Embedded/common/src/b_BasicEm/String.c",
58        "Embedded/common/src/b_BasicEm/UInt16Arr.c",
59        "Embedded/common/src/b_BasicEm/UInt32Arr.c",
60        "Embedded/common/src/b_BasicEm/UInt8Arr.c",
61        "Embedded/common/src/b_BitFeatureEm/BitParam.c",
62        "Embedded/common/src/b_BitFeatureEm/Feature.c",
63        "Embedded/common/src/b_BitFeatureEm/Functions.c",
64        "Embedded/common/src/b_BitFeatureEm/I04Dns2x2Ftr.c",
65        "Embedded/common/src/b_BitFeatureEm/I04Dns2x4Ftr.c",
66        "Embedded/common/src/b_BitFeatureEm/I04Tld2x4Ftr.c",
67        "Embedded/common/src/b_BitFeatureEm/L01Dns2x4Ftr.c",
68        "Embedded/common/src/b_BitFeatureEm/L01Tld1x1Ftr.c",
69        "Embedded/common/src/b_BitFeatureEm/L01Tld2x4Ftr.c",
70        "Embedded/common/src/b_BitFeatureEm/L04Dns2x2Ftr.c",
71        "Embedded/common/src/b_BitFeatureEm/L04Dns2x4Ftr.c",
72        "Embedded/common/src/b_BitFeatureEm/L04Dns3x3Ftr.c",
73        "Embedded/common/src/b_BitFeatureEm/L04Tld2x4Ftr.c",
74        "Embedded/common/src/b_BitFeatureEm/L06Dns3x3Ftr.c",
75        "Embedded/common/src/b_BitFeatureEm/L06Dns4x4Ftr.c",
76        "Embedded/common/src/b_BitFeatureEm/L06DnsNx4x4Ftr.c",
77        "Embedded/common/src/b_BitFeatureEm/LocalScanDetector.c",
78        "Embedded/common/src/b_BitFeatureEm/LocalScanner.c",
79        "Embedded/common/src/b_BitFeatureEm/ScanDetector.c",
80        "Embedded/common/src/b_BitFeatureEm/Scanner.c",
81        "Embedded/common/src/b_BitFeatureEm/Sequence.c",
82        "Embedded/common/src/b_ImageEm/APhImage.c",
83        "Embedded/common/src/b_ImageEm/ComplexImage.c",
84        "Embedded/common/src/b_ImageEm/Flt16Image.c",
85        "Embedded/common/src/b_ImageEm/Functions.c",
86        "Embedded/common/src/b_ImageEm/HistoEq.c",
87        "Embedded/common/src/b_ImageEm/UInt16ByteImage.c",
88        "Embedded/common/src/b_ImageEm/UInt16BytePyrImage.c",
89        "Embedded/common/src/b_ImageEm/UInt8Image.c",
90        "Embedded/common/src/b_ImageEm/UInt32Image.c",
91        "Embedded/common/src/b_ImageEm/UInt8PyramidalImage.c",
92        "Embedded/common/src/b_TensorEm/Alt.c",
93        "Embedded/common/src/b_TensorEm/Cluster2D.c",
94        "Embedded/common/src/b_TensorEm/Cluster3D.c",
95        "Embedded/common/src/b_TensorEm/CompactAlt.c",
96        "Embedded/common/src/b_TensorEm/CompactMat.c",
97        "Embedded/common/src/b_TensorEm/Flt16Alt2D.c",
98        "Embedded/common/src/b_TensorEm/Flt16Alt3D.c",
99        "Embedded/common/src/b_TensorEm/Flt16Mat2D.c",
100        "Embedded/common/src/b_TensorEm/Flt16Mat3D.c",
101        "Embedded/common/src/b_TensorEm/Flt16Vec.c",
102        "Embedded/common/src/b_TensorEm/Flt16Vec2D.c",
103        "Embedded/common/src/b_TensorEm/Flt16Vec3D.c",
104        "Embedded/common/src/b_TensorEm/Functions.c",
105        "Embedded/common/src/b_TensorEm/IdCluster2D.c",
106        "Embedded/common/src/b_TensorEm/Int16Mat2D.c",
107        "Embedded/common/src/b_TensorEm/Int16Rect.c",
108        "Embedded/common/src/b_TensorEm/Int16Vec2D.c",
109        "Embedded/common/src/b_TensorEm/Int16Vec3D.c",
110        "Embedded/common/src/b_TensorEm/Int32Mat.c",
111        "Embedded/common/src/b_TensorEm/MapSequence.c",
112        "Embedded/common/src/b_TensorEm/Mat.c",
113        "Embedded/common/src/b_TensorEm/Normalizer.c",
114        "Embedded/common/src/b_TensorEm/RBFMap2D.c",
115        "Embedded/common/src/b_TensorEm/SubVecMap.c",
116        "Embedded/common/src/b_TensorEm/Uint32Rect.c",
117        "Embedded/common/src/b_TensorEm/VectorMap.c",
118        "FaceRecEm/common/src/b_FDSDK/DCR.c",
119        "FaceRecEm/common/src/b_FDSDK/FaceFinder.c",
120        "FaceRecEm/common/src/b_FDSDK/SDK.c",
121    ],
122
123    cflags: [
124        "-Wall",
125        "-Werror",
126        "-Wno-enum-conversion",
127        "-Depl_LINUX",
128        "-Wno-unused-parameter",
129    ],
130
131    header_libs: ["jni_headers"],
132
133    local_include_dirs: [
134        "FaceRecEm/common/src/b_FDSDK",
135        "FaceRecEm/common/src",
136        "Embedded/common/conf",
137        "Embedded/common/src",
138    ],
139
140    shared_libs: [
141        "libnativehelper",
142        "libutils",
143        "liblog",
144        "libjnigraphics",
145        "libcutils",
146    ],
147
148
149    required: [
150        "RFFspeed_501.bmd",
151        "RFFstd_501.bmd",
152    ],
153
154    //disable build in PDK
155    product_variables: {
156        pdk: {
157            enabled: false,
158        },
159    },
160}
161
162prebuilt_usr_share {
163    name: "RFFspeed_501.bmd",
164
165    //disable build in PDK
166    product_variables: {
167        pdk: {
168            enabled: false,
169        },
170    },
171    src: "Embedded/common/data/APIEm/Modules/RFFspeed_501.bmd",
172    sub_dir: "bmd",
173}
174
175prebuilt_usr_share {
176    name: "RFFstd_501.bmd",
177
178    //disable build in PDK
179    product_variables: {
180        pdk: {
181            enabled: false,
182        },
183    },
184    src: "Embedded/common/data/APIEm/Modules/RFFstd_501.bmd",
185    sub_dir: "bmd",
186}
187