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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 'clang_warning_flags': [], | 266 'clang_warning_flags': [], |
267 }, | 267 }, |
268 'includes': [ 'set_clang_warning_flags.gypi', ], | 268 'includes': [ 'set_clang_warning_flags.gypi', ], |
269 'conditions': [ | 269 'conditions': [ |
270 ['component=="shared_library"', { | 270 ['component=="shared_library"', { |
271 'cflags': [ | 271 'cflags': [ |
272 '-fPIC', | 272 '-fPIC', |
273 ], | 273 ], |
274 }], | 274 }], |
275 ['asan==1', { | 275 ['asan==1', { |
| 276 'defines': [ |
| 277 'ADDRESS_SANITIZER', |
| 278 'LEAK_SANITIZER', |
| 279 ], |
276 'cflags': [ | 280 'cflags': [ |
277 '-fsanitize=address', | 281 '-fsanitize=address', |
278 '-gline-tables-only', | 282 '-gline-tables-only', |
279 ], | 283 ], |
280 'ldflags': [ | 284 'ldflags': [ |
281 '-fsanitize=address', | 285 '-fsanitize=address', |
282 ], | 286 ], |
283 }], | 287 }], |
284 ['sanitizer_coverage!=0', { | 288 ['sanitizer_coverage!=0', { |
285 'cflags': [ | 289 'cflags': [ |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 ], | 345 ], |
342 }], # OS=="linux" or OS=="mac" | 346 }], # OS=="linux" or OS=="mac" |
343 ["use_goma==1", { | 347 ["use_goma==1", { |
344 'make_global_settings': [ | 348 'make_global_settings': [ |
345 ['CC_wrapper', '<(gomadir)/gomacc'], | 349 ['CC_wrapper', '<(gomadir)/gomacc'], |
346 ['CXX_wrapper', '<(gomadir)/gomacc'], | 350 ['CXX_wrapper', '<(gomadir)/gomacc'], |
347 ], | 351 ], |
348 }], # use_goma==1 | 352 }], # use_goma==1 |
349 ], | 353 ], |
350 } | 354 } |
OLD | NEW |