blob: c5a9a4c0c3c32b5eda9081e43a1be848f5c44888 [file] [log] [blame]
[email protected]de8d26672008-09-25 22:08:441# Copyright (c) 2008 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# Ripped and modded from chrome.
6
7Import('env')
8
9env = env.Clone(
10)
11
12env.Replace(
13 LIBPNG_DIR = '$THIRD_PARTY_DIR/libpng',
14 CPPPATH = [
15 '$LIBPNG_DIR',
16 '$THIRD_PARTY_DIR/zlib',
[email protected]25ab0c62008-10-14 00:28:3417 '$VC80_CPPPATH',
[email protected]de8d26672008-09-25 22:08:4418 ],
19)
20
21env.Append(
22 CPPDEFINES = [
23 ],
24)
25
26input_files = [
27 # Common Files
28 '$LIBPNG_DIR/png.c',
29 '$LIBPNG_DIR/pngerror.c',
30 '$LIBPNG_DIR/pngget.c',
31 '$LIBPNG_DIR/pngmem.c',
32 '$LIBPNG_DIR/pngset.c',
33 '$LIBPNG_DIR/pngtrans.c',
34
35 # Reading PNGs
36 '$LIBPNG_DIR/pngpread.c',
37 '$LIBPNG_DIR/pngread.c',
38 '$LIBPNG_DIR/pngrio.c',
39 '$LIBPNG_DIR/pngrtran.c',
40 '$LIBPNG_DIR/pngrutil.c',
41]
42
43# The following files are not yet needed; exclude them to save size.
44if not env['OFFICIAL_BUILD']:
45 input_files += [
46 # Writing PNGs
47 '$LIBPNG_DIR/pngwio.c',
48 '$LIBPNG_DIR/pngwrite.c',
49 '$LIBPNG_DIR/pngwtran.c',
50 '$LIBPNG_DIR/pngwutil.c',
51 ]
52
[email protected]17ee3a072008-11-06 22:45:5053env.GearsStaticLibrary('png-gears', input_files)