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