1// Copyright (C) 2015 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 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "external_eigen_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-MPL-2.0 21 default_applicable_licenses: ["external_eigen_license"], 22} 23 24cc_defaults { 25 name: "eigen-defaults", 26 srcs: [ 27 "single.cpp", 28 "double.cpp", 29 "complex_single.cpp", 30 "complex_double.cpp", 31 "xerbla.cpp", 32 "f2c/complexdots.c", 33 "f2c/srotm.c", 34 "f2c/srotmg.c", 35 "f2c/drotm.c", 36 "f2c/drotmg.c", 37 "f2c/lsame.c", 38 "f2c/dspmv.c", 39 "f2c/ssbmv.c", 40 "f2c/chbmv.c", 41 "f2c/sspmv.c", 42 "f2c/zhbmv.c", 43 "f2c/chpmv.c", 44 "f2c/dsbmv.c", 45 "f2c/zhpmv.c", 46 "f2c/dtbmv.c", 47 "f2c/stbmv.c", 48 "f2c/ctbmv.c", 49 "f2c/ztbmv.c", 50 "f2c/d_cnjg.c", 51 "f2c/r_cnjg.c", 52 ], 53 cflags: [ 54 "-Werror", 55 "-Wno-unused-parameter" 56 ], 57 tidy_checks: [ 58 "-google-global-names-in-headers", 59 "-misc-macro-parentheses", 60 "-misc-misplaced-widening-cast", 61 ], 62 export_include_dirs: ["."], 63} 64 65cc_library_static { 66 name: "libF77blas", 67 vendor_available: true, 68 defaults: ["eigen-defaults"], 69 host_supported: true, 70 // TODO(b/153609531): remove when no longer needed. 71 native_bridge_supported: true, 72} 73 74// Build Eigen using API 9 toolchain for RS Support lib. 75cc_library_static { 76 name: "libF77blasV8", 77 defaults: ["eigen-defaults"], 78 sdk_version: "9", 79 stl: "c++_static", 80} 81