blob: c0f9e6bfb610c0d131a5d25c0b5a8eed5c0cb118 [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
8
9cc_library_shared {
10 name: "libamdvr",
11 vendor: true,
junlan.duan5e6cfa82022-01-13 12:34:31 +080012 compile_multilib: "both",
hualing chenf9c3c492021-05-21 16:09:37 +080013
14 arch: {
15 arm: {
16 instruction_set: "arm",
17 },
18 arm64: {
junlan.duan5e6cfa82022-01-13 12:34:31 +080019 enabled: true,
hualing chenf9c3c492021-05-21 16:09:37 +080020 },
21 x86: {
22 enabled: false,
23 },
24 x86_64: {
25 enabled: false,
26 },
27 },
28 srcs: [
29 "src/dvb_dmx_wrapper.c",
30 "src/dvb_frontend_wrapper.c",
31 "src/dvb_utils.c",
32 "src/dvr_playback.c",
33 "src/dvr_record.c",
34 "src/dvr_segment.c",
35 "src/dvr_utils.c",
36 "src/dvr_wrapper.c",
37 "src/index_file.c",
38 "src/list_file.c",
39 "src/record_device.c",
40 "src/segment.c",
Yahui Han1fbf3292021-11-08 18:17:19 +080041 "src/am_crypt.c",
42 "src/des.c",
Zhiqiang Hanf9c0e272022-06-14 13:54:03 +080043 "src/dvr_mutex.c",
hualing chenf9c3c492021-05-21 16:09:37 +080044 ],
45 shared_libs: [
46 "libcutils",
47 "liblog",
48 "libdl",
49 "libc",
50 "liblog",
51 "libmediahal_tsplayer",
52 ],
53 cflags: [
54
55 ],
56
57 // TODO: revise
58 include_dirs: [
59 "hardware/amlogic/media/amcodec/include",
hualing chenf9c3c492021-05-21 16:09:37 +080060 "vendor/amlogic/common/mediahal_sdk/include",
hualing chenf9c3c492021-05-21 16:09:37 +080061 ],
62
63 static_libs: [
64
65 ],
66
67
68 export_include_dirs: [
69 "include",
70 ],
71
72
73 ldflags: ["-shared"],
74}
75
76cc_library_shared {
77 name: "libamdvr.system",
junlan.duan5e6cfa82022-01-13 12:34:31 +080078 compile_multilib: "both",
hualing chenf9c3c492021-05-21 16:09:37 +080079 system_ext_specific: true,
80
81 arch: {
82 arm: {
83 instruction_set: "arm",
84 },
85 arm64: {
junlan.duan5e6cfa82022-01-13 12:34:31 +080086 enabled: true,
hualing chenf9c3c492021-05-21 16:09:37 +080087 },
88 x86: {
89 enabled: false,
90 },
91 x86_64: {
92 enabled: false,
93 },
94 },
95 srcs: [
96 "src/dvb_dmx_wrapper.c",
97 "src/dvb_frontend_wrapper.c",
98 "src/dvb_utils.c",
99 "src/dvr_playback.c",
100 "src/dvr_record.c",
101 "src/dvr_segment.c",
102 "src/dvr_utils.c",
103 "src/dvr_wrapper.c",
104 "src/index_file.c",
105 "src/list_file.c",
106 "src/record_device.c",
107 "src/segment.c",
Yahui Han1fbf3292021-11-08 18:17:19 +0800108 "src/am_crypt.c",
109 "src/des.c",
Zhiqiang Hanf9c0e272022-06-14 13:54:03 +0800110 "src/dvr_mutex.c",
hualing chenf9c3c492021-05-21 16:09:37 +0800111 ],
112 shared_libs: [
113 "libcutils",
114 "liblog",
115 "libdl",
116 "libc",
117 "liblog",
118 "libmediahal_tsplayer.system",
119 ],
120 cflags: [
121
122 ],
123
124 // TODO: revise
125 include_dirs: [
126 "hardware/amlogic/media/amcodec/include",
hualing chenf9c3c492021-05-21 16:09:37 +0800127 "vendor/amlogic/common/mediahal_sdk/include",
hualing chenf9c3c492021-05-21 16:09:37 +0800128 ],
129
130 static_libs: [
131
132 ],
133
134
135 export_include_dirs: [
136 "include",
137 ],
138
139
140 ldflags: ["-shared"],
141
142}
143
hualing chen03fd4942021-07-15 15:56:41 +0800144subdirs=[
145 "test"
146]