Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Unified Diff: gears/SConscript.libpng

Issue 232: Initial Gears SConscript file. Doesn't build yet. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gears/SConscript.libjpeg ('k') | gears/SConscript.portaudio » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gears/SConscript.libpng
===================================================================
--- gears/SConscript.libpng (revision 0)
+++ gears/SConscript.libpng (revision 0)
@@ -0,0 +1,52 @@
+# 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(
+ LIBPNG_DIR = '$THIRD_PARTY_DIR/libpng',
+ CPPPATH = [
+ '$LIBPNG_DIR',
+ '$THIRD_PARTY_DIR/zlib',
+ ],
+)
+
+env.Append(
+ CPPDEFINES = [
+ ],
+)
+
+input_files = [
+ # Common Files
+ '$LIBPNG_DIR/png.c',
+ '$LIBPNG_DIR/pngerror.c',
+ '$LIBPNG_DIR/pngget.c',
+ '$LIBPNG_DIR/pngmem.c',
+ '$LIBPNG_DIR/pngset.c',
+ '$LIBPNG_DIR/pngtrans.c',
+
+ # Reading PNGs
+ '$LIBPNG_DIR/pngpread.c',
+ '$LIBPNG_DIR/pngread.c',
+ '$LIBPNG_DIR/pngrio.c',
+ '$LIBPNG_DIR/pngrtran.c',
+ '$LIBPNG_DIR/pngrutil.c',
+]
+
+# The following files are not yet needed; exclude them to save size.
+if not env['OFFICIAL_BUILD']:
+ input_files += [
+ # Writing PNGs
+ '$LIBPNG_DIR/pngwio.c',
+ '$LIBPNG_DIR/pngwrite.c',
+ '$LIBPNG_DIR/pngwtran.c',
+ '$LIBPNG_DIR/pngwutil.c',
+ ]
+
+env.ChromeStaticLibrary('png', input_files)
« no previous file with comments | « gears/SConscript.libjpeg ('k') | gears/SConscript.portaudio » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698