1// Copyright (C) 2019 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14// 15// 16 17//################################# 18package { 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22cc_binary { 23 name: "android.hardware.automotive.evs@1.1-sample", 24 25 vendor: true, 26 27 relative_install_path: "hw", 28 29 srcs: [ 30 ":libgui_frame_event_aidl", 31 "service.cpp", 32 "EvsEnumerator.cpp", 33 "EvsV4lCamera.cpp", 34 "EvsGlDisplay.cpp", 35 "GlWrapper.cpp", 36 "VideoCapture.cpp", 37 "bufferCopy.cpp", 38 "ConfigManager.cpp", 39 "ConfigManagerUtil.cpp", 40 ], 41 42 shared_libs: [ 43 "android.frameworks.automotive.display@1.0", 44 "android.hardware.automotive.evs@1.0", 45 "android.hardware.automotive.evs@1.1", 46 "android.hardware.camera.device@3.2", 47 "android.hardware.graphics.bufferqueue@1.0", 48 "android.hardware.graphics.bufferqueue@2.0", 49 "android.hidl.token@1.0-utils", 50 "libEGL", 51 "libGLESv2", 52 "libbase", 53 "libbinder", 54 "libbufferqueueconverter", 55 "libcamera_metadata", 56 "libcutils", 57 "libhardware", 58 "libhardware_legacy", 59 "libhidlbase", 60 "libtinyxml2", 61 "libui", 62 "libutils", 63 "libyuv", 64 ], 65 66 init_rc: ["android.hardware.automotive.evs@1.1-sample.rc"], 67 68 cflags: ["-DLOG_TAG=\"EvsSampleDriver\""] + [ 69 "-DGL_GLEXT_PROTOTYPES", 70 "-DEGL_EGLEXT_PROTOTYPES", 71 ] + [ 72 "-Wall", 73 "-Werror", 74 "-Wunused", 75 "-Wunreachable-code", 76 ], 77 78 required: [ 79 "evs_configuration.dtd", 80 "evs_configuration.xml", 81 ], 82 83 include_dirs: [ 84 "frameworks/native/include/", 85 ], 86 87 product_variables: { 88 debuggable: { 89 cflags: [ 90 "-DEVS_DEBUG", 91 ], 92 }, 93 }, 94 95 vintf_fragments: [ 96 "manifest_android.hardware.automotive.evs@1.1.xml", 97 ], 98} 99 100cc_library { 101 name: "libevsconfigmanager", 102 vendor: true, 103 srcs: [ 104 "ConfigManager.cpp", 105 "ConfigManagerUtil.cpp", 106 ], 107 shared_libs: [ 108 "android.hardware.automotive.evs@1.0", 109 "android.hardware.automotive.evs@1.1", 110 "android.hardware.camera.device@3.2", 111 "libbase", 112 "libcamera_metadata", 113 "libcutils", 114 "libhardware", 115 "libtinyxml2", 116 "libutils", 117 ], 118} 119 120prebuilt_etc { 121 name: "evs_configuration.dtd", 122 soc_specific: true, 123 src: "resources/evs_configuration.dtd", 124 sub_dir: "automotive/evs", 125} 126 127prebuilt_etc { 128 name: "evs_configuration.xml", 129 soc_specific: true, 130 src: "resources/evs_configuration_default.xml", 131 sub_dir: "automotive/evs", 132} 133