summaryrefslogtreecommitdiff
path: root/drivers/png/SCsub
diff options
context:
space:
mode:
authormrezai <mhd.rezai@gmail.com>2015-12-21 11:50:54 +0330
committermrezai <mhd.rezai@gmail.com>2015-12-21 11:50:54 +0330
commitbf69e07ea688bfb2d47e60d23edeebecb7fd4f35 (patch)
treec36874dd73700872180a8801ffb8a6b7e2bd5749 /drivers/png/SCsub
parent020700af1d664c7b6e3b8b8d50a23e86286ef3dd (diff)
Fix libpng link errors on android
Diffstat (limited to 'drivers/png/SCsub')
-rw-r--r--drivers/png/SCsub6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/png/SCsub b/drivers/png/SCsub
index 9ee066cbb2..5682a5667e 100644
--- a/drivers/png/SCsub
+++ b/drivers/png/SCsub
@@ -22,7 +22,7 @@ png_sources = [
"png/image_loader_png.cpp"
]
-if ("neon_enabled" in env and env["neon_enabled"]):
+if ("neon_enabled" in env and env["neon_enabled"]):
env_neon = env.Clone();
if "S_compiler" in env:
env_neon['CC'] = env['S_compiler']
@@ -30,7 +30,9 @@ if ("neon_enabled" in env and env["neon_enabled"]):
import os
# Currently .ASM filter_neon.S does not compile on NT.
if (os.name!="nt"):
- png_sources.append(env_neon.Object("#drivers/png/filter_neon.S"))
+ env_neon.Append(CPPFLAGS=["-DPNG_ARM_NEON_OPT=2"])
+ png_sources.append(env_neon.Object("#drivers/png/arm/arm_init.c"))
+ png_sources.append(env_neon.Object("#drivers/png/arm/filter_neon.S"))
env.drivers_sources+=png_sources