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", |
shafik | c3f6267 | 2019-08-30 11:15:48 +0100 | [diff] [blame] | 24 | "MediaProviderWrapper.cpp", |
Sahana Rao | a82bd6a | 2019-10-10 18:10:37 +0100 | [diff] [blame] | 25 | "ReaddirHelper.cpp", |
shafik | c3f6267 | 2019-08-30 11:15:48 +0100 | [diff] [blame] | 26 | "RedactionInfo.cpp", |
Narayan Kamath | aef84a1 | 2020-01-02 15:20:13 +0000 | [diff] [blame] | 27 | "node.cpp" |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 28 | ], |
| 29 | |
Narayan Kamath | 88203dc | 2019-08-30 17:19:38 +0100 | [diff] [blame] | 30 | header_libs: [ |
| 31 | "libnativehelper_header_only", |
| 32 | ], |
| 33 | |
shafik | c3f6267 | 2019-08-30 11:15:48 +0100 | [diff] [blame] | 34 | export_include_dirs: ["include"], |
| 35 | |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 36 | shared_libs: [ |
| 37 | "liblog", |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 38 | "libfuse", |
Zim | ec8d572 | 2019-12-05 07:26:13 +0000 | [diff] [blame] | 39 | "libandroid" |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 40 | ], |
| 41 | |
Narayan Kamath | 88203dc | 2019-08-30 17:19:38 +0100 | [diff] [blame] | 42 | static_libs: [ |
| 43 | "libbase_ndk", |
| 44 | ], |
| 45 | |
Zim | 3e45d9b | 2019-08-19 21:14:14 +0100 | [diff] [blame] | 46 | 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 Sharkey | 7469b98 | 2019-08-28 16:51:02 -0600 | [diff] [blame] | 57 | tidy: true, |
| 58 | tidy_checks: [ |
| 59 | "-google-runtime-int", |
| 60 | ], |
| 61 | |
Narayan Kamath | 88203dc | 2019-08-30 17:19:38 +0100 | [diff] [blame] | 62 | sdk_version: "current", |
| 63 | stl: "c++_static", |
Jeff Sharkey | 7469b98 | 2019-08-28 16:51:02 -0600 | [diff] [blame] | 64 | } |
Narayan Kamath | aef84a1 | 2020-01-02 15:20:13 +0000 | [diff] [blame] | 65 | |
| 66 | cc_test { |
| 67 | name: "fuse_node_test", |
Jeff Sharkey | 36c4654 | 2020-04-08 16:50:15 -0600 | [diff] [blame] | 68 | test_suites: ["device-tests", "mts"], |
Jeff Sharkey | d571f8c | 2020-04-08 21:37:38 -0600 | [diff] [blame] | 69 | |
| 70 | compile_multilib: "both", |
| 71 | multilib: { |
| 72 | lib32: { suffix: "32", }, |
| 73 | lib64: { suffix: "64", }, |
| 74 | }, |
| 75 | |
Narayan Kamath | aef84a1 | 2020-01-02 15:20:13 +0000 | [diff] [blame] | 76 | 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 | } |
Zim | 2e5ad88 | 2020-01-13 14:11:19 +0000 | [diff] [blame] | 98 | |
| 99 | cc_test { |
| 100 | name: "RedactionInfoTest", |
Jeff Sharkey | 36c4654 | 2020-04-08 16:50:15 -0600 | [diff] [blame] | 101 | test_suites: ["device-tests", "mts"], |
Jeff Sharkey | d571f8c | 2020-04-08 21:37:38 -0600 | [diff] [blame] | 102 | |
| 103 | compile_multilib: "both", |
| 104 | multilib: { |
| 105 | lib32: { suffix: "32", }, |
| 106 | lib64: { suffix: "64", }, |
| 107 | }, |
| 108 | |
Zim | 2e5ad88 | 2020-01-13 14:11:19 +0000 | [diff] [blame] | 109 | 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 Sharkey | 36c4654 | 2020-04-08 16:50:15 -0600 | [diff] [blame] | 128 | } |