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

Side by Side Diff: third_party/libjpeg/libjpeg.scons

Issue 53121: Remove the checked-in scons configuration files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 | « third_party/libevent/using_libevent.scons ('k') | third_party/libjpeg/using_libjpeg.scons » ('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 2008, Google Inc.
2 # All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
7 #
8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
13 # distribution.
14 # * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30 # TODO(keunwoo): Use better cross-platform abstraction; see chrome/SConstruct
31 Import('env')
32
33 env = env.Clone()
34
35 if env.WantSystemLib('libjpeg'):
36 Return()
37
38 env.Prepend(
39 CPPPATH = [
40 '$CHROME_SRC_DIR',
41 ],
42 )
43
44 if env.Bit('windows'):
45 env.Append(
46 CCFLAGS = [
47 '/TC',
48 '/wd4800',
49 ],
50 )
51 elif env.Bit('linux'):
52 if '-Wall' in env['CCFLAGS']:
53 # We're not responsible for bad warning hygiene in this third party code.
54 env['CCFLAGS'].remove('-Wall')
55
56 input_files = ChromeFileList([
57 'jcapimin.c',
58 'jcapistd.c',
59 'jccoefct.c',
60 'jccolor.c',
61 'jcdctmgr.c',
62 'jchuff.c',
63 'jchuff.h',
64 'jcinit.c',
65 'jcmainct.c',
66 'jcmarker.c',
67 'jcmaster.c',
68 'jcomapi.c',
69 'jconfig.h',
70 'jcparam.c',
71 'jcphuff.c',
72 'jcprepct.c',
73 'jcsample.c',
74 'jdapimin.c',
75 'jdapistd.c',
76 'jdatadst.c',
77 'jdatasrc.c',
78 'jdcoefct.c',
79 'jdcolor.c',
80 'jdct.h',
81 'jddctmgr.c',
82 'jdhuff.c',
83 'jdhuff.h',
84 'jdinput.c',
85 'jdmainct.c',
86 'jdmarker.c',
87 'jdmaster.c',
88 'jdmerge.c',
89 'jdphuff.c',
90 'jdpostct.c',
91 'jdsample.c',
92 'jerror.c',
93 'jerror.h',
94 'jfdctflt.c',
95 'jfdctfst.c',
96 'jfdctint.c',
97 'jidctflt.c',
98 'jidctfst.c',
99 'jidctint.c',
100 'jinclude.h',
101 'jmemmgr.c',
102 'jmemnobs.c',
103 'jmemsys.h',
104 'jmorecfg.h',
105 'jpegint.h',
106 'jpeglib.h',
107 'jquant1.c',
108 'jquant2.c',
109 'jutils.c',
110 'jversion.h',
111 ])
112
113 env.ChromeLibrary('libjpeg', input_files)
114
115 p = env.ChromeMSVSProject('libjpeg.vcproj',
116 dest=('$CHROME_SRC_DIR/third_party/' +
117 'libjpeg/libjpeg.vcproj'),
118 guid='{238CE175-76CE-4A25-A676-69D115885601}',
119 keyword='Win32Proj',
120 # TODO(sgk): when we can intuit the hierarchy
121 # from the built targets.
122 #buildtargets=TODO,
123 files=input_files,
124 relative_path_prefix='./',
125 tools=[
126 'VCLibrarianTool',
127 'VCCLCompilerTool',
128 ],
129 ConfigurationType='4')
130
131 p.AddConfig('Debug|Win32',
132 InheritedPropertySheets=[
133 '$(SolutionDir)../build/common.vsprops',
134 '$(SolutionDir)../build/debug.vsprops',
135 '$(SolutionDir)../build/external_code.vsprops',
136 ])
137
138 p.AddConfig('Release|Win32',
139 InheritedPropertySheets=[
140 '$(SolutionDir)../build/common.vsprops',
141 '$(SolutionDir)../build/release.vsprops',
142 '$(SolutionDir)../build/external_code.vsprops',
143 ])
OLDNEW
« no previous file with comments | « third_party/libevent/using_libevent.scons ('k') | third_party/libjpeg/using_libjpeg.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698