1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
/*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
cc_defaults {
name: "renderscripttoolkit_native_defaults",
sdk_version: "current",
static_libs: [
"cpufeatures",
],
shared_libs: [
"libjnigraphics",
"liblog",
],
cflags: [
"-Wall",
"-Werror",
"-Wextra",
"-Wno-unused-parameter",
"-Wno-unused-variable",
"-Wthread-safety",
],
stl: "libc++_static",
}
cc_library_static {
name: "librenderscripttoolkit_native_static",
defaults: ["renderscripttoolkit_native_defaults"],
srcs: [
"Blend.cpp",
"Blur.cpp",
"ColorMatrix.cpp",
"Convolve3x3.cpp",
"Convolve5x5.cpp",
"Histogram.cpp",
"Lut.cpp",
"Lut3d.cpp",
"RenderScriptToolkit.cpp",
"Resize.cpp",
"TaskProcessor.cpp",
"Utils.cpp",
"YuvToRgb.cpp",
],
arch: {
arm64: {
cflags: [
"-DARCH_ARM64_HAVE_NEON",
"-DARCH_ARM64_USE_INTRINSICS",
"-DARCH_ARM_USE_INTRINSICS",
],
srcs: [
"Blend_advsimd.S",
"Blur_advsimd.S",
"ColorMatrix_advsimd.S",
"Convolve_advsimd.S",
"Lut3d_advsimd.S",
"Resize_advsimd.S",
"YuvToRgb_advsimd.S",
],
},
arm: {
cflags: [
"-DARCH_ARM_HAVE_VFP",
"-DARCH_ARM_USE_INTRINSICS",
],
srcs: [
"Blend_neon.S",
"Blur_neon.S",
"ColorMatrix_neon.S",
"Convolve_neon.S",
"Lut3d_neon.S",
"Resize_neon.S",
"YuvToRgb_neon.S",
],
asflags: ["-mfpu=neon"],
neon: {
cflags: [
"-DARCH_ARM_HAVE_NEON",
],
},
},
},
}
cc_library_shared {
name: "librenderscript-toolkit",
defaults: ["renderscripttoolkit_native_defaults"],
srcs: ["JniEntryPoints.cpp"],
static_libs: [
"librenderscripttoolkit_native_static",
],
header_libs: ["jni_headers"],
}
|