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 17cc_library_shared { 18 name: "libfuse_jni", 19 20 srcs: [ 21 "jni_init.cpp", 22 "com_android_providers_media_FuseDaemon.cpp", 23 "FuseDaemon.cpp", 24 "FuseUtils.cpp", 25 "MediaProviderWrapper.cpp", 26 "ReaddirHelper.cpp", 27 "RedactionInfo.cpp", 28 "node.cpp" 29 ], 30 31 header_libs: [ 32 "libnativehelper_header_only", 33 ], 34 35 export_include_dirs: ["include"], 36 37 shared_libs: [ 38 "liblog", 39 "libfuse", 40 "libandroid" 41 ], 42 43 static_libs: [ 44 "libbase_ndk", 45 ], 46 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 58 tidy: true, 59 tidy_checks: [ 60 "-google-runtime-int", 61 ], 62 63 sdk_version: "current", 64 stl: "c++_static", 65} 66 67cc_test { 68 name: "fuse_node_test", 69 test_suites: ["device-tests", "mts"], 70 test_config: "fuse_node_test.xml", 71 72 compile_multilib: "both", 73 multilib: { 74 lib32: { suffix: "32", }, 75 lib64: { suffix: "64", }, 76 }, 77 78 srcs: [ 79 "node_test.cpp", 80 "node.cpp", 81 "ReaddirHelper.cpp", 82 "RedactionInfo.cpp", 83 ], 84 85 local_include_dirs: ["include"], 86 87 static_libs: [ 88 "libbase_ndk", 89 ], 90 91 shared_libs: [ 92 "liblog", 93 ], 94 95 tidy: true, 96 97 sdk_version: "current", 98 stl: "c++_static", 99} 100 101cc_test { 102 name: "RedactionInfoTest", 103 test_suites: ["device-tests", "mts"], 104 test_config: "RedactionInfoTest.xml", 105 106 compile_multilib: "both", 107 multilib: { 108 lib32: { suffix: "32", }, 109 lib64: { suffix: "64", }, 110 }, 111 112 srcs: [ 113 "RedactionInfoTest.cpp", 114 "RedactionInfo.cpp", 115 ], 116 117 local_include_dirs: ["include"], 118 119 static_libs: [ 120 "libbase_ndk", 121 ], 122 123 shared_libs: [ 124 "liblog", 125 ], 126 127 tidy: true, 128 129 sdk_version: "current", 130 stl: "c++_static", 131} 132 133cc_test { 134 name: "FuseUtilsTest", 135 test_suites: ["device-tests", "mts"], 136 test_config: "FuseUtilsTest.xml", 137 138 compile_multilib: "both", 139 multilib: { 140 lib32: { suffix: "32", }, 141 lib64: { suffix: "64", }, 142 }, 143 144 srcs: [ 145 "FuseUtilsTest.cpp", 146 "FuseUtils.cpp", 147 ], 148 149 header_libs: [ 150 "libnativehelper_header_only", 151 ], 152 153 local_include_dirs: ["include"], 154 155 static_libs: [ 156 "libbase_ndk", 157 ], 158 159 shared_libs: [ 160 "liblog", 161 ], 162 163 tidy: true, 164 165 sdk_version: "current", 166 stl: "c++_static", 167} 168