diff options
author | mrezai <mhd.rezai@gmail.com> | 2015-12-23 14:57:00 +0330 |
---|---|---|
committer | mrezai <mhd.rezai@gmail.com> | 2015-12-23 14:57:00 +0330 |
commit | 0897b73cd6c7fd0d0e6fc2dbac901446c38568a2 (patch) | |
tree | 80dfd07b0564c954cb71025d3bed52e4aeed3f59 /drivers/png | |
parent | b803bedb7d67b9d8e7851d4d478b5085b9fd54b1 (diff) |
Fix ios libpng link error
Diffstat (limited to 'drivers/png')
-rw-r--r-- | drivers/png/SCsub | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/png/SCsub b/drivers/png/SCsub index 5682a5667e..b9295d17d3 100644 --- a/drivers/png/SCsub +++ b/drivers/png/SCsub @@ -22,18 +22,19 @@ 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.Append(CPPFLAGS=["-DPNG_ARM_NEON_OPT=2"]) env_neon = env.Clone(); if "S_compiler" in env: env_neon['CC'] = env['S_compiler'] - env_neon.Append(CPPFLAGS=["-DPNG_ARM_NEON"]) + #env_neon.Append(CPPFLAGS=["-DPNG_ARM_NEON"]) import os # Currently .ASM filter_neon.S does not compile on NT. if (os.name!="nt"): - 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")) - +else: + env.Append(CPPFLAGS=["-DPNG_ARM_NEON_OPT=0"]) env.drivers_sources+=png_sources |