blob: d5644c51eb30122197f726e363866e7143bf682b [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: [
Zhiqiang Hana67a8252023-02-25 18:23:48 +080016 "SPDX-license-identifier-Apache-2.0",
Liang Jib3a73d42022-11-14 10:58:15 +080017 ],
Liang Jic41569e2022-10-30 13:59:04 +080018}
hualing chenf9c3c492021-05-21 16:09:37 +080019
20cc_library_shared {
21 name: "libamdvr",
22 vendor: true,
junlan.duan5e6cfa82022-01-13 12:34:31 +080023 compile_multilib: "both",
hualing chenf9c3c492021-05-21 16:09:37 +080024
25 arch: {
26 arm: {
27 instruction_set: "arm",
28 },
29 arm64: {
junlan.duan5e6cfa82022-01-13 12:34:31 +080030 enabled: true,
hualing chenf9c3c492021-05-21 16:09:37 +080031 },
32 x86: {
33 enabled: false,
34 },
35 x86_64: {
36 enabled: false,
37 },
38 },
39 srcs: [
40 "src/dvb_dmx_wrapper.c",
41 "src/dvb_frontend_wrapper.c",
42 "src/dvb_utils.c",
43 "src/dvr_playback.c",
44 "src/dvr_record.c",
45 "src/dvr_segment.c",
46 "src/dvr_utils.c",
47 "src/dvr_wrapper.c",
48 "src/index_file.c",
49 "src/list_file.c",
50 "src/record_device.c",
51 "src/segment.c",
Yahui Han1fbf3292021-11-08 18:17:19 +080052 "src/am_crypt.c",
Zhiqiang Hanf9c0e272022-06-14 13:54:03 +080053 "src/dvr_mutex.c",
hualing chenf9c3c492021-05-21 16:09:37 +080054 ],
55 shared_libs: [
56 "libcutils",
57 "liblog",
58 "libdl",
59 "libc",
60 "liblog",
61 "libmediahal_tsplayer",
62 ],
63 cflags: [
64
65 ],
66
67 // TODO: revise
68 include_dirs: [
69 "hardware/amlogic/media/amcodec/include",
hualing chenf9c3c492021-05-21 16:09:37 +080070 "vendor/amlogic/common/mediahal_sdk/include",
hualing chenf9c3c492021-05-21 16:09:37 +080071 ],
72
73 static_libs: [
74
75 ],
76
77
78 export_include_dirs: [
79 "include",
80 ],
81
82
83 ldflags: ["-shared"],
84}
85
86cc_library_shared {
87 name: "libamdvr.system",
junlan.duan5e6cfa82022-01-13 12:34:31 +080088 compile_multilib: "both",
hualing chenf9c3c492021-05-21 16:09:37 +080089 system_ext_specific: true,
90
91 arch: {
92 arm: {
93 instruction_set: "arm",
94 },
95 arm64: {
junlan.duan5e6cfa82022-01-13 12:34:31 +080096 enabled: true,
hualing chenf9c3c492021-05-21 16:09:37 +080097 },
98 x86: {
99 enabled: false,
100 },
101 x86_64: {
102 enabled: false,
103 },
104 },
105 srcs: [
106 "src/dvb_dmx_wrapper.c",
107 "src/dvb_frontend_wrapper.c",
108 "src/dvb_utils.c",
109 "src/dvr_playback.c",
110 "src/dvr_record.c",
111 "src/dvr_segment.c",
112 "src/dvr_utils.c",
113 "src/dvr_wrapper.c",
114 "src/index_file.c",
115 "src/list_file.c",
116 "src/record_device.c",
117 "src/segment.c",
Yahui Han1fbf3292021-11-08 18:17:19 +0800118 "src/am_crypt.c",
Zhiqiang Hanf9c0e272022-06-14 13:54:03 +0800119 "src/dvr_mutex.c",
hualing chenf9c3c492021-05-21 16:09:37 +0800120 ],
121 shared_libs: [
122 "libcutils",
123 "liblog",
124 "libdl",
125 "libc",
126 "liblog",
127 "libmediahal_tsplayer.system",
128 ],
129 cflags: [
130
131 ],
132
133 // TODO: revise
134 include_dirs: [
135 "hardware/amlogic/media/amcodec/include",
hualing chenf9c3c492021-05-21 16:09:37 +0800136 "vendor/amlogic/common/mediahal_sdk/include",
hualing chenf9c3c492021-05-21 16:09:37 +0800137 ],
138
139 static_libs: [
140
141 ],
142
143
144 export_include_dirs: [
145 "include",
146 ],
147
148
149 ldflags: ["-shared"],
150
151}
152
hualing chen03fd4942021-07-15 15:56:41 +0800153subdirs=[
154 "test"
155]