summaryrefslogtreecommitdiffstats
path: root/gears/SConscript.zlib
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-16 18:24:30 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-16 18:24:30 +0000
commit186f560e16c1e93189fd21571f2ba754ebe18118 (patch)
tree5fcfb11e65d0025cffc3d7c079564fb74f3ac4d3 /gears/SConscript.zlib
parent9cdaf0f648394c1affc52b7f92cc1d99f235e1b6 (diff)
downloadchromium_src-186f560e16c1e93189fd21571f2ba754ebe18118.zip
chromium_src-186f560e16c1e93189fd21571f2ba754ebe18118.tar.gz
chromium_src-186f560e16c1e93189fd21571f2ba754ebe18118.tar.bz2
Initial Gears SConscript file. A bit messy. Only builds chrome+dbg and
IE+dbg configurations. Review URL: http://codereview.chromium.org/232 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gears/SConscript.zlib')
-rw-r--r--gears/SConscript.zlib47
1 files changed, 47 insertions, 0 deletions
diff --git a/gears/SConscript.zlib b/gears/SConscript.zlib
new file mode 100644
index 0000000..46eceec
--- /dev/null
+++ b/gears/SConscript.zlib
@@ -0,0 +1,47 @@
+# Copyright (c) 2008 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Ripped and modded from chrome.
+
+Import('env')
+
+env = env.Clone(
+)
+
+env.Replace(
+ ZLIB_DIR = '$THIRD_PARTY_DIR/zlib',
+ CPPPATH = [
+ '$ZLIB_DIR',
+ ],
+)
+
+#env.Append(
+# CPPDEFINES = [
+# ],
+#)
+
+input_files = [
+ # Common Files
+ '$ZLIB_DIR/adler32.c',
+ '$ZLIB_DIR/zutil.c',
+ # Inflate Algorithm (use inflate or infback, but not both)
+ '$ZLIB_DIR/inflate.c',
+ '$ZLIB_DIR/inffast.c',
+ '$ZLIB_DIR/inftrees.c',
+]
+
+# The following files are not yet needed; exclude them to save size.
+if not env['OFFICIAL_BUILD']:
+ input_files += [
+ # Other Algorithms
+ '$ZLIB_DIR/compress.c',
+ '$ZLIB_DIR/deflate.c',
+ '$ZLIB_DIR/uncompr.c',
+ # Other Common Files
+ '$ZLIB_DIR/crc32.c',
+ '$ZLIB_DIR/gzio.c',
+ '$ZLIB_DIR/trees.c',
+ ]
+
+env.ChromeStaticLibrary('zlib-gears', input_files)