Add build files and meta data files
Bug: 148796256
Test: mm
Change-Id: I344a2c8bc591849df8d01f9b48b6c4955eeb1b2c
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..e58f54f
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,113 @@
+// Copyright (C) 2020 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+cc_library_headers {
+ name: "fp16_headers",
+ export_include_dirs: ["include"],
+ vendor_available: true,
+ sdk_version: "current",
+}
+
+cc_defaults {
+ name: "fp16_tests_default",
+ sdk_version: "current",
+ srcs: [
+ "test/tables.cc",
+ ],
+ header_libs: [
+ "fp16_headers",
+ ],
+ stl: "libc++_static",
+ static_libs: [
+ "libgmock_ndk",
+ ]
+}
+
+cc_test {
+ name: "Fp16AltFromFp32ValueTests",
+ defaults: ["fp16_tests_default"],
+ srcs: [
+ "test/alt-from-fp32-value.cc",
+ ],
+ test_suites: [
+ "general-tests",
+ ],
+}
+
+cc_test {
+ name: "Fp16AltToFp32BitsTests",
+ defaults: ["fp16_tests_default"],
+ srcs: [
+ "test/alt-to-fp32-bits.cc",
+ ],
+ test_suites: [
+ "general-tests",
+ ],
+}
+
+cc_test {
+ name: "Fp16AltToFp32ValueTests",
+ defaults: ["fp16_tests_default"],
+ srcs: [
+ "test/alt-to-fp32-value.cc",
+ ],
+ test_suites: [
+ "general-tests",
+ ],
+}
+
+cc_test {
+ name: "Fp16BitcastsTests",
+ defaults: ["fp16_tests_default"],
+ srcs: [
+ "test/bitcasts.cc",
+ ],
+ test_suites: [
+ "general-tests",
+ ],
+}
+
+cc_test {
+ name: "Fp16IEEEFromFp32ValueTests",
+ defaults: ["fp16_tests_default"],
+ srcs: [
+ "test/ieee-from-fp32-value.cc",
+ ],
+ test_suites: [
+ "general-tests",
+ ],
+}
+
+cc_test {
+ name: "Fp16IEEEToFp32BitsTests",
+ defaults: ["fp16_tests_default"],
+ srcs: [
+ "test/ieee-to-fp32-bits.cc",
+ ],
+ test_suites: [
+ "general-tests",
+ ],
+}
+
+cc_test {
+ name: "Fp16IEEEToFp32ValueTests",
+ defaults: ["fp16_tests_default"],
+ srcs: [
+ "test/ieee-to-fp32-value.cc",
+ ],
+ test_suites: [
+ "general-tests",
+ ],
+}
+