blob: 1722200a64a6fe608e3d8f7cd43e840d6d8149df [file] [log] [blame]
Changyeon Joc7deb562019-07-23 10:40:04 -07001// 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//#################################
19cc_binary {
20 name: "android.hardware.automotive.evs@1.1-sample",
21
Changyeon Jo2d73ad22019-12-29 11:53:02 -080022 vendor: true,
23
Changyeon Joc7deb562019-07-23 10:40:04 -070024 srcs: [
25 "service.cpp",
26 "EvsEnumerator.cpp",
27 "EvsV4lCamera.cpp",
28 "EvsGlDisplay.cpp",
29 "GlWrapper.cpp",
30 "VideoCapture.cpp",
31 "bufferCopy.cpp",
Changyeon Joaab96aa2019-10-12 05:24:15 -070032 "ConfigManager.cpp",
33 "ConfigManagerUtil.cpp",
Changyeon Joc7deb562019-07-23 10:40:04 -070034 ],
35
36 shared_libs: [
37 "android.hardware.automotive.evs@1.0",
38 "android.hardware.automotive.evs@1.1",
Changyeon Joaab96aa2019-10-12 05:24:15 -070039 "android.hardware.camera.device@3.2",
Changyeon Joc7deb562019-07-23 10:40:04 -070040 "libui",
Changyeon Joc7deb562019-07-23 10:40:04 -070041 "libEGL",
42 "libGLESv2",
43 "libbase",
44 "libbinder",
45 "libcutils",
46 "libhardware",
47 "libhidlbase",
Changyeon Joc7deb562019-07-23 10:40:04 -070048 "libutils",
49 "libhardware_legacy",
Changyeon Joaab96aa2019-10-12 05:24:15 -070050 "libcamera_metadata",
51 "libtinyxml2",
Changyeon Jo2d73ad22019-12-29 11:53:02 -080052 "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 Joc7deb562019-07-23 10:40:04 -070057 ],
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 Joaab96aa2019-10-12 05:24:15 -070075 required: [
76 "evs_configuration.dtd",
77 "evs_sample_configuration.xml",
78 ],
Changyeon Jo2d73ad22019-12-29 11:53:02 -080079
80 include_dirs: [
81 "frameworks/native/include/",
82 ],
Changyeon Joffdf3db2020-03-06 15:23:02 -080083
84 product_variables: {
85 debuggable: {
86 cflags: [
87 "-DEVS_DEBUG",
88 ]
89 }
Changyeon Jobbac1c42020-03-29 09:15:24 -070090 },
91
92 vintf_fragments: [
93 "manifest_android.hardware.automotive.evs@1.1.xml",
94 ],
Changyeon Joaab96aa2019-10-12 05:24:15 -070095}
Changyeon Joc7deb562019-07-23 10:40:04 -070096
Changyeon Joaab96aa2019-10-12 05:24:15 -070097prebuilt_etc {
98 name: "evs_configuration.dtd",
Changyeon Jo2d73ad22019-12-29 11:53:02 -080099 soc_specific: true,
Changyeon Joaab96aa2019-10-12 05:24:15 -0700100 src: "resources/evs_configuration.dtd",
101 sub_dir: "automotive/evs",
102}
103
104prebuilt_etc {
105 name: "evs_sample_configuration.xml",
Changyeon Jo2d73ad22019-12-29 11:53:02 -0800106 soc_specific: true,
Changyeon Joaab96aa2019-10-12 05:24:15 -0700107 src: "resources/evs_sample_configuration.xml",
108 sub_dir: "automotive/evs",
Changyeon Joc7deb562019-07-23 10:40:04 -0700109}