OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 # This file handles building both with our local libjpeg and with the system | 6 # This file handles building both with our local libjpeg and with the system |
7 # libjpeg. | 7 # libjpeg. |
8 'conditions': [ | 8 'conditions': [ |
9 ['use_system_libjpeg==0', { | 9 ['use_system_libjpeg==0', { |
10 'targets': [ | 10 'targets': [ |
11 { | 11 { |
12 'target_name': 'libjpeg', | 12 'target_name': 'libjpeg', |
13 'type': 'static_library', | 13 'type': 'static_library', |
| 14 'defines': [ |
| 15 'NO_GETENV', # getenv() is not thread-safe. |
| 16 ], |
14 'sources': [ | 17 'sources': [ |
15 'jcapimin.c', | 18 'jcapimin.c', |
16 'jcapistd.c', | 19 'jcapistd.c', |
17 'jccoefct.c', | 20 'jccoefct.c', |
18 'jccolor.c', | 21 'jccolor.c', |
19 'jcdctmgr.c', | 22 'jcdctmgr.c', |
20 'jchuff.c', | 23 'jchuff.c', |
21 'jchuff.h', | 24 'jchuff.h', |
22 'jcinit.c', | 25 'jcinit.c', |
23 'jcmainct.c', | 26 'jcmainct.c', |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 'link_settings': { | 105 'link_settings': { |
103 'libraries': [ | 106 'libraries': [ |
104 '-ljpeg', | 107 '-ljpeg', |
105 ], | 108 ], |
106 }, | 109 }, |
107 } | 110 } |
108 ], | 111 ], |
109 }], | 112 }], |
110 ], | 113 ], |
111 } | 114 } |
OLD | NEW |