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 18//################################# 19package { 20 default_applicable_licenses: ["Android-Apache-2.0"], 21} 22 23cc_binary { 24 name: "android.hardware.automotive.evs@1.1-sample", 25 26 vendor: true, 27 28 srcs: [ 29 "service.cpp", 30 "EvsEnumerator.cpp", 31 "EvsV4lCamera.cpp", 32 "EvsGlDisplay.cpp", 33 "GlWrapper.cpp", 34 "VideoCapture.cpp", 35 "bufferCopy.cpp", 36 "ConfigManager.cpp", 37 "ConfigManagerUtil.cpp", 38 ], 39 40 shared_libs: [ 41 "android.frameworks.automotive.display@1.0", 42 "android.hardware.automotive.evs@1.0", 43 "android.hardware.automotive.evs@1.1", 44 "android.hardware.camera.device@3.2", 45 "android.hardware.graphics.bufferqueue@1.0", 46 "android.hardware.graphics.bufferqueue@2.0", 47 "android.hidl.token@1.0-utils", 48 "libEGL", 49 "libGLESv2", 50 "libbase", 51 "libbinder", 52 "libbufferqueueconverter", 53 "libcamera_metadata", 54 "libcutils", 55 "libhardware", 56 "libhardware_legacy", 57 "libhidlbase", 58 "libtinyxml2", 59 "libui", 60 "libutils", 61 "libyuv", 62 ], 63 64 init_rc: ["android.hardware.automotive.evs@1.1-sample.rc"], 65 66 cflags: ["-DLOG_TAG=\"EvsSampleDriver\""] + [ 67 "-DGL_GLEXT_PROTOTYPES", 68 "-DEGL_EGLEXT_PROTOTYPES", 69 ] + [ 70 "-Wall", 71 "-Werror", 72 "-Wunused", 73 "-Wunreachable-code", 74 ], 75 76 required: [ 77 "evs_configuration.dtd", 78 "evs_configuration.xml", 79 ], 80 81 include_dirs: [ 82 "frameworks/native/include/", 83 ], 84 85 product_variables: { 86 debuggable: { 87 cflags: [ 88 "-DEVS_DEBUG", 89 ] 90 } 91 }, 92 93 vintf_fragments: [ 94 "manifest_android.hardware.automotive.evs@1.1.xml", 95 ], 96} 97 98cc_library{ 99 name : "libevsconfigmanager", 100 vendor : true, 101 srcs : [ 102 "ConfigManager.cpp", 103 "ConfigManagerUtil.cpp", 104 ], 105 shared_libs : [ 106 "android.hardware.automotive.evs@1.0", 107 "android.hardware.automotive.evs@1.1", 108 "android.hardware.camera.device@3.2", 109 "libbase", 110 "libcamera_metadata", 111 "libcutils", 112 "libhardware", 113 "libtinyxml2", 114 "libutils", 115 ], 116} 117 118prebuilt_etc { 119 name: "evs_configuration.dtd", 120 soc_specific: true, 121 src: "resources/evs_configuration.dtd", 122 sub_dir: "automotive/evs", 123} 124 125prebuilt_etc { 126 name: "evs_configuration.xml", 127 soc_specific: true, 128 src: "resources/evs_configuration_default.xml", 129 sub_dir: "automotive/evs", 130} 131