blob: 2f7cdb4ca169f2ee87db377d1a44b6743bcf8af2 [file] [log] [blame]
Zim3e45d9b2019-08-19 21:14:14 +01001//
2// Copyright (C) 2019 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17cc_library_shared {
18 name: "libfuse_jni",
19
20 srcs: [
21 "jni_init.cpp",
22 "com_android_providers_media_FuseDaemon.cpp",
23 "FuseDaemon.cpp",
Corina633099b2020-06-17 21:55:33 +010024 "FuseUtils.cpp",
shafikc3f62672019-08-30 11:15:48 +010025 "MediaProviderWrapper.cpp",
Sahana Raoa82bd6a2019-10-10 18:10:37 +010026 "ReaddirHelper.cpp",
shafikc3f62672019-08-30 11:15:48 +010027 "RedactionInfo.cpp",
Narayan Kamathaef84a12020-01-02 15:20:13 +000028 "node.cpp"
Zim3e45d9b2019-08-19 21:14:14 +010029 ],
30
Narayan Kamath88203dc2019-08-30 17:19:38 +010031 header_libs: [
32 "libnativehelper_header_only",
33 ],
34
shafikc3f62672019-08-30 11:15:48 +010035 export_include_dirs: ["include"],
36
Zim3e45d9b2019-08-19 21:14:14 +010037 shared_libs: [
38 "liblog",
Zim3e45d9b2019-08-19 21:14:14 +010039 "libfuse",
Zimec8d5722019-12-05 07:26:13 +000040 "libandroid"
Zim3e45d9b2019-08-19 21:14:14 +010041 ],
42
Narayan Kamath88203dc2019-08-30 17:19:38 +010043 static_libs: [
44 "libbase_ndk",
45 ],
46
Zim3e45d9b2019-08-19 21:14:14 +010047 cflags: [
48 "-Wall",
49 "-Werror",
50 "-Wno-unused-parameter",
51 "-Wno-unused-variable",
52 "-Wthread-safety",
53
54 "-D_FILE_OFFSET_BITS=64",
55 "-DFUSE_USE_VERSION=34",
56 ],
57
Jeff Sharkey7469b982019-08-28 16:51:02 -060058 tidy: true,
59 tidy_checks: [
60 "-google-runtime-int",
61 ],
62
Narayan Kamath88203dc2019-08-30 17:19:38 +010063 sdk_version: "current",
64 stl: "c++_static",
Nikita Ioffe8851c7c2020-11-03 22:58:11 +000065 min_sdk_version: "30",
Jeff Sharkey7469b982019-08-28 16:51:02 -060066}
Narayan Kamathaef84a12020-01-02 15:20:13 +000067
68cc_test {
69 name: "fuse_node_test",
Kimberly Kreider3a4a3582020-12-15 16:19:16 -080070 test_suites: ["device-tests", "mts-mediaprovider"],
Jeff Sharkeycccb2ae2020-05-08 16:09:54 -060071 test_config: "fuse_node_test.xml",
Jeff Sharkeyd571f8c2020-04-08 21:37:38 -060072
73 compile_multilib: "both",
74 multilib: {
75 lib32: { suffix: "32", },
76 lib64: { suffix: "64", },
77 },
78
Narayan Kamathaef84a12020-01-02 15:20:13 +000079 srcs: [
80 "node_test.cpp",
81 "node.cpp",
82 "ReaddirHelper.cpp",
83 "RedactionInfo.cpp",
84 ],
85
86 local_include_dirs: ["include"],
87
88 static_libs: [
89 "libbase_ndk",
90 ],
91
92 shared_libs: [
93 "liblog",
94 ],
95
96 tidy: true,
97
98 sdk_version: "current",
99 stl: "c++_static",
100}
Zim2e5ad882020-01-13 14:11:19 +0000101
102cc_test {
103 name: "RedactionInfoTest",
Kimberly Kreider3a4a3582020-12-15 16:19:16 -0800104 test_suites: ["device-tests", "mts-mediaprovider"],
Jeff Sharkeycccb2ae2020-05-08 16:09:54 -0600105 test_config: "RedactionInfoTest.xml",
Jeff Sharkeyd571f8c2020-04-08 21:37:38 -0600106
107 compile_multilib: "both",
108 multilib: {
109 lib32: { suffix: "32", },
110 lib64: { suffix: "64", },
111 },
112
Zim2e5ad882020-01-13 14:11:19 +0000113 srcs: [
114 "RedactionInfoTest.cpp",
115 "RedactionInfo.cpp",
116 ],
117
118 local_include_dirs: ["include"],
119
120 static_libs: [
121 "libbase_ndk",
122 ],
123
124 shared_libs: [
125 "liblog",
126 ],
127
128 tidy: true,
129
130 sdk_version: "current",
131 stl: "c++_static",
Jeff Sharkey36c46542020-04-08 16:50:15 -0600132}
Corina633099b2020-06-17 21:55:33 +0100133
134cc_test {
135 name: "FuseUtilsTest",
Kimberly Kreider3a4a3582020-12-15 16:19:16 -0800136 test_suites: ["device-tests", "mts-mediaprovider"],
Corina633099b2020-06-17 21:55:33 +0100137 test_config: "FuseUtilsTest.xml",
138
139 compile_multilib: "both",
140 multilib: {
141 lib32: { suffix: "32", },
142 lib64: { suffix: "64", },
143 },
144
145 srcs: [
146 "FuseUtilsTest.cpp",
147 "FuseUtils.cpp",
148 ],
149
150 header_libs: [
151 "libnativehelper_header_only",
152 ],
153
154 local_include_dirs: ["include"],
155
156 static_libs: [
157 "libbase_ndk",
158 ],
159
160 shared_libs: [
161 "liblog",
162 ],
163
164 tidy: true,
165
166 sdk_version: "current",
167 stl: "c++_static",
168}