blob: 591ef8b3064a6d39d2ad347798b23981a1cbddbc [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",
Zhiqiang Han2f019af2023-08-31 11:12:02 +080052 "src/segment_dataout.c",
Yahui Han1fbf3292021-11-08 18:17:19 +080053 "src/am_crypt.c",
Zhiqiang Hanf9c0e272022-06-14 13:54:03 +080054 "src/dvr_mutex.c",
hualing chenf9c3c492021-05-21 16:09:37 +080055 ],
56 shared_libs: [
57 "libcutils",
58 "liblog",
59 "libdl",
60 "libc",
61 "liblog",
62 "libmediahal_tsplayer",
63 ],
64 cflags: [
65
66 ],
67
68 // TODO: revise
69 include_dirs: [
70 "hardware/amlogic/media/amcodec/include",
hualing chenf9c3c492021-05-21 16:09:37 +080071 "vendor/amlogic/common/mediahal_sdk/include",
hualing chenf9c3c492021-05-21 16:09:37 +080072 ],
73
74 static_libs: [
75
76 ],
77
78
79 export_include_dirs: [
80 "include",
81 ],
82
83
84 ldflags: ["-shared"],
85}
86
87cc_library_shared {
88 name: "libamdvr.system",
junlan.duan5e6cfa82022-01-13 12:34:31 +080089 compile_multilib: "both",
hualing chenf9c3c492021-05-21 16:09:37 +080090 system_ext_specific: true,
91
92 arch: {
93 arm: {
94 instruction_set: "arm",
95 },
96 arm64: {
junlan.duan5e6cfa82022-01-13 12:34:31 +080097 enabled: true,
hualing chenf9c3c492021-05-21 16:09:37 +080098 },
99 x86: {
100 enabled: false,
101 },
102 x86_64: {
103 enabled: false,
104 },
105 },
106 srcs: [
107 "src/dvb_dmx_wrapper.c",
108 "src/dvb_frontend_wrapper.c",
109 "src/dvb_utils.c",
110 "src/dvr_playback.c",
111 "src/dvr_record.c",
112 "src/dvr_segment.c",
113 "src/dvr_utils.c",
114 "src/dvr_wrapper.c",
115 "src/index_file.c",
116 "src/list_file.c",
117 "src/record_device.c",
118 "src/segment.c",
Zhiqiang Han2f019af2023-08-31 11:12:02 +0800119 "src/segment_dataout.c",
Yahui Han1fbf3292021-11-08 18:17:19 +0800120 "src/am_crypt.c",
Zhiqiang Hanf9c0e272022-06-14 13:54:03 +0800121 "src/dvr_mutex.c",
hualing chenf9c3c492021-05-21 16:09:37 +0800122 ],
123 shared_libs: [
124 "libcutils",
125 "liblog",
126 "libdl",
127 "libc",
128 "liblog",
129 "libmediahal_tsplayer.system",
130 ],
131 cflags: [
132
133 ],
134
135 // TODO: revise
136 include_dirs: [
137 "hardware/amlogic/media/amcodec/include",
hualing chenf9c3c492021-05-21 16:09:37 +0800138 "vendor/amlogic/common/mediahal_sdk/include",
hualing chenf9c3c492021-05-21 16:09:37 +0800139 ],
140
141 static_libs: [
142
143 ],
144
145
146 export_include_dirs: [
147 "include",
148 ],
149
150
151 ldflags: ["-shared"],
152
153}
154
hualing chen03fd4942021-07-15 15:56:41 +0800155subdirs=[
156 "test"
157]