OLD | NEW |
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 Loading... |
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 Loading... |
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) |
OLD | NEW |