blob: 21cf87b964bee4883c4992aa5bd1f1c83e3001a7 [file] [log] [blame]
hualing chenf9c3c492021-05-21 16:09:37 +08001// Copyright (c) 2014 Amlogic, Inc. All rights reserved.
2//
3// This source code is subject to the terms and conditions defined in the
4// file 'LICENSE' which is part of this source code package.
5//
6// Description: makefile
7
Liang Jic41569e2022-10-30 13:59:04 +08008package {
9 default_applicable_licenses: ["hardware_amlogic_license"],
10}
hualing chenf9c3c492021-05-21 16:09:37 +080011
12cc_library_shared {
13 name: "libamdvr",
14 vendor: true,
junlan.duan5e6cfa82022-01-13 12:34:31 +080015 compile_multilib: "both",
hualing chenf9c3c492021-05-21 16:09:37 +080016
17 arch: {
18 arm: {
19 instruction_set: "arm",
20 },
21 arm64: {
junlan.duan5e6cfa82022-01-13 12:34:31 +080022 enabled: true,
hualing chenf9c3c492021-05-21 16:09:37 +080023 },
24 x86: {
25 enabled: false,
26 },
27 x86_64: {
28 enabled: false,
29 },
30 },
31 srcs: [
32 "src/dvb_dmx_wrapper.c",
33 "src/dvb_frontend_wrapper.c",
34 "src/dvb_utils.c",
35 "src/dvr_playback.c",
36 "src/dvr_record.c",
37 "src/dvr_segment.c",
38 "src/dvr_utils.c",
39 "src/dvr_wrapper.c",
40 "src/index_file.c",
41 "src/list_file.c",
42 "src/record_device.c",
43 "src/segment.c",
Yahui Han1fbf3292021-11-08 18:17:19 +080044 "src/am_crypt.c",
45 "src/des.c",
Zhiqiang Hanf9c0e272022-06-14 13:54:03 +080046 "src/dvr_mutex.c",
hualing chenf9c3c492021-05-21 16:09:37 +080047 ],
48 shared_libs: [
49 "libcutils",
50 "liblog",
51 "libdl",
52 "libc",
53 "liblog",
54 "libmediahal_tsplayer",
55 ],
56 cflags: [
57
58 ],
59
60 // TODO: revise
61 include_dirs: [
62 "hardware/amlogic/media/amcodec/include",
hualing chenf9c3c492021-05-21 16:09:37 +080063 "vendor/amlogic/common/mediahal_sdk/include",
hualing chenf9c3c492021-05-21 16:09:37 +080064 ],
65
66 static_libs: [
67
68 ],
69
70
71 export_include_dirs: [
72 "include",
73 ],
74
75
76 ldflags: ["-shared"],
77}
78
79cc_library_shared {
80 name: "libamdvr.system",
junlan.duan5e6cfa82022-01-13 12:34:31 +080081 compile_multilib: "both",
hualing chenf9c3c492021-05-21 16:09:37 +080082 system_ext_specific: true,
83
84 arch: {
85 arm: {
86 instruction_set: "arm",
87 },
88 arm64: {
junlan.duan5e6cfa82022-01-13 12:34:31 +080089 enabled: true,
hualing chenf9c3c492021-05-21 16:09:37 +080090 },
91 x86: {
92 enabled: false,
93 },
94 x86_64: {
95 enabled: false,
96 },
97 },
98 srcs: [
99 "src/dvb_dmx_wrapper.c",
100 "src/dvb_frontend_wrapper.c",
101 "src/dvb_utils.c",
102 "src/dvr_playback.c",
103 "src/dvr_record.c",
104 "src/dvr_segment.c",
105 "src/dvr_utils.c",
106 "src/dvr_wrapper.c",
107 "src/index_file.c",
108 "src/list_file.c",
109 "src/record_device.c",
110 "src/segment.c",
Yahui Han1fbf3292021-11-08 18:17:19 +0800111 "src/am_crypt.c",
112 "src/des.c",
Zhiqiang Hanf9c0e272022-06-14 13:54:03 +0800113 "src/dvr_mutex.c",
hualing chenf9c3c492021-05-21 16:09:37 +0800114 ],
115 shared_libs: [
116 "libcutils",
117 "liblog",
118 "libdl",
119 "libc",
120 "liblog",
121 "libmediahal_tsplayer.system",
122 ],
123 cflags: [
124
125 ],
126
127 // TODO: revise
128 include_dirs: [
129 "hardware/amlogic/media/amcodec/include",
hualing chenf9c3c492021-05-21 16:09:37 +0800130 "vendor/amlogic/common/mediahal_sdk/include",
hualing chenf9c3c492021-05-21 16:09:37 +0800131 ],
132
133 static_libs: [
134
135 ],
136
137
138 export_include_dirs: [
139 "include",
140 ],
141
142
143 ldflags: ["-shared"],
144
145}
146
hualing chen03fd4942021-07-15 15:56:41 +0800147subdirs=[
148 "test"
149]