blob: 5182d778dab6f11f6391b46a01bc9ed4956d6809 [file] [log] [blame]
Jean-Luc Brouillet86c05692017-07-03 17:45:36 -07001/*
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 Badourb12f1782021-02-26 03:03:27 -080017package {
Bob Badour58f681f2022-01-24 17:45:12 -080018 default_applicable_licenses: [
19 "packages_modules_NeuralNetworks_license",
20 ],
Bob Badourb12f1782021-02-26 03:03:27 -080021}
22
Bob Badourb12f1782021-02-26 03:03:27 -080023// See: http://go/android-license-faq
24license {
25 name: "packages_modules_NeuralNetworks_license",
Bob Badour58f681f2022-01-24 17:45:12 -080026 package_name: "Android Neural Networks API",
Bob Badourb12f1782021-02-26 03:03:27 -080027 visibility: [":__subpackages__"],
28 license_kinds: [
29 "SPDX-license-identifier-Apache-2.0",
Bob Badourb12f1782021-02-26 03:03:27 -080030 "SPDX-license-identifier-BSD",
Bob Badourb12f1782021-02-26 03:03:27 -080031 ],
Bob Badour58f681f2022-01-24 17:45:12 -080032 license_text: [
33 "LICENSE",
34 "LICENSE_BSD",
35 ],
Bob Badourb12f1782021-02-26 03:03:27 -080036}
37
Jean-Luc Brouilleta09d6992017-07-12 01:37:27 -070038cc_defaults {
39 name: "neuralnetworks_defaults",
Tomasz Wasilczyk9e136a02023-11-15 09:29:46 -080040 cpp_std: "gnu++17",
Jean-Luc Brouilleta09d6992017-07-12 01:37:27 -070041 cflags: [
David Gross21f8b712017-12-11 15:54:18 -080042 "-O3",
Michael Butler4aba01d2019-07-26 12:33:07 -070043 "-Wall",
44 "-Werror",
45 "-Wextra",
Jean-Luc Brouilleta09d6992017-07-12 01:37:27 -070046 ],
jaishank435f0422019-06-03 14:40:27 +053047 arch: {
48 x86: {
49 avx2: {
Michael Butler4aba01d2019-07-26 12:33:07 -070050 cflags: [
51 "-mavx2",
52 "-mfma",
53 ],
jaishank435f0422019-06-03 14:40:27 +053054 },
55 },
56 x86_64: {
57 avx2: {
Michael Butler4aba01d2019-07-26 12:33:07 -070058 cflags: [
59 "-mavx2",
60 "-mfma",
61 ],
jaishank435f0422019-06-03 14:40:27 +053062 },
63 },
64 },
David Grossc6224952017-09-22 12:29:04 -070065 product_variables: {
Michael Butler4aba01d2019-07-26 12:33:07 -070066 debuggable: { // eng and userdebug builds
David Grossc6224952017-09-22 12:29:04 -070067 cflags: ["-DNN_DEBUGGABLE"],
68 },
69 },
Jean-Luc Brouilleta09d6992017-07-12 01:37:27 -070070}