Home | History | Annotate | Download | only in tools
      1 # Copyright 2011 The LibYuv Project Authors. All rights reserved.
      2 #
      3 # Use of this source code is governed by a BSD-style license
      4 # that can be found in the LICENSE file in the root of the source
      5 # tree. An additional intellectual property rights grant can be found
      6 # in the file PATENTS. All contributing project authors may
      7 # be found in the AUTHORS file in the root of the source tree.
      8 
      9 # Supplement file for libyuv. To be processed, this file needs to be located in
     10 # the first level of directories below the gyp_libyuv file.
     11 
     12 # This is needed to workaround the otherwise failing include of base.gyp in
     13 # Chromium's common.gypi when a sanitizer tool is used.
     14 {
     15   'variables': {
     16     'use_sanitizer_options': 0,
     17   },
     18   'target_defaults': {
     19     'conditions': [
     20       # Add default sanitizer options similar to Chromium. This is needed to get
     21       # the sanitizer options that has LeakSanitizer disabled by default.
     22       # Otherwise yasm will throw leak errors during compile when
     23       # GYP_DEFINES="asan=1".
     24       ['OS=="linux" and (chromeos==0 or target_arch!="ia32")', {
     25         'dependencies': [
     26           '<(DEPTH)/tools/sanitizer_options.gyp:sanitizer_options',
     27         ],
     28       }],
     29     ],
     30   },
     31 }
     32