1 // 2 // Copyright (C) 2017 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_defaults { 18 name: "libnativebridge-dummy-defaults", 19 20 host_supported: true, 21 cflags: [ 22 "-Wall", 23 "-Wextra", 24 "-Werror", 25 ], 26 header_libs: ["libnativebridge-dummy-headers"], 27 cppflags: ["-fvisibility=protected"], 28 target: { 29 android: { 30 shared_libs: ["libdl"], 31 }, 32 host: { 33 host_ldlibs: ["-ldl"], 34 }, 35 }, 36 } 37 38 cc_library_shared { 39 name: "libnativebridge-dummy", 40 srcs: ["DummyNativeBridge.cpp"], 41 defaults: ["libnativebridge-dummy-defaults"], 42 } 43 44 cc_library_shared { 45 name: "libnativebridge2-dummy", 46 srcs: ["DummyNativeBridge2.cpp"], 47 defaults: ["libnativebridge-dummy-defaults"], 48 } 49 50 cc_library_shared { 51 name: "libnativebridge3-dummy", 52 srcs: ["DummyNativeBridge3.cpp"], 53 defaults: ["libnativebridge-dummy-defaults"], 54 } 55