Files
2026-08-24 10:03:24 +08:00

185 lines
5.3 KiB
Plaintext

// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
// CONSULT THE OWNERS AND [email protected] BEFORE
// DEPENDING ON IT IN YOUR PROJECT. ***
package {
default_applicable_licenses: [
"vendor_amlogic_reference_subtitle_license",
],
}
// Added automatically by a large-scale-change that took the approach of
// 'apply every license found to every target'. While this makes sure we respect
// every license restriction, it may not be entirely correct.
//
// e.g. GPL in an MIT project might only apply to the contrib/ directory.
//
// Please consider splitting the single license below into multiple licenses,
// taking care not to lose any license_kind information, and overriding the
// default license using the 'licenses: [...]' property on targets as needed.
//
// For unused files, consider creating a 'fileGroup' with "//visibility:private"
// to attach the license to, and including a comment whether the files may be
// used in the current project.
//
// large-scale-change included anything that looked like it might be a license
// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
//
// Please consider removing redundant or irrelevant files from 'license_text:'.
// See: http://go/android-license-faq
license {
name: "vendor_amlogic_reference_subtitle_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-BSD",
"SPDX-license-identifier-FTL",
"SPDX-license-identifier-GPL",
"SPDX-license-identifier-GPL-2.0",
"SPDX-license-identifier-LGPL",
"SPDX-license-identifier-LGPL-2.1",
"SPDX-license-identifier-MIT",
"legacy_by_exception_only", // by exception only
"legacy_notice",
"legacy_unencumbered",
],
license_text: [
"COPYING",
"COPYING.LIB",
],
}
cc_library_static {
vendor_available: true,
name: "libzvbi_subtitle_static",
compile_multilib: "both",
srcs: [
"src/bit_slicer.c",
"src/cache.c",
"src/caption.c",
"src/conv.c",
"src/dvb_mux.c",
"src/dvb_demux.c",
"src/exp-html.c",
"src/exp-templ.c",
"src/exp-txt.c",
"src/exp-vtx.c",
"src/exp-gfx.c",
"src/export.c",
"src/hamm.c",
"src/idl_demux.c",
"src/io.c",
"src/io-bktr.c",
"src/io-dvb.c",
"src/io-sim.c",
"src/io-v4l.c",
"src/io-v4l2.c",
"src/io-v4l2k.c",
"src/lang.c",
"src/misc.c",
"src/packet.c",
"src/teletext.c",
"src/page_table.c",
"src/pfc_demux.c",
"src/proxy-client.c",
"src/raw_decoder.c",
"src/sampling_par.c",
"src/search.c",
"src/ure.c",
"src/sliced_filter.c",
"src/tables.c",
"src/trigger.c",
"src/vbi.c",
"src/vps.c",
"src/wss.c",
"src/xds_demux.c",
"src/decoder.c",
"src/dtvcc.c",
],
cflags: [
"-Werror", // Must keep this, never allow remove this flag!
"-Wno-unused-parameter",
"-Wno-unused-function",
"-Wno-unused-variable",
"-Wno-invalid-source-encoding", // not throw this when saw utf8 name
"-Wno-error=tautological-pointer-compare",
"-D_REENTRANT",
"-D_GNU_SOURCE",
"-DENABLE_DVB=1",
"-DENABLE_V4L=1",
"-DENABLE_V4L2=1",
"-DHAVE_ICONV=1",
"-DPACKAGE=\"zvbi\"",
"-DVERSION=\"0.2.33\"",
"-DNEED_TELETEXT_FIX_NULL_FLOF_LINKS",
"-DNEED_TELETEXT_FIX_WRONG_CODE_STREAM_FOUR_COLOR_KEY",
"-DNEED_TELETEXT_BLOCK_TOP_NAVIGATION_BAR",
"-DNEED_TELETEXT_EXTENDED_LOCAL_ENHANCEMENT_DATA_CHROMA_KEY_LABEL_BAR",
"-DNEED_TELETEXT_GRAPHICS_SUBTITLE_PAGENUMBER_BLACKGROUND",
//"-DNEED_TELETEXT_USES_VECTOR_FONTS",
//"-DNEED_TELETEXT_USES_VECTOR_FONTS_2",
//"-DNEED_TELETEXT_USES_VECTOR_FONTS_3",
//"-DNEED_TELETEXT_USES_VECTOR_FONTS_4",
//"-DNEED_TELETEXT_USES_VECTOR_FONTS_5",
"-DNEED_TELETEXT_REMOVE_FOUR_COLOR_KEY_BACKGROUND",
//"-DNEED_TELETEXT_REMOVE_SUBTITLE_LEFT_RIGHT_BACKGROUND",
//"-DNEED_TELETEXT_REMOVE_SUBPAGE_DISPLAY",
//"-DNEED_TELETEXT_UNREMOVED_MIX_VIDEO_MODE_FOUR_COLOR_KEY_BACKGROUND",
//"-DNEED_TELETEXT_GRAPHICS_SUBTITLE_BLACKGROUND",
"-DNEED_CC_AM_ICONV",
"-DNEED_CC_SARNOFF_FOOTBALL_708_DEFAULT_HEADER",
"-DNEED_CC_CALC_708_HEADER"
//"-DNEED_KOREAN_CC_DETECT_Q_TONE_DATA",
//"-DNEED_KOREAN_CC_CALC_708_HEADER",
],
arch: {
arm: {
instruction_set: "arm",
},
arm64: {
enabled: true,
},
},
export_include_dirs: ["src"],
shared_libs: [
"liblog",
"libutils",
],
}
cc_library_shared {
vendor: true,
name: "libzvbi_subtitle",
compile_multilib: "both",
arch: {
arm: {
instruction_set: "arm",
},
arm64: {
enabled: true,
},
x86: {
enabled: false,
},
x86_64: {
enabled: false,
},
},
shared_libs: [
"liblog",
"libutils",
],
export_include_dirs: ["src"],
whole_static_libs: [
"libzvbi_subtitle_static",
],
}