Bob Badour | c22b35b | 2021-02-23 14:26:20 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "hardware_interfaces_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 8 | } |
| 9 | |
François Gaffie | b449cdb | 2019-12-13 13:31:36 -0800 | [diff] [blame] | 10 | cc_test { |
| 11 | name: "VtsHalAudioPolicyV1_0TargetTest", |
François Gaffie | b449cdb | 2019-12-13 13:31:36 -0800 | [diff] [blame] | 12 | srcs: [ |
| 13 | "ValidateEngineConfiguration.cpp", |
| 14 | ], |
| 15 | static_libs: [ |
François Gaffie | b449cdb | 2019-12-13 13:31:36 -0800 | [diff] [blame] | 16 | "libxml2", |
| 17 | "liblog", |
François Gaffie | a8cac48 | 2019-12-18 09:29:58 +0100 | [diff] [blame] | 18 | "libmedia_helper", |
| 19 | "libaudiopolicyengine_config", |
| 20 | "libaudiopolicycomponents", |
| 21 | "libaudiopolicyengineconfigurable_pfwwrapper", |
| 22 | "android.hardware.audio.common.test.utility", |
| 23 | "libparameter", |
| 24 | "libpfw_utility", |
| 25 | "libremote-processor", |
| 26 | "libutils", |
| 27 | "libcutils", |
| 28 | "libhidlbase", |
| 29 | "liblog", |
| 30 | "libbase", |
| 31 | ], |
| 32 | shared_libs: [ |
| 33 | "libaudiofoundation", |
François Gaffie | b449cdb | 2019-12-13 13:31:36 -0800 | [diff] [blame] | 34 | ], |
Dan Shi | ba894f8 | 2020-03-26 00:06:39 -0700 | [diff] [blame] | 35 | // Use test_config for vts suite. |
François Gaffie | b449cdb | 2019-12-13 13:31:36 -0800 | [diff] [blame] | 36 | // TODO(b/146104851): Add auto-gen rules and remove it. |
| 37 | test_config: "VtsHalAudioPolicyV1_0TargetTest.xml", |
| 38 | cflags: [ |
| 39 | "-DXSD_DIR=\"/data/local/tmp\"", |
François Gaffie | a8cac48 | 2019-12-18 09:29:58 +0100 | [diff] [blame] | 40 | "-DXSD_PFW_DIR=\"/data/local/tmp/Schemas\"", |
François Gaffie | b449cdb | 2019-12-13 13:31:36 -0800 | [diff] [blame] | 41 | "-Wall", |
| 42 | "-Werror", |
| 43 | "-Wno-unused-function", |
| 44 | "-O0", |
| 45 | "-g", |
| 46 | ], |
| 47 | data: [ |
| 48 | ":audio_policy_engine_conf_V1_0", |
François Gaffie | a8cac48 | 2019-12-18 09:29:58 +0100 | [diff] [blame] | 49 | ":audio_policy_engine_configurable_configuration_V1_0", |
| 50 | ":audio_policy_engine_configurable_configuration_ComponentLibrary_V1_0", |
| 51 | ":audio_policy_engine_configurable_configuration_ComponentTypeSet_V1_0", |
| 52 | ":audio_policy_engine_configurable_configuration_ConfigurableDomain_V1_0", |
| 53 | ":audio_policy_engine_configurable_configuration_ConfigurableDomains_V1_0", |
| 54 | ":audio_policy_engine_configurable_configuration_FileIncluder_V1_0", |
| 55 | ":audio_policy_engine_configurable_configuration_Parameter_V1_0", |
| 56 | ":audio_policy_engine_configurable_configuration_ParameterFrameworkConfiguration_V1_0", |
| 57 | ":audio_policy_engine_configurable_configuration_ParameterSettings_V1_0", |
| 58 | ":audio_policy_engine_configurable_configuration_Subsystem_V1_0", |
| 59 | ":audio_policy_engine_configurable_configuration_SystemClass_V1_0", |
| 60 | ":audio_policy_engine_configurable_configuration_W3cXmlAttributes_V1_0", |
François Gaffie | b449cdb | 2019-12-13 13:31:36 -0800 | [diff] [blame] | 61 | ], |
| 62 | gtest: true, |
| 63 | test_suites: [ |
| 64 | "general-tests", |
Dan Shi | ba894f8 | 2020-03-26 00:06:39 -0700 | [diff] [blame] | 65 | "vts", |
François Gaffie | b449cdb | 2019-12-13 13:31:36 -0800 | [diff] [blame] | 66 | ], |
| 67 | } |