1// 2// Copyright (C) 2024 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 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21cc_library_headers { 22 name: "libnative_bridge_support_accessor_headers", 23 defaults: ["native_bridge_support_defaults"], 24 host_supported: true, 25 export_include_dirs: ["include"], 26 apex_available: [ 27 "com.android.runtime", 28 "//apex_available:platform", 29 ], 30} 31 32cc_library_static { 33 name: "libnative_bridge_guest_state_accessor", 34 defaults: ["native_bridge_support_defaults"], 35 host_supported: true, 36 header_libs: [ 37 "libnative_bridge_support_accessor_headers", 38 ], 39 srcs: ["accessor_proxy.cc"], 40 shared_libs: [ 41 "libbase", 42 "liblog", 43 ], 44 apex_available: [ 45 "com.android.runtime", 46 "//apex_available:platform", 47 ], 48} 49 50cc_test_host { 51 name: "libnative_bridge_guest_state_accessor_tests", 52 defaults: ["native_bridge_support_defaults"], 53 header_libs: ["libnative_bridge_support_accessor_headers"], 54 srcs: ["accessor_tests.cc"], 55} 56