| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2016 Google Inc. | 3 # Copyright 2016 Google Inc. |
| 4 # | 4 # |
| 5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
| 6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
| 7 | 7 |
| 8 | 8 |
| 9 import argparse |
| 9 import common | 10 import common |
| 11 import os |
| 10 import sys | 12 import sys |
| 11 | 13 |
| 12 | 14 |
| 13 def main(): | 15 def main(): |
| 14 if len(sys.argv) != 3: | 16 parser = argparse.ArgumentParser() |
| 15 print >> sys.stderr, 'Usage: compile_skia.py <builder name> <out-dir>' | 17 parser.add_argument('--builder_name', required=True) |
| 16 sys.exit(1) | 18 parser.add_argument('--swarm_out_dir', required=True) |
| 17 bot = common.BotInfo(sys.argv[1], 'fake-slave', sys.argv[2]) | 19 args = parser.parse_args() |
| 18 for t in bot.build_targets: | 20 bot = common.BotInfo(args.builder_name, os.path.abspath(args.swarm_out_dir)) |
| 19 bot.flavor.compile(t) | 21 bot.compile_steps() |
| 20 | 22 |
| 21 | 23 |
| 22 if __name__ == '__main__': | 24 if __name__ == '__main__': |
| 23 main() | 25 main() |
| OLD | NEW |