| // Copyright (C) 2022 The Android Open Source Project | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, | |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| // See the License for the specific language governing permissions and | |
| // limitations under the License. | |
| package { | |
| default_applicable_licenses: ["Android-Apache-2.0"], | |
| } | |
| cc_defaults { | |
| name: "imsstack_native_test_defaults", | |
| defaults: [ | |
| "imsstack_native_defaults", | |
| "imsstack_shared_libs_defaults", | |
| "imsstack_tls_libs_defaults", | |
| ], | |
| test_suites: [ | |
| "general-tests", | |
| "device-tests", | |
| ], | |
| static_libs: [ | |
| "libgmock", | |
| "libgtest_main", | |
| "liblog", | |
| ], | |
| } | |
| cc_test { | |
| name: "ImsStackNativeTests", | |
| defaults: [ | |
| "imsstack_native_test_defaults", | |
| ], | |
| srcs: [ | |
| "**/*.cpp", | |
| ], | |
| local_include_dirs: [ | |
| "enabler/include/aos", | |
| "enabler/include/mtc", | |
| "enabler/include/mts", | |
| "enabler/include/media", | |
| "enabler/interface", | |
| "enabler/interface/aos", | |
| "enabler/interface/mtc", | |
| "enabler/interface/mts", | |
| "enabler/interface/uce", | |
| ], | |
| header_libs: [ | |
| "libimsstack_config_headers", | |
| "libimsstack_enabler_headers", | |
| "libimsstack_enabler_loader_headers", | |
| "libimsstack_engine_headers", | |
| "libimsstack_main_headers", | |
| "libimsstack_platform_headers", | |
| "libimsstack_platform_os_android_system-intf_headers", | |
| "libimsstack_protocol_headers", | |
| "libimsmedia_config_headers", | |
| ] + [ | |
| "libimsstack_test_config_headers", | |
| "libimsstack_test_enabler_headers", | |
| "libimsstack_test_engine_headers", | |
| "libimsstack_test_platform_headers", | |
| "libimsstack_test_protocol_headers", | |
| ], | |
| static_libs: [ | |
| "libimsstack-config", | |
| "libimsstack-enabler", | |
| "libimsstack-engine", | |
| "libimsstack-jni", | |
| "libimsstack-main", | |
| "libimsstack-platform", | |
| "libimsstack-protocol", | |
| "libimsmedia_config", | |
| ], | |
| test_config: "ImsStackNativeTests.xml", | |
| } |