84 lines
2 KiB
Text
84 lines
2 KiB
Text
//
|
|
// Copyright (C) 2025 KonstaKANG
|
|
//
|
|
// SPDX-License-Identifier: LGPL-2.1-or-later
|
|
//
|
|
|
|
cc_library_headers {
|
|
name: "ffmpeg_headers",
|
|
vendor: true,
|
|
export_include_dirs: [
|
|
".",
|
|
"libavcodec",
|
|
"libavformat",
|
|
"libavutil",
|
|
"libswresample",
|
|
"libswscale",
|
|
],
|
|
}
|
|
|
|
cc_defaults {
|
|
name: "ffmpeg_defaults",
|
|
vendor: true,
|
|
compile_multilib: "64",
|
|
header_libs: [
|
|
"ffmpeg_headers",
|
|
],
|
|
export_header_lib_headers: [
|
|
"ffmpeg_headers",
|
|
],
|
|
cflags: [
|
|
"-DHAVE_AV_CONFIG_H",
|
|
"-DPIC",
|
|
"-DZLIB_CONST",
|
|
"-D_FILE_OFFSET_BITS=64",
|
|
"-D_ISOC11_SOURCE",
|
|
"-D_LARGEFILE_SOURCE",
|
|
"-D__STDC_CONSTANT_MACROS",
|
|
"-O3",
|
|
"-Wall",
|
|
"-Wdisabled-optimization",
|
|
"-Wempty-body",
|
|
"-Werror=implicit-function-declaration",
|
|
"-Werror=missing-prototypes",
|
|
"-Werror=return-type",
|
|
"-Wmissing-prototypes",
|
|
"-Wno-bool-operation",
|
|
"-Wno-char-subscripts",
|
|
"-Wno-declaration-after-statement",
|
|
"-Wno-enum-conversion",
|
|
"-Wno-format-zero-length",
|
|
"-Wno-ignored-qualifiers",
|
|
"-Wno-implicit-const-int-float-conversion",
|
|
"-Wno-incompatible-pointer-types-discards-qualifiers",
|
|
"-Wno-initializer-overrides",
|
|
"-Wno-microsoft-enum-forward-reference",
|
|
"-Wno-parentheses",
|
|
"-Wno-pointer-sign",
|
|
"-Wno-sometimes-uninitialized",
|
|
"-Wno-switch",
|
|
"-Wno-uninitialized",
|
|
"-Wno-unused-const-variable",
|
|
"-Wpointer-arith",
|
|
"-Wredundant-decls",
|
|
"-Wstrict-prototypes",
|
|
"-Wtype-limits",
|
|
"-Wundef",
|
|
"-Wwrite-strings",
|
|
"-fPIC",
|
|
"-fPIE",
|
|
"-fno-math-errno",
|
|
"-fno-signed-zeros",
|
|
"-fomit-frame-pointer",
|
|
"-mstack-alignment=16",
|
|
"-pthread",
|
|
],
|
|
ldflags: [
|
|
"-Wl,-Bsymbolic",
|
|
],
|
|
asflags: [
|
|
"-fPIC",
|
|
],
|
|
c_std: "c17",
|
|
cpp_std: "c++11",
|
|
}
|