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 16cc_library_static { 17 name: "android.hardware.wifi.offload@1.0-lib", 18 vendor: true, 19 srcs: ["Offload.cpp", 20 "chre_constants.cpp", 21 "chre_interface.cpp", 22 "offload_server.cpp", 23 "chre_interface_factory.cpp", 24 "offload_status_util.cpp", 25 "offload_utils.cpp", 26 ], 27 cflags: ["-Wall", "-Wextra", "-Werror"], 28 shared_libs: [ 29 "libbase", 30 "libhidlbase", 31 "libhidltransport", 32 "liblog", 33 "libutils", 34 "android.hardware.wifi.offload@1.0", 35 ], 36 whole_static_libs: [ 37 "chre_client", 38 "wifi_offload_types", 39 ] 40} 41 42cc_binary { 43 name: "android.hardware.wifi.offload@1.0-service", 44 relative_install_path: "hw", 45 init_rc: ["android.hardware.wifi.offload@1.0-service.rc"], 46 srcs: ["service.cpp"], 47 cflags: ["-Wall", "-Wextra"], 48 shared_libs: [ 49 "libbase", 50 "libcutils", 51 "libhidlbase", 52 "libhidltransport", 53 "liblog", 54 "libutils", 55 "android.hardware.wifi.offload@1.0", 56 ], 57 static_libs: [ 58 "android.hardware.wifi.offload@1.0-lib", 59 ], 60 vendor: true, 61} 62 63cc_test { 64 name: "wifi-offload-service-unit-tests", 65 vendor: true, 66 srcs: [ 67 "test/main.cpp", 68 "test/mock_chre_interface_callbacks.cpp", 69 "test/mock_chre_interface_factory.cpp", 70 "test/mock_chre_interface.cpp", 71 "test/offload_server_test.cpp", 72 "test/chre_interface_test.cpp", 73 "test/offload_utils_test.cpp", 74 "test/offload_hal_test_constants.cpp", 75 "test/offload_hal_test_utils.cpp", 76 ], 77 local_include_dirs: [ 78 "test", 79 ".", 80 ], 81 shared_libs: [ 82 "libbase", 83 "libcutils", 84 "libhidlbase", 85 "libhidltransport", 86 "libutils", 87 "liblog", 88 "android.hardware.wifi.offload@1.0", 89 ], 90 static_libs: [ 91 "libgmock", 92 "libgtest", 93 "android.hardware.wifi.offload@1.0-lib", 94 ], 95 whole_static_libs: [ 96 "wifi_offload_types", 97 ], 98} 99 100