OLD | NEW |
1 # Copyright 2014 PDFium Authors. All rights reserved. | 1 # Copyright 2014 PDFium 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 # Definitions to be used when building stand-alone PDFium binaries. | 5 # Definitions to be used when building stand-alone PDFium binaries. |
6 | 6 |
7 { | 7 { |
8 'variables': { | 8 'variables': { |
9 'component%': 'static_library', | 9 'component%': 'static_library', |
10 'clang%': 0, | 10 'clang%': 0, |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 }, | 217 }, |
218 'conditions': [ | 218 'conditions': [ |
219 ['component=="shared_library"', { | 219 ['component=="shared_library"', { |
220 'cflags': [ | 220 'cflags': [ |
221 '-fPIC', | 221 '-fPIC', |
222 ], | 222 ], |
223 }], | 223 }], |
224 ['OS=="win"', { | 224 ['OS=="win"', { |
225 'target_defaults': { | 225 'target_defaults': { |
226 'defines': [ | 226 'defines': [ |
| 227 'NOMINMAX', |
227 '_CRT_SECURE_NO_DEPRECATE', | 228 '_CRT_SECURE_NO_DEPRECATE', |
228 '_CRT_NONSTDC_NO_DEPRECATE', | 229 '_CRT_NONSTDC_NO_DEPRECATE', |
229 ], | 230 ], |
230 'conditions': [ | 231 'conditions': [ |
231 ['component=="static_library"', { | 232 ['component=="static_library"', { |
232 'defines': [ | 233 'defines': [ |
233 '_HAS_EXCEPTIONS=0', | 234 '_HAS_EXCEPTIONS=0', |
234 ], | 235 ], |
235 }], | 236 }], |
236 ], | 237 ], |
237 }, | 238 }, |
238 }], # OS=="win" | 239 }], # OS=="win" |
239 ['OS=="mac"', { | 240 ['OS=="mac"', { |
240 'target_defaults': { | 241 'target_defaults': { |
241 'target_conditions': [ | 242 'target_conditions': [ |
242 ['_type!="static_library"', { | 243 ['_type!="static_library"', { |
243 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 244 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
244 }], | 245 }], |
245 ], # target_conditions | 246 ], # target_conditions |
246 }, # target_defaults | 247 }, # target_defaults |
247 }], # OS=="mac" | 248 }], # OS=="mac" |
248 ], | 249 ], |
249 'xcode_settings': { | 250 'xcode_settings': { |
250 # See comment in Chromium's common.gypi for why this is needed. | 251 # See comment in Chromium's common.gypi for why this is needed. |
251 'SYMROOT': '<(DEPTH)/xcodebuild', | 252 'SYMROOT': '<(DEPTH)/xcodebuild', |
252 } | 253 } |
253 } | 254 } |
OLD | NEW |