Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 1 | // |
| 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 | |
| 17 | cc_library_shared { |
| 18 | name: "libfuse_jni", |
| 19 | |
| 20 | srcs: [ |
| 21 | "jni_init.cpp", |
| 22 | "com_android_providers_media_FuseDaemon.cpp", |
| 23 | "FuseDaemon.cpp", |
Corina | 633099b | 2020-06-17 21:55:33 +0100 | [diff] [blame] | 24 | "FuseUtils.cpp", |
shafik | c3f6267 | 2019-08-30 11:15:48 +0100 | [diff] [blame] | 25 | "MediaProviderWrapper.cpp", |
Sahana Rao | a82bd6a | 2019-10-10 18:10:37 +0100 | [diff] [blame] | 26 | "ReaddirHelper.cpp", |
shafik | c3f6267 | 2019-08-30 11:15:48 +0100 | [diff] [blame] | 27 | "RedactionInfo.cpp", |
Narayan Kamath | aef84a1 | 2020-01-02 15:20:13 +0000 | [diff] [blame] | 28 | "node.cpp" |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 29 | ], |
| 30 | |
Narayan Kamath | 88203dc | 2019-08-30 17:19:38 +0100 | [diff] [blame] | 31 | header_libs: [ |
| 32 | "libnativehelper_header_only", |
| 33 | ], |
| 34 | |
shafik | c3f6267 | 2019-08-30 11:15:48 +0100 | [diff] [blame] | 35 | export_include_dirs: ["include"], |
| 36 | |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 37 | shared_libs: [ |
| 38 | "liblog", |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 39 | "libfuse", |
Zim | ec8d572 | 2019-12-05 07:26:13 +0000 | [diff] [blame] | 40 | "libandroid" |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 41 | ], |
| 42 | |
Narayan Kamath | 88203dc | 2019-08-30 17:19:38 +0100 | [diff] [blame] | 43 | static_libs: [ |
| 44 | "libbase_ndk", |
| 45 | ], |
| 46 | |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 47 | 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 Sharkey | 7469b98 | 2019-08-28 16:51:02 -0600 | [diff] [blame] | 58 | tidy: true, |
| 59 | tidy_checks: [ |
| 60 | "-google-runtime-int", |
| 61 | ], |
| 62 | |
Narayan Kamath | 88203dc | 2019-08-30 17:19:38 +0100 | [diff] [blame] | 63 | sdk_version: "current", |
| 64 | stl: "c++_static", |
Nikita Ioffe | 8851c7c | 2020-11-03 22:58:11 +0000 | [diff] [blame] | 65 | min_sdk_version: "30", |
Jeff Sharkey | 7469b98 | 2019-08-28 16:51:02 -0600 | [diff] [blame] | 66 | } |
Narayan Kamath | aef84a1 | 2020-01-02 15:20:13 +0000 | [diff] [blame] | 67 | |
| 68 | cc_test { |
| 69 | name: "fuse_node_test", |
Kimberly Kreider | 3a4a358 | 2020-12-15 16:19:16 -0800 | [diff] [blame] | 70 | test_suites: ["device-tests", "mts-mediaprovider"], |
Jeff Sharkey | cccb2ae | 2020-05-08 16:09:54 -0600 | [diff] [blame] | 71 | test_config: "fuse_node_test.xml", |
Jeff Sharkey | d571f8c | 2020-04-08 21:37:38 -0600 | [diff] [blame] | 72 | |
| 73 | compile_multilib: "both", |
| 74 | multilib: { |
| 75 | lib32: { suffix: "32", }, |
| 76 | lib64: { suffix: "64", }, |
| 77 | }, |
| 78 | |
Narayan Kamath | aef84a1 | 2020-01-02 15:20:13 +0000 | [diff] [blame] | 79 | 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 | } |
Zim | 2e5ad88 | 2020-01-13 14:11:19 +0000 | [diff] [blame] | 101 | |
| 102 | cc_test { |
| 103 | name: "RedactionInfoTest", |
Kimberly Kreider | 3a4a358 | 2020-12-15 16:19:16 -0800 | [diff] [blame] | 104 | test_suites: ["device-tests", "mts-mediaprovider"], |
Jeff Sharkey | cccb2ae | 2020-05-08 16:09:54 -0600 | [diff] [blame] | 105 | test_config: "RedactionInfoTest.xml", |
Jeff Sharkey | d571f8c | 2020-04-08 21:37:38 -0600 | [diff] [blame] | 106 | |
| 107 | compile_multilib: "both", |
| 108 | multilib: { |
| 109 | lib32: { suffix: "32", }, |
| 110 | lib64: { suffix: "64", }, |
| 111 | }, |
| 112 | |
Zim | 2e5ad88 | 2020-01-13 14:11:19 +0000 | [diff] [blame] | 113 | 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 Sharkey | 36c4654 | 2020-04-08 16:50:15 -0600 | [diff] [blame] | 132 | } |
Corina | 633099b | 2020-06-17 21:55:33 +0100 | [diff] [blame] | 133 | |
| 134 | cc_test { |
| 135 | name: "FuseUtilsTest", |
Kimberly Kreider | 3a4a358 | 2020-12-15 16:19:16 -0800 | [diff] [blame] | 136 | test_suites: ["device-tests", "mts-mediaprovider"], |
Corina | 633099b | 2020-06-17 21:55:33 +0100 | [diff] [blame] | 137 | 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 | } |