blob: 265f7fb2ab03d97c98f2ffd38bb5d18004243c8d [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",
shafikc3f62672019-08-30 11:15:48 +010024 "MediaProviderWrapper.cpp",
Sahana Raoa82bd6a2019-10-10 18:10:37 +010025 "ReaddirHelper.cpp",
shafikc3f62672019-08-30 11:15:48 +010026 "RedactionInfo.cpp",
Narayan Kamathaef84a12020-01-02 15:20:13 +000027 "node.cpp"
Zim3e45d9b2019-08-19 21:14:14 +010028 ],
29
Narayan Kamath88203dc2019-08-30 17:19:38 +010030 header_libs: [
31 "libnativehelper_header_only",
32 ],
33
shafikc3f62672019-08-30 11:15:48 +010034 export_include_dirs: ["include"],
35
Zim3e45d9b2019-08-19 21:14:14 +010036 shared_libs: [
37 "liblog",
Zim3e45d9b2019-08-19 21:14:14 +010038 "libfuse",
Zimec8d5722019-12-05 07:26:13 +000039 "libandroid"
Zim3e45d9b2019-08-19 21:14:14 +010040 ],
41
Narayan Kamath88203dc2019-08-30 17:19:38 +010042 static_libs: [
43 "libbase_ndk",
44 ],
45
Zim3e45d9b2019-08-19 21:14:14 +010046 cflags: [
47 "-Wall",
48 "-Werror",
49 "-Wno-unused-parameter",
50 "-Wno-unused-variable",
51 "-Wthread-safety",
52
53 "-D_FILE_OFFSET_BITS=64",
54 "-DFUSE_USE_VERSION=34",
55 ],
56
Jeff Sharkey7469b982019-08-28 16:51:02 -060057 tidy: true,
58 tidy_checks: [
59 "-google-runtime-int",
60 ],
61
Narayan Kamath88203dc2019-08-30 17:19:38 +010062 sdk_version: "current",
63 stl: "c++_static",
Jeff Sharkey7469b982019-08-28 16:51:02 -060064}
Narayan Kamathaef84a12020-01-02 15:20:13 +000065
66cc_test {
67 name: "fuse_node_test",
Jeff Sharkey36c46542020-04-08 16:50:15 -060068 test_suites: ["device-tests", "mts"],
Jeff Sharkeyd571f8c2020-04-08 21:37:38 -060069
70 compile_multilib: "both",
71 multilib: {
72 lib32: { suffix: "32", },
73 lib64: { suffix: "64", },
74 },
75
Narayan Kamathaef84a12020-01-02 15:20:13 +000076 srcs: [
77 "node_test.cpp",
78 "node.cpp",
79 "ReaddirHelper.cpp",
80 "RedactionInfo.cpp",
81 ],
82
83 local_include_dirs: ["include"],
84
85 static_libs: [
86 "libbase_ndk",
87 ],
88
89 shared_libs: [
90 "liblog",
91 ],
92
93 tidy: true,
94
95 sdk_version: "current",
96 stl: "c++_static",
97}
Zim2e5ad882020-01-13 14:11:19 +000098
99cc_test {
100 name: "RedactionInfoTest",
Jeff Sharkey36c46542020-04-08 16:50:15 -0600101 test_suites: ["device-tests", "mts"],
Jeff Sharkeyd571f8c2020-04-08 21:37:38 -0600102
103 compile_multilib: "both",
104 multilib: {
105 lib32: { suffix: "32", },
106 lib64: { suffix: "64", },
107 },
108
Zim2e5ad882020-01-13 14:11:19 +0000109 srcs: [
110 "RedactionInfoTest.cpp",
111 "RedactionInfo.cpp",
112 ],
113
114 local_include_dirs: ["include"],
115
116 static_libs: [
117 "libbase_ndk",
118 ],
119
120 shared_libs: [
121 "liblog",
122 ],
123
124 tidy: true,
125
126 sdk_version: "current",
127 stl: "c++_static",
Jeff Sharkey36c46542020-04-08 16:50:15 -0600128}