summaryrefslogtreecommitdiff
path: root/drivers/zlib
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2016-10-14 18:58:24 +0200
committerRémi Verschelde <rverschelde@gmail.com>2016-10-15 12:20:47 +0200
commitcbf52606f4928df46fc89d37d781bad782f0616e (patch)
tree6a2d1d2a597f17edb735e3b8201c1a3bf0efed7d /drivers/zlib
parent36738ddda4f732fff7bbfb7b4605a47a0bd7c045 (diff)
zlib: Split thirdparty files, simplify scons option
Diffstat (limited to 'drivers/zlib')
-rw-r--r--drivers/zlib/SCsub24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/zlib/SCsub b/drivers/zlib/SCsub
new file mode 100644
index 0000000000..d0bbcd452b
--- /dev/null
+++ b/drivers/zlib/SCsub
@@ -0,0 +1,24 @@
+Import('env')
+
+# Not cloning the env, the includes need to be accessible for core/
+
+# Thirdparty source files
+# No check here as already done in drivers/SCsub
+thirdparty_dir = "#thirdparty/zlib/"
+thirdparty_sources = [
+ "adler32.c",
+ "compress.c",
+ "crc32.c",
+ "deflate.c",
+ "infback.c",
+ "inffast.c",
+ "inflate.c",
+ "inftrees.c",
+ "trees.c",
+ "uncompr.c",
+ "zutil.c",
+]
+thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
+
+env.add_source_files(env.drivers_sources, thirdparty_sources)
+env.Append(CPPPATH = [thirdparty_dir])