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 15cc_defaults { 16 name: "libbnnmlowp-defaults", 17 cflags: [ 18 "-Wno-unused-parameter", 19 "-DGEMMLOWP_USE_META_FASTPATH", 20 ], 21 22 srcs: ["eight_bit_int_gemm.cc"], 23 export_include_dirs: ["."], 24} 25 26cc_library_static { 27 name: "libbnnmlowp", 28 vendor_available: true, 29 defaults: ["libbnnmlowp-defaults"], 30} 31 32cc_library_static { 33 name: "libbnnmlowpV8", 34 defaults: ["libbnnmlowp-defaults"], 35 36 sdk_version: "9", 37 38 // Always build gemmlowpV8 for armv7 using NEON, 39 // alternate non-SIMD route is built in libRSSupport. 40 arch: { 41 arm: { 42 cflags: ["-mfpu=neon"], 43 }, 44 }, 45 46 stl: "c++_static", 47} 48