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

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

Issue 15051: Convert from using env['PLATFORM'] directly to using the more flexible... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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/libevent.scons ('k') | third_party/libpng/libpng.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2008, Google Inc. 1 # Copyright 2008, Google Inc.
2 # All rights reserved. 2 # All rights reserved.
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 23 matching lines...) Expand all
34 34
35 if env.WantSystemLib('libjpeg'): 35 if env.WantSystemLib('libjpeg'):
36 Return() 36 Return()
37 37
38 env.Prepend( 38 env.Prepend(
39 CPPPATH = [ 39 CPPPATH = [
40 '$CHROME_SRC_DIR', 40 '$CHROME_SRC_DIR',
41 ], 41 ],
42 ) 42 )
43 43
44 if env['PLATFORM'] == 'win32': 44 if env.Bit('windows'):
45 env.Append( 45 env.Append(
46 CCFLAGS = [ 46 CCFLAGS = [
47 '/TC', 47 '/TC',
48 '/wd4800', 48 '/wd4800',
49 ], 49 ],
50 ) 50 )
51 elif env['PLATFORM'] == 'posix': 51 elif env.Bit('linux'):
52 if '-Wall' in env['CCFLAGS']: 52 if '-Wall' in env['CCFLAGS']:
53 # We're not responsible for bad warning hygiene in this third party code. 53 # We're not responsible for bad warning hygiene in this third party code.
54 env['CCFLAGS'].remove('-Wall') 54 env['CCFLAGS'].remove('-Wall')
55 55
56 input_files = [ 56 input_files = [
57 'jcapimin.c', 57 'jcapimin.c',
58 'jcapistd.c', 58 'jcapistd.c',
59 'jccoefct.c', 59 'jccoefct.c',
60 'jccolor.c', 60 'jccolor.c',
61 'jcdctmgr.c', 61 'jcdctmgr.c',
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 'jidctfst.c', 93 'jidctfst.c',
94 'jidctint.c', 94 'jidctint.c',
95 'jmemmgr.c', 95 'jmemmgr.c',
96 'jmemnobs.c', 96 'jmemnobs.c',
97 'jquant1.c', 97 'jquant1.c',
98 'jquant2.c', 98 'jquant2.c',
99 'jutils.c', 99 'jutils.c',
100 ] 100 ]
101 101
102 env.ChromeStaticLibrary('libjpeg', input_files) 102 env.ChromeStaticLibrary('libjpeg', input_files)
OLDNEW
« no previous file with comments | « third_party/libevent/libevent.scons ('k') | third_party/libpng/libpng.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698