fix libpng for android armv7 (#547)

pull/549/head
ruki 4 years ago committed by GitHub
parent 1e7017ba80
commit 5430f32f65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/l/libpng/xmake.lua

@ -50,6 +50,10 @@ package("libpng")
elseif not package:is_plat("windows", "mingw") and package:config("pic") ~= false then
configs.cxflags = "-fPIC"
end
if package:is_plat("android") and package:is_arch("armeabi-v7a") then
io.replace("arm/filter_neon.S", ".func", ".hidden", {plain = true})
io.replace("arm/filter_neon.S", ".endfunc", "", {plain = true})
end
os.cp("scripts/pnglibconf.h.prebuilt", "pnglibconf.h")
import("package.tools.xmake").install(package, configs)
end)

Loading…
Cancel
Save