summaryrefslogtreecommitdiff
path: root/drivers/png/SCsub
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-02-09 22:10:30 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-02-09 22:10:30 -0300
commit0b806ee0fc9097fa7bda7ac0109191c9c5e0a1ac (patch)
tree276c4d099e178eb67fbd14f61d77b05e3808e9e3 /drivers/png/SCsub
parent0e49da1687bc8192ed210947da52c9e5c5f301bb (diff)
GODOT IS OPEN SOURCE
Diffstat (limited to 'drivers/png/SCsub')
-rw-r--r--drivers/png/SCsub38
1 files changed, 38 insertions, 0 deletions
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')
+