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 | |
Bob Badour | 45b6e7d | 2021-02-12 18:09:33 -0800 | [diff] [blame] | 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "packages_providers_MediaProvider_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
| 23 | default_applicable_licenses: ["packages_providers_MediaProvider_license"], |
| 24 | } |
| 25 | |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 26 | cc_library_shared { |
| 27 | name: "libfuse_jni", |
| 28 | |
| 29 | srcs: [ |
| 30 | "jni_init.cpp", |
| 31 | "com_android_providers_media_FuseDaemon.cpp", |
| 32 | "FuseDaemon.cpp", |
Corina | 633099b | 2020-06-17 21:55:33 +0100 | [diff] [blame] | 33 | "FuseUtils.cpp", |
shafik | c3f6267 | 2019-08-30 11:15:48 +0100 | [diff] [blame] | 34 | "MediaProviderWrapper.cpp", |
Sahana Rao | a82bd6a | 2019-10-10 18:10:37 +0100 | [diff] [blame] | 35 | "ReaddirHelper.cpp", |
shafik | c3f6267 | 2019-08-30 11:15:48 +0100 | [diff] [blame] | 36 | "RedactionInfo.cpp", |
Narayan Kamath | aef84a1 | 2020-01-02 15:20:13 +0000 | [diff] [blame] | 37 | "node.cpp" |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 38 | ], |
| 39 | |
Narayan Kamath | 88203dc | 2019-08-30 17:19:38 +0100 | [diff] [blame] | 40 | header_libs: [ |
| 41 | "libnativehelper_header_only", |
| 42 | ], |
| 43 | |
shafik | c3f6267 | 2019-08-30 11:15:48 +0100 | [diff] [blame] | 44 | export_include_dirs: ["include"], |
| 45 | |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 46 | shared_libs: [ |
| 47 | "liblog", |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 48 | "libfuse", |
Zim | ec8d572 | 2019-12-05 07:26:13 +0000 | [diff] [blame] | 49 | "libandroid" |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 50 | ], |
| 51 | |
Narayan Kamath | 88203dc | 2019-08-30 17:19:38 +0100 | [diff] [blame] | 52 | static_libs: [ |
| 53 | "libbase_ndk", |
| 54 | ], |
| 55 | |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 56 | cflags: [ |
| 57 | "-Wall", |
| 58 | "-Werror", |
| 59 | "-Wno-unused-parameter", |
| 60 | "-Wno-unused-variable", |
| 61 | "-Wthread-safety", |
| 62 | |
| 63 | "-D_FILE_OFFSET_BITS=64", |
| 64 | "-DFUSE_USE_VERSION=34", |
| 65 | ], |
| 66 | |
Jeff Sharkey | 7469b98 | 2019-08-28 16:51:02 -0600 | [diff] [blame] | 67 | tidy: true, |
| 68 | tidy_checks: [ |
| 69 | "-google-runtime-int", |
| 70 | ], |
| 71 | |
Narayan Kamath | 88203dc | 2019-08-30 17:19:38 +0100 | [diff] [blame] | 72 | sdk_version: "current", |
| 73 | stl: "c++_static", |
Nikita Ioffe | 0bf6f89 | 2020-11-03 22:58:11 +0000 | [diff] [blame] | 74 | min_sdk_version: "30", |
Jeff Sharkey | 7469b98 | 2019-08-28 16:51:02 -0600 | [diff] [blame] | 75 | } |
Narayan Kamath | aef84a1 | 2020-01-02 15:20:13 +0000 | [diff] [blame] | 76 | |
| 77 | cc_test { |
| 78 | name: "fuse_node_test", |
Kimberly Kreider | 61f0599 | 2020-12-15 16:19:16 -0800 | [diff] [blame] | 79 | test_suites: ["device-tests", "mts-mediaprovider"], |
Jeff Sharkey | cccb2ae | 2020-05-08 16:09:54 -0600 | [diff] [blame] | 80 | test_config: "fuse_node_test.xml", |
Jeff Sharkey | d571f8c | 2020-04-08 21:37:38 -0600 | [diff] [blame] | 81 | |
| 82 | compile_multilib: "both", |
| 83 | multilib: { |
| 84 | lib32: { suffix: "32", }, |
| 85 | lib64: { suffix: "64", }, |
| 86 | }, |
| 87 | |
Narayan Kamath | aef84a1 | 2020-01-02 15:20:13 +0000 | [diff] [blame] | 88 | srcs: [ |
| 89 | "node_test.cpp", |
| 90 | "node.cpp", |
| 91 | "ReaddirHelper.cpp", |
| 92 | "RedactionInfo.cpp", |
| 93 | ], |
| 94 | |
| 95 | local_include_dirs: ["include"], |
| 96 | |
| 97 | static_libs: [ |
| 98 | "libbase_ndk", |
| 99 | ], |
| 100 | |
| 101 | shared_libs: [ |
| 102 | "liblog", |
| 103 | ], |
| 104 | |
| 105 | tidy: true, |
| 106 | |
| 107 | sdk_version: "current", |
| 108 | stl: "c++_static", |
| 109 | } |
Zim | 2e5ad88 | 2020-01-13 14:11:19 +0000 | [diff] [blame] | 110 | |
| 111 | cc_test { |
| 112 | name: "RedactionInfoTest", |
Kimberly Kreider | 61f0599 | 2020-12-15 16:19:16 -0800 | [diff] [blame] | 113 | test_suites: ["device-tests", "mts-mediaprovider"], |
Jeff Sharkey | cccb2ae | 2020-05-08 16:09:54 -0600 | [diff] [blame] | 114 | test_config: "RedactionInfoTest.xml", |
Jeff Sharkey | d571f8c | 2020-04-08 21:37:38 -0600 | [diff] [blame] | 115 | |
| 116 | compile_multilib: "both", |
| 117 | multilib: { |
| 118 | lib32: { suffix: "32", }, |
| 119 | lib64: { suffix: "64", }, |
| 120 | }, |
| 121 | |
Zim | 2e5ad88 | 2020-01-13 14:11:19 +0000 | [diff] [blame] | 122 | srcs: [ |
| 123 | "RedactionInfoTest.cpp", |
| 124 | "RedactionInfo.cpp", |
| 125 | ], |
| 126 | |
| 127 | local_include_dirs: ["include"], |
| 128 | |
| 129 | static_libs: [ |
| 130 | "libbase_ndk", |
| 131 | ], |
| 132 | |
| 133 | shared_libs: [ |
| 134 | "liblog", |
| 135 | ], |
| 136 | |
| 137 | tidy: true, |
| 138 | |
| 139 | sdk_version: "current", |
| 140 | stl: "c++_static", |
Jeff Sharkey | 36c4654 | 2020-04-08 16:50:15 -0600 | [diff] [blame] | 141 | } |
Corina | 633099b | 2020-06-17 21:55:33 +0100 | [diff] [blame] | 142 | |
| 143 | cc_test { |
| 144 | name: "FuseUtilsTest", |
Kimberly Kreider | 61f0599 | 2020-12-15 16:19:16 -0800 | [diff] [blame] | 145 | test_suites: ["device-tests", "mts-mediaprovider"], |
Corina | 633099b | 2020-06-17 21:55:33 +0100 | [diff] [blame] | 146 | test_config: "FuseUtilsTest.xml", |
| 147 | |
| 148 | compile_multilib: "both", |
| 149 | multilib: { |
| 150 | lib32: { suffix: "32", }, |
| 151 | lib64: { suffix: "64", }, |
| 152 | }, |
| 153 | |
| 154 | srcs: [ |
| 155 | "FuseUtilsTest.cpp", |
| 156 | "FuseUtils.cpp", |
| 157 | ], |
| 158 | |
| 159 | header_libs: [ |
| 160 | "libnativehelper_header_only", |
| 161 | ], |
| 162 | |
| 163 | local_include_dirs: ["include"], |
| 164 | |
| 165 | static_libs: [ |
| 166 | "libbase_ndk", |
| 167 | ], |
| 168 | |
| 169 | shared_libs: [ |
| 170 | "liblog", |
| 171 | ], |
| 172 | |
| 173 | tidy: true, |
| 174 | |
| 175 | sdk_version: "current", |
| 176 | stl: "c++_static", |
| 177 | } |