improve ffmpeg (#1529)

pull/1530/head
ruki 2 years ago committed by GitHub
parent b2d4a356d7
commit d807336870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      packages/f/ffmpeg/xmake.lua

@ -27,7 +27,7 @@ package("ffmpeg")
add_versions("git:5.1.1", "n5.1.1")
add_versions("git:5.0.1", "n5.0.1")
add_versions("git:4.0.2", "n4.0.2")
add_configs("gpl", {description = "Enable GPL code", default = true, type = "boolean"})
add_configs("ffprobe", {description = "Enable ffprobe program.", default = false, type = "boolean"})
add_configs("ffmpeg", {description = "Enable ffmpeg program.", default = true, type = "boolean"})
@ -38,6 +38,8 @@ package("ffmpeg")
add_configs("libx264", {description = "Enable libx264 decoder.", default = false, type = "boolean"})
add_configs("libx265", {description = "Enable libx265 decoder.", default = false, type = "boolean"})
add_configs("iconv", {description = "Enable libiconv library.", default = false, type = "boolean"})
add_configs("vaapi", {description = "Enable vaapi library.", default = false, type = "boolean"})
add_configs("vdpau", {description = "Enable vdpau library.", default = false, type = "boolean"})
add_configs("hardcoded-tables", {description = "Enable hardcoded tables.", default = true, type = "boolean"})
end
@ -138,9 +140,6 @@ package("ffmpeg")
else
table.insert(configs, "--disable-debug")
end
if package:config("pic") ~= false then
table.insert(configs, "--enable-pic")
end
if package:is_plat("android") then
import("core.base.option")
import("core.tool.toolchain")

Loading…
Cancel
Save