Skip to content

Commit

Permalink
view Android error info
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowinterCat committed Sep 29, 2024
1 parent 7762775 commit 1e85090
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/f/ffmpeg/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ package("ffmpeg")
import("package.tools.autoconf")
local envs = autoconf.buildenvs(package, {packagedeps = "libiconv"})
-- add gas-preprocessor to PATH
print("autoconf libiconv's envs:", envs)
if package:is_arch("arm", "arm64") then
envs.PATH = path.join(os.programdir(), "scripts") .. path.envsep() .. envs.PATH
end
Expand Down Expand Up @@ -348,7 +349,20 @@ package("ffmpeg")
table.insert(configs, "--sysroot=" .. _translate_path(sysroot))
table.insert(configs, "--cross-prefix=" .. _translate_path(cross_prefix))
table.insert(configs, "--prefix=" .. _translate_path(package:installdir()))
try
{
function ()
os.vrunv("./configure", configs, {shell = true})
end,
catch
{
function (errors)
print(errors)
io.cat("ffbuild/config.log")
assert(false)
end
}
}
local njob = option.get("jobs") or tostring(os.default_njob())
local argv = {"-j" .. njob}
if option.get("verbose") or is_subhost("windows") then -- we always need enable it on windows, otherwise it will fail.
Expand Down

0 comments on commit 1e85090

Please sign in to comment.