blob: 03b2eaa171fe467fbee86e9cd887ade44ed55500 [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 {
Liang Jib3a73d42022-11-14 10:58:15 +08009 default_applicable_licenses: ["vendor_amlogic_libdvr_license"],
10}
11
12license {
13 name: "vendor_amlogic_libdvr_license",
14 visibility: [":__subpackages__"],
15 license_kinds: [
16 "SPDX-license-identifier-GPL-2.0",
17 "SPDX-license-identifier-LGPL-2.1",
18 ],
Liang Jic41569e2022-10-30 13:59:04 +080019}
hualing chenf9c3c492021-05-21 16:09:37 +080020
21cc_library_shared {
22 name: "libamdvr",
23 vendor: true,
junlan.duan5e6cfa82022-01-13 12:34:31 +080024 compile_multilib: "both",
hualing chenf9c3c492021-05-21 16:09:37 +080025
26 arch: {
27 arm: {
28 instruction_set: "arm",
29 },
30 arm64: {
junlan.duan5e6cfa82022-01-13 12:34:31 +080031 enabled: true,
hualing chenf9c3c492021-05-21 16:09:37 +080032 },
33 x86: {
34 enabled: false,
35 },
36 x86_64: {
37 enabled: false,
38 },
39 },
40 srcs: [
41 "src/dvb_dmx_wrapper.c",
42 "src/dvb_frontend_wrapper.c",
43 "src/dvb_utils.c",
44 "src/dvr_playback.c",
45 "src/dvr_record.c",
46 "src/dvr_segment.c",
47 "src/dvr_utils.c",
48 "src/dvr_wrapper.c",
49 "src/index_file.c",
50 "src/list_file.c",
51 "src/record_device.c",
52 "src/segment.c",
Yahui Han1fbf3292021-11-08 18:17:19 +080053 "src/am_crypt.c",
54 "src/des.c",
Zhiqiang Hanf9c0e272022-06-14 13:54:03 +080055 "src/dvr_mutex.c",
hualing chenf9c3c492021-05-21 16:09:37 +080056 ],
57 shared_libs: [
58 "libcutils",
59 "liblog",
60 "libdl",
61 "libc",
62 "liblog",
63 "libmediahal_tsplayer",
64 ],
65 cflags: [
66
67 ],
68
69 // TODO: revise
70 include_dirs: [
71 "hardware/amlogic/media/amcodec/include",
hualing chenf9c3c492021-05-21 16:09:37 +080072 "vendor/amlogic/common/mediahal_sdk/include",
hualing chenf9c3c492021-05-21 16:09:37 +080073 ],
74
75 static_libs: [
76
77 ],
78
79
80 export_include_dirs: [
81 "include",
82 ],
83
84
85 ldflags: ["-shared"],
86}
87
88cc_library_shared {
89 name: "libamdvr.system",
junlan.duan5e6cfa82022-01-13 12:34:31 +080090 compile_multilib: "both",
hualing chenf9c3c492021-05-21 16:09:37 +080091 system_ext_specific: true,
92
93 arch: {
94 arm: {
95 instruction_set: "arm",
96 },
97 arm64: {
junlan.duan5e6cfa82022-01-13 12:34:31 +080098 enabled: true,
hualing chenf9c3c492021-05-21 16:09:37 +080099 },
100 x86: {
101 enabled: false,
102 },
103 x86_64: {
104 enabled: false,
105 },
106 },
107 srcs: [
108 "src/dvb_dmx_wrapper.c",
109 "src/dvb_frontend_wrapper.c",
110 "src/dvb_utils.c",
111 "src/dvr_playback.c",
112 "src/dvr_record.c",
113 "src/dvr_segment.c",
114 "src/dvr_utils.c",
115 "src/dvr_wrapper.c",
116 "src/index_file.c",
117 "src/list_file.c",
118 "src/record_device.c",
119 "src/segment.c",
Yahui Han1fbf3292021-11-08 18:17:19 +0800120 "src/am_crypt.c",
121 "src/des.c",
Zhiqiang Hanf9c0e272022-06-14 13:54:03 +0800122 "src/dvr_mutex.c",
hualing chenf9c3c492021-05-21 16:09:37 +0800123 ],
124 shared_libs: [
125 "libcutils",
126 "liblog",
127 "libdl",
128 "libc",
129 "liblog",
130 "libmediahal_tsplayer.system",
131 ],
132 cflags: [
133
134 ],
135
136 // TODO: revise
137 include_dirs: [
138 "hardware/amlogic/media/amcodec/include",
hualing chenf9c3c492021-05-21 16:09:37 +0800139 "vendor/amlogic/common/mediahal_sdk/include",
hualing chenf9c3c492021-05-21 16:09:37 +0800140 ],
141
142 static_libs: [
143
144 ],
145
146
147 export_include_dirs: [
148 "include",
149 ],
150
151
152 ldflags: ["-shared"],
153
154}
155
hualing chen03fd4942021-07-15 15:56:41 +0800156subdirs=[
157 "test"
158]