Jean-Luc Brouillet | 86c0569 | 2017-07-03 17:45:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017 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 | |
Bob Badour | b12f178 | 2021-02-26 03:03:27 -0800 | [diff] [blame] | 17 | package { |
Bob Badour | 58f681f | 2022-01-24 17:45:12 -0800 | [diff] [blame] | 18 | default_applicable_licenses: [ |
| 19 | "packages_modules_NeuralNetworks_license", |
| 20 | ], |
Bob Badour | b12f178 | 2021-02-26 03:03:27 -0800 | [diff] [blame] | 21 | } |
| 22 | |
Bob Badour | b12f178 | 2021-02-26 03:03:27 -0800 | [diff] [blame] | 23 | // See: http://go/android-license-faq |
| 24 | license { |
| 25 | name: "packages_modules_NeuralNetworks_license", |
Bob Badour | 58f681f | 2022-01-24 17:45:12 -0800 | [diff] [blame] | 26 | package_name: "Android Neural Networks API", |
Bob Badour | b12f178 | 2021-02-26 03:03:27 -0800 | [diff] [blame] | 27 | visibility: [":__subpackages__"], |
| 28 | license_kinds: [ |
| 29 | "SPDX-license-identifier-Apache-2.0", |
Bob Badour | b12f178 | 2021-02-26 03:03:27 -0800 | [diff] [blame] | 30 | "SPDX-license-identifier-BSD", |
Bob Badour | b12f178 | 2021-02-26 03:03:27 -0800 | [diff] [blame] | 31 | ], |
Bob Badour | 58f681f | 2022-01-24 17:45:12 -0800 | [diff] [blame] | 32 | license_text: [ |
| 33 | "LICENSE", |
| 34 | "LICENSE_BSD", |
| 35 | ], |
Bob Badour | b12f178 | 2021-02-26 03:03:27 -0800 | [diff] [blame] | 36 | } |
| 37 | |
Jean-Luc Brouillet | a09d699 | 2017-07-12 01:37:27 -0700 | [diff] [blame] | 38 | cc_defaults { |
| 39 | name: "neuralnetworks_defaults", |
Tomasz Wasilczyk | 9e136a0 | 2023-11-15 09:29:46 -0800 | [diff] [blame] | 40 | cpp_std: "gnu++17", |
Jean-Luc Brouillet | a09d699 | 2017-07-12 01:37:27 -0700 | [diff] [blame] | 41 | cflags: [ |
David Gross | 21f8b71 | 2017-12-11 15:54:18 -0800 | [diff] [blame] | 42 | "-O3", |
Michael Butler | 4aba01d | 2019-07-26 12:33:07 -0700 | [diff] [blame] | 43 | "-Wall", |
| 44 | "-Werror", |
| 45 | "-Wextra", |
Jean-Luc Brouillet | a09d699 | 2017-07-12 01:37:27 -0700 | [diff] [blame] | 46 | ], |
jaishank | 435f042 | 2019-06-03 14:40:27 +0530 | [diff] [blame] | 47 | arch: { |
| 48 | x86: { |
| 49 | avx2: { |
Michael Butler | 4aba01d | 2019-07-26 12:33:07 -0700 | [diff] [blame] | 50 | cflags: [ |
| 51 | "-mavx2", |
| 52 | "-mfma", |
| 53 | ], |
jaishank | 435f042 | 2019-06-03 14:40:27 +0530 | [diff] [blame] | 54 | }, |
| 55 | }, |
| 56 | x86_64: { |
| 57 | avx2: { |
Michael Butler | 4aba01d | 2019-07-26 12:33:07 -0700 | [diff] [blame] | 58 | cflags: [ |
| 59 | "-mavx2", |
| 60 | "-mfma", |
| 61 | ], |
jaishank | 435f042 | 2019-06-03 14:40:27 +0530 | [diff] [blame] | 62 | }, |
| 63 | }, |
| 64 | }, |
David Gross | c622495 | 2017-09-22 12:29:04 -0700 | [diff] [blame] | 65 | product_variables: { |
Michael Butler | 4aba01d | 2019-07-26 12:33:07 -0700 | [diff] [blame] | 66 | debuggable: { // eng and userdebug builds |
David Gross | c622495 | 2017-09-22 12:29:04 -0700 | [diff] [blame] | 67 | cflags: ["-DNN_DEBUGGABLE"], |
| 68 | }, |
| 69 | }, |
Jean-Luc Brouillet | a09d699 | 2017-07-12 01:37:27 -0700 | [diff] [blame] | 70 | } |