OLD | NEW |
(Empty) | |
| 1 # 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 |
| 7 Import('env') |
| 8 |
| 9 env = env.Clone( |
| 10 ) |
| 11 |
| 12 env.Replace( |
| 13 LIBGD_DIR = '$THIRD_PARTY_DIR/libgd', |
| 14 CPPPATH = [ |
| 15 '$LIBGD_DIR', |
| 16 '$THIRD_PARTY_DIR/libjpeg', |
| 17 '$THIRD_PARTY_DIR/libpng', |
| 18 '$THIRD_PARTY_DIR/zlib', |
| 19 ], |
| 20 ) |
| 21 |
| 22 env.Append( |
| 23 CPPDEFINES = [ |
| 24 'HAVE_CONFIG_H', |
| 25 'BGDWIN32', |
| 26 ], |
| 27 |
| 28 ) |
| 29 |
| 30 if env['PLATFORM'] == 'win32': |
| 31 env.Append( |
| 32 CPPFLAGS = [ |
| 33 # Disable some warnings when building third-party code, so we can enable /WX. |
| 34 # Examples: |
| 35 # warning C4244: conversion from 'type1' to 'type2', possible loss of data |
| 36 # warning C4018: signed/unsigned mismatch in comparison |
| 37 # warning C4003: not enough actual parameters for macro |
| 38 '/wd4244', |
| 39 '/wd4996', |
| 40 '/wd4005', |
| 41 '/wd4142', |
| 42 '/wd4018', |
| 43 '/wd4133', |
| 44 '/wd4102', |
| 45 ], |
| 46 ) |
| 47 |
| 48 |
| 49 input_files = [ |
| 50 '$LIBGD_DIR/gd.c', |
| 51 '$LIBGD_DIR/gdfx.c', |
| 52 '$LIBGD_DIR/gd_security.c', |
| 53 '$LIBGD_DIR/gd_gd.c', |
| 54 '$LIBGD_DIR/gd_gd2.c', |
| 55 '$LIBGD_DIR/gd_io.c', |
| 56 '$LIBGD_DIR/gd_io_dp.c', |
| 57 '$LIBGD_DIR/gd_gif_in.c', |
| 58 '$LIBGD_DIR/gd_gif_out.c', |
| 59 '$LIBGD_DIR/gd_io_file.c', |
| 60 '$LIBGD_DIR/gd_io_ss.c', |
| 61 '$LIBGD_DIR/gd_jpeg.c', |
| 62 '$LIBGD_DIR/gd_png.c', |
| 63 '$LIBGD_DIR/gd_ss.c', |
| 64 '$LIBGD_DIR/gd_topal.c', |
| 65 '$LIBGD_DIR/gd_wbmp.c', |
| 66 '$LIBGD_DIR/gdcache.c', |
| 67 '$LIBGD_DIR/gdfontg.c', |
| 68 '$LIBGD_DIR/gdfontl.c', |
| 69 '$LIBGD_DIR/gdfontmb.c', |
| 70 '$LIBGD_DIR/gdfonts.c', |
| 71 '$LIBGD_DIR/gdfontt.c', |
| 72 '$LIBGD_DIR/gdft.c', |
| 73 '$LIBGD_DIR/gdhelpers.c', |
| 74 '$LIBGD_DIR/gdkanji.c', |
| 75 '$LIBGD_DIR/gdtables.c', |
| 76 '$LIBGD_DIR/gdxpm.c', |
| 77 '$LIBGD_DIR/wbmp.c', |
| 78 ] |
| 79 |
| 80 env.ChromeStaticLibrary('gd', input_files) |
OLD | NEW |