• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python
2# Copyright 2016 The LibYuv Project Authors. All rights reserved.
3#
4# Use of this source code is governed by a BSD-style license
5# that can be found in the LICENSE file in the root of the source
6# tree. An additional intellectual property rights grant can be found
7# in the file PATENTS. All contributing project authors may
8# be found in the AUTHORS file in the root of the source tree.
9
10"""
11This file emits the list of reasons why a particular build needs to be clobbered
12(or a list of 'landmines').
13"""
14
15import os
16import sys
17
18script_dir = os.path.dirname(os.path.realpath(__file__))
19checkout_root = os.path.abspath(os.path.join(script_dir, os.pardir))
20sys.path.insert(0, os.path.join(checkout_root, 'build'))
21import landmine_utils
22
23
24distributor = landmine_utils.distributor
25gyp_defines = landmine_utils.gyp_defines
26gyp_msvs_version = landmine_utils.gyp_msvs_version
27platform = landmine_utils.platform
28
29
30def print_landmines():
31  """
32  ALL LANDMINES ARE EMITTED FROM HERE.
33  """
34  # DO NOT add landmines as part of a regular CL. Landmines are a last-effort
35  # bandaid fix if a CL that got landed has a build dependency bug and all bots
36  # need to be cleaned up. If you're writing a new CL that causes build
37  # dependency problems, fix the dependency problems instead of adding a
38  # landmine.
39  # See the Chromium version in src/build/get_landmines.py for usage examples.
40  print 'Clobber to remove GYP artifacts after switching bots to GN.'
41  print 'Another try to remove GYP artifacts after switching bots to GN.'
42
43
44def main():
45  print_landmines()
46  return 0
47
48
49if __name__ == '__main__':
50  sys.exit(main())
51