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 17cc_library_static { 18 name: "chre_client", 19 vendor: true, 20 export_include_dirs: [ 21 "host/common/include", 22 "platform/shared/include", 23 "util/include", 24 ], 25 srcs: [ 26 "host/common/fragmented_load_transaction.cc", 27 "host/common/host_protocol_host.cc", 28 "host/common/socket_client.cc", 29 "platform/shared/host_protocol_common.cc", 30 ], 31 header_libs: ["chre_flatbuffers"], 32 export_header_lib_headers: ["chre_flatbuffers"], 33 shared_libs: [ 34 "libcutils", 35 "liblog", 36 "libutils", 37 ], 38 cflags: ["-Wall", "-Werror"], 39} 40 41cc_binary { 42 name: "chre_test_client", 43 vendor: true, 44 local_include_dirs: [ 45 "chre_api/include/chre_api", 46 "util/include", 47 ], 48 srcs: [ 49 "host/common/test/chre_test_client.cc", 50 ], 51 cflags: ["-Wall", "-Werror"], 52 shared_libs: [ 53 "libcutils", 54 "liblog", 55 "libutils", 56 ], 57 static_libs: ["chre_client"], 58} 59 60cc_test { 61 name: "audio_stress_test", 62 vendor: true, 63 local_include_dirs: [ 64 "chre_api/include/chre_api", 65 "util/include", 66 ], 67 srcs: [ 68 "host/common/audio_stress_test/audio_stress_test.cc", 69 ], 70 cflags: ["-Wall", "-Werror"], 71 shared_libs: [ 72 "libcutils", 73 "liblog", 74 "libutils", 75 ], 76 static_libs: ["chre_client"], 77 gtest: false, 78} 79 80cc_library_shared { 81 name: "android.hardware.contexthub@1.0-impl.generic", 82 vendor: true, 83 relative_install_path: "hw", 84 srcs: [ 85 "host/hal_generic/generic_context_hub.cc", 86 ], 87 cflags: ["-Wall", "-Werror"], 88 shared_libs: [ 89 "libcutils", 90 "liblog", 91 "libhidlbase", 92 "libutils", 93 "android.hardware.contexthub@1.0", 94 ], 95 static_libs: ["chre_client"], 96} 97 98cc_library_headers { 99 name: "chre_api", 100 vendor: true, 101 export_include_dirs: [ 102 "chre_api/include/chre_api", 103 ] 104} 105 106cc_library_headers { 107 name: "chre_flatbuffers", 108 vendor: true, 109 export_include_dirs: [ 110 "external/flatbuffers/include", 111 ], 112} 113 114subdirs = [ 115 "apps/wifi_offload", 116] 117