1// Copyright (C) 2020 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["external_FP16_license"], 17} 18 19// Added automatically by a large-scale-change 20// See: http://go/android-license-faq 21license { 22 name: "external_FP16_license", 23 visibility: [":__subpackages__"], 24 license_kinds: [ 25 "SPDX-license-identifier-MIT", 26 ], 27 license_text: [ 28 "LICENSE", 29 ], 30} 31 32cc_library_headers { 33 name: "fp16_headers", 34 export_include_dirs: ["include"], 35 host_supported: true, 36 vendor_available: true, 37 sdk_version: "current", 38 min_sdk_version: "30", 39 apex_available: [ 40 "//apex_available:platform", 41 "com.android.neuralnetworks", 42 "com.android.extservices", 43 "com.android.adservices", 44 "com.android.ondevicepersonalization", 45 ], 46} 47 48cc_defaults { 49 name: "fp16_tests_default", 50 sdk_version: "current", 51 srcs: [ 52 "test/tables.cc", 53 ], 54 header_libs: [ 55 "fp16_headers", 56 ], 57 stl: "libc++_static", 58 static_libs: [ 59 "libgmock_ndk", 60 ] 61} 62 63cc_test { 64 name: "Fp16AltFromFp32ValueTests", 65 defaults: ["fp16_tests_default"], 66 srcs: [ 67 "test/alt-from-fp32-value.cc", 68 ], 69 test_suites: [ 70 "general-tests", 71 ], 72} 73 74cc_test { 75 name: "Fp16AltToFp32BitsTests", 76 defaults: ["fp16_tests_default"], 77 srcs: [ 78 "test/alt-to-fp32-bits.cc", 79 ], 80 test_suites: [ 81 "general-tests", 82 ], 83} 84 85cc_test { 86 name: "Fp16AltToFp32ValueTests", 87 defaults: ["fp16_tests_default"], 88 srcs: [ 89 "test/alt-to-fp32-value.cc", 90 ], 91 test_suites: [ 92 "general-tests", 93 ], 94} 95 96cc_test { 97 name: "Fp16BitcastsTests", 98 defaults: ["fp16_tests_default"], 99 srcs: [ 100 "test/bitcasts.cc", 101 ], 102 test_suites: [ 103 "general-tests", 104 ], 105} 106 107cc_test { 108 name: "Fp16IEEEFromFp32ValueTests", 109 defaults: ["fp16_tests_default"], 110 srcs: [ 111 "test/ieee-from-fp32-value.cc", 112 ], 113 test_suites: [ 114 "general-tests", 115 ], 116} 117 118cc_test { 119 name: "Fp16IEEEToFp32BitsTests", 120 defaults: ["fp16_tests_default"], 121 srcs: [ 122 "test/ieee-to-fp32-bits.cc", 123 ], 124 test_suites: [ 125 "general-tests", 126 ], 127} 128 129cc_test { 130 name: "Fp16IEEEToFp32ValueTests", 131 defaults: ["fp16_tests_default"], 132 srcs: [ 133 "test/ieee-to-fp32-value.cc", 134 ], 135 test_suites: [ 136 "general-tests", 137 ], 138} 139