summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src/build_tools/nacl-mono-buildbot.py
blob: 40266cdd954280254fe6f52cbde77ac058040fd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import os
import sys

import buildbot_common


def main(args):
  args = args[1:]

  buildbot_revision = os.environ.get('BUILDBOT_REVISION', '')
  assert buildbot_revision
  sdk_revision = buildbot_revision.split(':')[0]

  install_dir = 'naclmono'
  buildbot_common.RemoveDir(install_dir)

  buildbot_common.Run([sys.executable, 'nacl-mono-builder.py',
                      '--arch', 'x86-32', '--install-dir', install_dir] + args)
  buildbot_common.Run([sys.executable, 'nacl-mono-builder.py',
                      '--arch', 'x86-64', '--install-dir', install_dir] + args)
  buildbot_common.Run([sys.executable, 'nacl-mono-archive.py',
                      '--sdk-revision', sdk_revision,
                      '--install-dir', install_dir] + args)


if __name__ == '__main__':
  sys.exit(main(sys.argv))