From 0b806ee0fc9097fa7bda7ac0109191c9c5e0a1ac Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 9 Feb 2014 22:10:30 -0300 Subject: GODOT IS OPEN SOURCE --- drivers/png/SCsub | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 drivers/png/SCsub (limited to 'drivers/png/SCsub') diff --git a/drivers/png/SCsub b/drivers/png/SCsub new file mode 100644 index 0000000000..c3919567bc --- /dev/null +++ b/drivers/png/SCsub @@ -0,0 +1,38 @@ +Import('env') + + +png_sources = [ + "png/example.c", + "png/png.c", + "png/pngerror.c", + "png/pngget.c", + "png/pngmem.c", + "png/pngpread.c", + "png/pngread.c", + "png/pngrio.c", + "png/pngrtran.c", + "png/pngrutil.c", + "png/pngset.c", + "png/pngtrans.c", + "png/pngwio.c", + "png/pngwrite.c", + "png/pngwtran.c", + "png/pngwutil.c", + "png/resource_saver_png.cpp", + "png/image_loader_png.cpp" +] + +if ("neon_enabled" in env and env["neon_enabled"]): + env_neon = env.Clone(); + if "S_compiler" in env: + env_neon['CC'] = env['S_compiler'] + env_neon.Append(CPPFLAGS=["-DPNG_ARM_NEON"]) + png_sources.append(env_neon.Object("#drivers/png/filter_neon.S")) + + +env.drivers_sources+=png_sources + +#env.add_source_files(env.drivers_sources, png_sources) + +Export('env') + -- cgit v1.2.3