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

Side by Side Diff: gears/SConscript.libgd

Issue 6576020: Remove Gears from Chrome (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: windows fixes Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gears/SConscript.libbreakpad_osx ('k') | gears/SConscript.libjpeg » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 '$VC80_CPPPATH',
20 ],
21 )
22
23 env.Append(
24 CPPDEFINES = [
25 'HAVE_CONFIG_H',
26 'BGDWIN32',
27 ],
28
29 )
30
31 if env['OS'] == 'win32':
32 env.Append(
33 CPPFLAGS = [
34 # Disable some warnings when building third-party code, so we can enable /WX.
35 # Examples:
36 # warning C4244: conversion from 'type1' to 'type2', possible loss of data
37 # warning C4018: signed/unsigned mismatch in comparison
38 # warning C4003: not enough actual parameters for macro
39 '/wd4244',
40 '/wd4996',
41 '/wd4005',
42 '/wd4142',
43 '/wd4018',
44 '/wd4133',
45 '/wd4102',
46 ],
47 )
48 elif env['OS'] in ['linux', 'osx']:
49 env.Append(
50 CPPFLAGS = [
51 '-Wno-unused-variable',
52 '-Wno-unused-function',
53 '-Wno-unused-label',
54 ],
55 )
56
57 input_files = [
58 '$LIBGD_DIR/gd.c',
59 '$LIBGD_DIR/gdfx.c',
60 '$LIBGD_DIR/gd_security.c',
61 '$LIBGD_DIR/gd_gd.c',
62 '$LIBGD_DIR/gd_gd2.c',
63 '$LIBGD_DIR/gd_io.c',
64 '$LIBGD_DIR/gd_io_dp.c',
65 '$LIBGD_DIR/gd_gif_in.c',
66 '$LIBGD_DIR/gd_gif_out.c',
67 '$LIBGD_DIR/gd_io_file.c',
68 '$LIBGD_DIR/gd_io_ss.c',
69 '$LIBGD_DIR/gd_jpeg.c',
70 '$LIBGD_DIR/gd_png.c',
71 '$LIBGD_DIR/gd_ss.c',
72 '$LIBGD_DIR/gd_topal.c',
73 '$LIBGD_DIR/gd_wbmp.c',
74 '$LIBGD_DIR/gdcache.c',
75 '$LIBGD_DIR/gdfontg.c',
76 '$LIBGD_DIR/gdfontl.c',
77 '$LIBGD_DIR/gdfontmb.c',
78 '$LIBGD_DIR/gdfonts.c',
79 '$LIBGD_DIR/gdfontt.c',
80 '$LIBGD_DIR/gdft.c',
81 '$LIBGD_DIR/gdhelpers.c',
82 '$LIBGD_DIR/gdkanji.c',
83 '$LIBGD_DIR/gdtables.c',
84 '$LIBGD_DIR/gdxpm.c',
85 '$LIBGD_DIR/wbmp.c',
86 ]
87
88 env.GearsStaticLibrary('gd', input_files)
OLDNEW
« no previous file with comments | « gears/SConscript.libbreakpad_osx ('k') | gears/SConscript.libjpeg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698