Changyeon Jo | 8018901 | 2021-10-10 16:34:21 -0700 | [diff] [blame] | 1 | // Copyright (C) 2022 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 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // all of the 'license_kinds' from "hardware_interfaces_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 22 | } |
| 23 | |
| 24 | cc_binary { |
| 25 | name: "android.hardware.automotive.evs-aidl-default-service", |
| 26 | defaults: ["EvsHalDefaults"], |
Changyeon Jo | 7e62631 | 2023-03-13 22:44:01 +0000 | [diff] [blame] | 27 | vintf_fragments: ["manifest_evs-default-service.xml"], |
Changyeon Jo | 8018901 | 2021-10-10 16:34:21 -0700 | [diff] [blame] | 28 | init_rc: ["evs-default-service.rc"], |
| 29 | vendor: true, |
| 30 | relative_install_path: "hw", |
Changyeon Jo | 7e62631 | 2023-03-13 22:44:01 +0000 | [diff] [blame] | 31 | cflags: [ |
| 32 | "-DGL_GLEXT_PROTOTYPES", |
| 33 | "-DEGL_EGLEXT_PROTOTYPES", |
| 34 | "-Wall", |
| 35 | "-Wextra", |
| 36 | "-Werror", |
| 37 | "-Wthread-safety", |
Changyeon Jo | 20dbc58 | 2023-02-23 18:20:15 +0000 | [diff] [blame] | 38 | ], |
Changyeon Jo | 7e62631 | 2023-03-13 22:44:01 +0000 | [diff] [blame] | 39 | srcs: [ |
| 40 | ":libgui_frame_event_aidl", |
Hao Chen | ac8e696 | 2023-03-29 11:20:56 -0700 | [diff] [blame] | 41 | "src/*.cpp", |
Changyeon Jo | 7e62631 | 2023-03-13 22:44:01 +0000 | [diff] [blame] | 42 | ], |
| 43 | shared_libs: [ |
| 44 | "android.hardware.graphics.bufferqueue@1.0", |
| 45 | "android.hardware.graphics.bufferqueue@2.0", |
| 46 | "android.hidl.token@1.0-utils", |
| 47 | "libEGL", |
| 48 | "libGLESv2", |
| 49 | "libbase", |
| 50 | "libbinder_ndk", |
| 51 | "libbufferqueueconverter", |
| 52 | "libcamera_metadata", |
| 53 | "libhardware_legacy", |
| 54 | "libhidlbase", |
| 55 | "liblog", |
| 56 | "libnativewindow", |
| 57 | "libtinyxml2", |
| 58 | "libui", |
| 59 | "libutils", |
| 60 | "libyuv", |
| 61 | ], |
| 62 | static_libs: [ |
| 63 | "android.frameworks.automotive.display-V1-ndk", |
Hao Chen | ac8e696 | 2023-03-29 11:20:56 -0700 | [diff] [blame] | 64 | "android.hardware.automotive.evs-V2-ndk", |
Changyeon Jo | 7e62631 | 2023-03-13 22:44:01 +0000 | [diff] [blame] | 65 | "android.hardware.common-V2-ndk", |
| 66 | "libaidlcommonsupport", |
| 67 | "libcutils", |
| 68 | ], |
| 69 | local_include_dirs: ["include"], |
| 70 | include_dirs: ["frameworks/native/include/"], |
| 71 | required: ["evs_mock_hal_configuration.xml"], |
| 72 | } |
| 73 | |
| 74 | prebuilt_etc { |
| 75 | name: "evs_mock_hal_configuration.xml", |
| 76 | soc_specific: true, |
| 77 | src: "resources/evs_mock_configuration.xml", |
| 78 | sub_dir: "automotive/evs", |
Changyeon Jo | 8018901 | 2021-10-10 16:34:21 -0700 | [diff] [blame] | 79 | } |