Changyeon Jo | c7deb56 | 2019-07-23 10:40:04 -0700 | [diff] [blame] | 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 | //################################# |
| 19 | cc_binary { |
| 20 | name: "android.hardware.automotive.evs@1.1-sample", |
| 21 | |
Changyeon Jo | 2d73ad2 | 2019-12-29 11:53:02 -0800 | [diff] [blame] | 22 | vendor: true, |
| 23 | |
Changyeon Jo | c7deb56 | 2019-07-23 10:40:04 -0700 | [diff] [blame] | 24 | srcs: [ |
| 25 | "service.cpp", |
| 26 | "EvsEnumerator.cpp", |
| 27 | "EvsV4lCamera.cpp", |
| 28 | "EvsGlDisplay.cpp", |
| 29 | "GlWrapper.cpp", |
| 30 | "VideoCapture.cpp", |
| 31 | "bufferCopy.cpp", |
Changyeon Jo | aab96aa | 2019-10-12 05:24:15 -0700 | [diff] [blame] | 32 | "ConfigManager.cpp", |
| 33 | "ConfigManagerUtil.cpp", |
Changyeon Jo | c7deb56 | 2019-07-23 10:40:04 -0700 | [diff] [blame] | 34 | ], |
| 35 | |
| 36 | shared_libs: [ |
| 37 | "android.hardware.automotive.evs@1.0", |
| 38 | "android.hardware.automotive.evs@1.1", |
Changyeon Jo | aab96aa | 2019-10-12 05:24:15 -0700 | [diff] [blame] | 39 | "android.hardware.camera.device@3.2", |
Changyeon Jo | c7deb56 | 2019-07-23 10:40:04 -0700 | [diff] [blame] | 40 | "libui", |
Changyeon Jo | c7deb56 | 2019-07-23 10:40:04 -0700 | [diff] [blame] | 41 | "libEGL", |
| 42 | "libGLESv2", |
| 43 | "libbase", |
| 44 | "libbinder", |
| 45 | "libcutils", |
| 46 | "libhardware", |
| 47 | "libhidlbase", |
Changyeon Jo | c7deb56 | 2019-07-23 10:40:04 -0700 | [diff] [blame] | 48 | "libutils", |
| 49 | "libhardware_legacy", |
Changyeon Jo | aab96aa | 2019-10-12 05:24:15 -0700 | [diff] [blame] | 50 | "libcamera_metadata", |
| 51 | "libtinyxml2", |
Changyeon Jo | 2d73ad2 | 2019-12-29 11:53:02 -0800 | [diff] [blame] | 52 | "libbufferqueueconverter", |
| 53 | "android.hidl.token@1.0-utils", |
| 54 | "android.frameworks.automotive.display@1.0", |
| 55 | "android.hardware.graphics.bufferqueue@1.0", |
| 56 | "android.hardware.graphics.bufferqueue@2.0", |
Changyeon Jo | c7deb56 | 2019-07-23 10:40:04 -0700 | [diff] [blame] | 57 | ], |
| 58 | |
| 59 | init_rc: ["android.hardware.automotive.evs@1.1-sample.rc"], |
| 60 | |
| 61 | strip: { |
| 62 | keep_symbols: true, |
| 63 | }, |
| 64 | |
| 65 | cflags: ["-DLOG_TAG=\"EvsSampleDriver\""] + [ |
| 66 | "-DGL_GLEXT_PROTOTYPES", |
| 67 | "-DEGL_EGLEXT_PROTOTYPES", |
| 68 | ] + [ |
| 69 | "-Wall", |
| 70 | "-Werror", |
| 71 | "-Wunused", |
| 72 | "-Wunreachable-code", |
| 73 | ], |
| 74 | |
Changyeon Jo | aab96aa | 2019-10-12 05:24:15 -0700 | [diff] [blame] | 75 | required: [ |
| 76 | "evs_configuration.dtd", |
| 77 | "evs_sample_configuration.xml", |
| 78 | ], |
Changyeon Jo | 2d73ad2 | 2019-12-29 11:53:02 -0800 | [diff] [blame] | 79 | |
| 80 | include_dirs: [ |
| 81 | "frameworks/native/include/", |
| 82 | ], |
Changyeon Jo | ffdf3db | 2020-03-06 15:23:02 -0800 | [diff] [blame] | 83 | |
| 84 | product_variables: { |
| 85 | debuggable: { |
| 86 | cflags: [ |
| 87 | "-DEVS_DEBUG", |
| 88 | ] |
| 89 | } |
Changyeon Jo | bbac1c4 | 2020-03-29 09:15:24 -0700 | [diff] [blame] | 90 | }, |
| 91 | |
| 92 | vintf_fragments: [ |
| 93 | "manifest_android.hardware.automotive.evs@1.1.xml", |
| 94 | ], |
Changyeon Jo | aab96aa | 2019-10-12 05:24:15 -0700 | [diff] [blame] | 95 | } |
Changyeon Jo | c7deb56 | 2019-07-23 10:40:04 -0700 | [diff] [blame] | 96 | |
Changyeon Jo | aab96aa | 2019-10-12 05:24:15 -0700 | [diff] [blame] | 97 | prebuilt_etc { |
| 98 | name: "evs_configuration.dtd", |
Changyeon Jo | 2d73ad2 | 2019-12-29 11:53:02 -0800 | [diff] [blame] | 99 | soc_specific: true, |
Changyeon Jo | aab96aa | 2019-10-12 05:24:15 -0700 | [diff] [blame] | 100 | src: "resources/evs_configuration.dtd", |
| 101 | sub_dir: "automotive/evs", |
| 102 | } |
| 103 | |
| 104 | prebuilt_etc { |
| 105 | name: "evs_sample_configuration.xml", |
Changyeon Jo | 2d73ad2 | 2019-12-29 11:53:02 -0800 | [diff] [blame] | 106 | soc_specific: true, |
Changyeon Jo | aab96aa | 2019-10-12 05:24:15 -0700 | [diff] [blame] | 107 | src: "resources/evs_sample_configuration.xml", |
| 108 | sub_dir: "automotive/evs", |
Changyeon Jo | c7deb56 | 2019-07-23 10:40:04 -0700 | [diff] [blame] | 109 | } |