hualing chen | f9c3c49 | 2021-05-21 16:09:37 +0800 | [diff] [blame] | 1 | // 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 Ji | c41569e | 2022-10-30 13:59:04 +0800 | [diff] [blame] | 8 | package { |
Liang Ji | b3a73d4 | 2022-11-14 10:58:15 +0800 | [diff] [blame] | 9 | default_applicable_licenses: ["vendor_amlogic_libdvr_license"], |
| 10 | } |
| 11 | |
| 12 | license { |
| 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 Ji | c41569e | 2022-10-30 13:59:04 +0800 | [diff] [blame] | 19 | } |
hualing chen | f9c3c49 | 2021-05-21 16:09:37 +0800 | [diff] [blame] | 20 | |
| 21 | cc_library_shared { |
| 22 | name: "libamdvr", |
| 23 | vendor: true, |
junlan.duan | 5e6cfa8 | 2022-01-13 12:34:31 +0800 | [diff] [blame] | 24 | compile_multilib: "both", |
hualing chen | f9c3c49 | 2021-05-21 16:09:37 +0800 | [diff] [blame] | 25 | |
| 26 | arch: { |
| 27 | arm: { |
| 28 | instruction_set: "arm", |
| 29 | }, |
| 30 | arm64: { |
junlan.duan | 5e6cfa8 | 2022-01-13 12:34:31 +0800 | [diff] [blame] | 31 | enabled: true, |
hualing chen | f9c3c49 | 2021-05-21 16:09:37 +0800 | [diff] [blame] | 32 | }, |
| 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 Han | 1fbf329 | 2021-11-08 18:17:19 +0800 | [diff] [blame] | 53 | "src/am_crypt.c", |
| 54 | "src/des.c", |
Zhiqiang Han | f9c0e27 | 2022-06-14 13:54:03 +0800 | [diff] [blame] | 55 | "src/dvr_mutex.c", |
hualing chen | f9c3c49 | 2021-05-21 16:09:37 +0800 | [diff] [blame] | 56 | ], |
| 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 chen | f9c3c49 | 2021-05-21 16:09:37 +0800 | [diff] [blame] | 72 | "vendor/amlogic/common/mediahal_sdk/include", |
hualing chen | f9c3c49 | 2021-05-21 16:09:37 +0800 | [diff] [blame] | 73 | ], |
| 74 | |
| 75 | static_libs: [ |
| 76 | |
| 77 | ], |
| 78 | |
| 79 | |
| 80 | export_include_dirs: [ |
| 81 | "include", |
| 82 | ], |
| 83 | |
| 84 | |
| 85 | ldflags: ["-shared"], |
| 86 | } |
| 87 | |
| 88 | cc_library_shared { |
| 89 | name: "libamdvr.system", |
junlan.duan | 5e6cfa8 | 2022-01-13 12:34:31 +0800 | [diff] [blame] | 90 | compile_multilib: "both", |
hualing chen | f9c3c49 | 2021-05-21 16:09:37 +0800 | [diff] [blame] | 91 | system_ext_specific: true, |
| 92 | |
| 93 | arch: { |
| 94 | arm: { |
| 95 | instruction_set: "arm", |
| 96 | }, |
| 97 | arm64: { |
junlan.duan | 5e6cfa8 | 2022-01-13 12:34:31 +0800 | [diff] [blame] | 98 | enabled: true, |
hualing chen | f9c3c49 | 2021-05-21 16:09:37 +0800 | [diff] [blame] | 99 | }, |
| 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 Han | 1fbf329 | 2021-11-08 18:17:19 +0800 | [diff] [blame] | 120 | "src/am_crypt.c", |
| 121 | "src/des.c", |
Zhiqiang Han | f9c0e27 | 2022-06-14 13:54:03 +0800 | [diff] [blame] | 122 | "src/dvr_mutex.c", |
hualing chen | f9c3c49 | 2021-05-21 16:09:37 +0800 | [diff] [blame] | 123 | ], |
| 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 chen | f9c3c49 | 2021-05-21 16:09:37 +0800 | [diff] [blame] | 139 | "vendor/amlogic/common/mediahal_sdk/include", |
hualing chen | f9c3c49 | 2021-05-21 16:09:37 +0800 | [diff] [blame] | 140 | ], |
| 141 | |
| 142 | static_libs: [ |
| 143 | |
| 144 | ], |
| 145 | |
| 146 | |
| 147 | export_include_dirs: [ |
| 148 | "include", |
| 149 | ], |
| 150 | |
| 151 | |
| 152 | ldflags: ["-shared"], |
| 153 | |
| 154 | } |
| 155 | |
hualing chen | 03fd494 | 2021-07-15 15:56:41 +0800 | [diff] [blame] | 156 | subdirs=[ |
| 157 | "test" |
| 158 | ] |