Michael Butler | bb4ff65 | 2017-07-28 19:53:28 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 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 | |
David Gross | 2452ee5 | 2019-12-20 14:22:15 -0800 | [diff] [blame] | 17 | cc_defaults { |
| 18 | name: "neuralnetworks_vts_functional_defaults", |
| 19 | defaults: ["VtsHalTargetTestDefaults"], |
| 20 | arch: { |
| 21 | x86: { |
| 22 | cflags: [ "-D_Float16=__fp16", |
| 23 | "-Xclang", "-fnative-half-type", |
| 24 | "-Xclang", "-fallow-half-arguments-and-returns" ], |
| 25 | }, |
| 26 | x86_64: { |
| 27 | cflags: [ "-D_Float16=__fp16", |
| 28 | "-Xclang", "-fnative-half-type", |
| 29 | "-Xclang", "-fallow-half-arguments-and-returns" ], |
| 30 | }, |
| 31 | }, |
| 32 | } |
| 33 | |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 34 | cc_library_static { |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 35 | name: "VtsHalNeuralNetworksV1_0_utils", |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 36 | srcs: [ |
| 37 | "Callbacks.cpp", |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 38 | "Utils.cpp", |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 39 | ], |
David Gross | 2452ee5 | 2019-12-20 14:22:15 -0800 | [diff] [blame] | 40 | defaults: ["neuralnetworks_vts_functional_defaults"], |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 41 | export_include_dirs: ["include"], |
Miao Wang | e586a23 | 2019-01-22 13:57:14 -0800 | [diff] [blame] | 42 | shared_libs: [ |
Michael Butler | 29471a8 | 2019-01-15 11:02:55 -0800 | [diff] [blame] | 43 | "libfmq", |
Miao Wang | e586a23 | 2019-01-22 13:57:14 -0800 | [diff] [blame] | 44 | "libnativewindow", |
| 45 | ], |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 46 | static_libs: [ |
| 47 | "android.hardware.neuralnetworks@1.0", |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 48 | "android.hidl.allocator@1.0", |
| 49 | "android.hidl.memory@1.0", |
Michael K. Sanders | da3bdbc | 2018-10-19 14:39:09 +0100 | [diff] [blame] | 50 | "libgmock", |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 51 | "libhidlmemory", |
Xusong Wang | 7df4306 | 2019-08-09 16:38:14 -0700 | [diff] [blame] | 52 | "libneuralnetworks_generated_test_harness", |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 53 | "libneuralnetworks_utils", |
| 54 | ], |
| 55 | header_libs: [ |
| 56 | "libneuralnetworks_headers", |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 57 | ], |
| 58 | } |
| 59 | |
Michael Butler | 0763328 | 2019-08-29 11:08:25 -0700 | [diff] [blame] | 60 | cc_test { |
| 61 | name: "VtsHalNeuralnetworksV1_0TargetTest", |
David Gross | 2452ee5 | 2019-12-20 14:22:15 -0800 | [diff] [blame] | 62 | defaults: ["neuralnetworks_vts_functional_defaults"], |
Michael Butler | 0e2ac1b | 2017-09-01 10:59:38 -0700 | [diff] [blame] | 63 | srcs: [ |
Michael Butler | 0763328 | 2019-08-29 11:08:25 -0700 | [diff] [blame] | 64 | "BasicTests.cpp", |
Xusong Wang | ee80b02 | 2019-08-22 14:58:16 -0700 | [diff] [blame] | 65 | "TestAssertions.cpp", |
Michael Butler | 7ed6135 | 2018-03-22 16:37:57 -0700 | [diff] [blame] | 66 | "ValidateModel.cpp", |
| 67 | "ValidateRequest.cpp", |
Michael Butler | 7ed6135 | 2018-03-22 16:37:57 -0700 | [diff] [blame] | 68 | "VtsHalNeuralnetworks.cpp", |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 69 | "GeneratedTestHarness.cpp", |
Michael Butler | 0e2ac1b | 2017-09-01 10:59:38 -0700 | [diff] [blame] | 70 | ], |
Miao Wang | e586a23 | 2019-01-22 13:57:14 -0800 | [diff] [blame] | 71 | shared_libs: [ |
Michael Butler | 29471a8 | 2019-01-15 11:02:55 -0800 | [diff] [blame] | 72 | "libfmq", |
Miao Wang | e586a23 | 2019-01-22 13:57:14 -0800 | [diff] [blame] | 73 | "libnativewindow", |
| 74 | ], |
Tri Vo | 0cd9782 | 2017-08-04 10:55:31 -0700 | [diff] [blame] | 75 | static_libs: [ |
Michael Butler | 7ed6135 | 2018-03-22 16:37:57 -0700 | [diff] [blame] | 76 | "android.hardware.neuralnetworks@1.0", |
Michael Butler | bb4ff65 | 2017-07-28 19:53:28 -0700 | [diff] [blame] | 77 | "android.hidl.allocator@1.0", |
| 78 | "android.hidl.memory@1.0", |
Michael K. Sanders | da3bdbc | 2018-10-19 14:39:09 +0100 | [diff] [blame] | 79 | "libgmock", |
Tri Vo | 0cd9782 | 2017-08-04 10:55:31 -0700 | [diff] [blame] | 80 | "libhidlmemory", |
Xusong Wang | 7df4306 | 2019-08-09 16:38:14 -0700 | [diff] [blame] | 81 | "libneuralnetworks_generated_test_harness", |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 82 | "libneuralnetworks_utils", |
Slava Shklyaev | 73ee79d | 2019-05-14 14:15:14 +0100 | [diff] [blame] | 83 | "VtsHalNeuralNetworksV1_0_utils", |
Michael Butler | bb4ff65 | 2017-07-28 19:53:28 -0700 | [diff] [blame] | 84 | ], |
Michael Butler | 0763328 | 2019-08-29 11:08:25 -0700 | [diff] [blame] | 85 | whole_static_libs: [ |
| 86 | "neuralnetworks_generated_V1_0_example", |
| 87 | ], |
I-Jui (Ray) Sung | 2c4e136 | 2017-09-06 02:15:54 -0700 | [diff] [blame] | 88 | header_libs: [ |
Miao Wang | 4862d61 | 2018-02-05 17:26:54 -0800 | [diff] [blame] | 89 | "libneuralnetworks_headers", |
I-Jui (Ray) Sung | 2c4e136 | 2017-09-06 02:15:54 -0700 | [diff] [blame] | 90 | ], |
Dan Shi | aad51fa | 2020-04-05 14:34:48 -0700 | [diff] [blame^] | 91 | test_suites: ["general-tests", "vts"], |
Michael K. Sanders | fc2b10e | 2018-11-07 15:53:28 +0000 | [diff] [blame] | 92 | } |