blob: 6fdd24f9fa501c4e069e6b6dfe1d7f7f416a3706 [file] [log] [blame]
Ian Zerny0e3714c2019-02-12 13:21:56 +01001# Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file
2# for details. All rights reserved. Use of this source code is governed by a
3# BSD-style license that can be found in the LICENSE file.
4
5import os
6import sys
7
8# Static defines for use in tools (and utils.py).
9# There must be no dependencies on other utils from this file!
10
11TOOLS_DIR = os.path.abspath(os.path.normpath(os.path.join(__file__, '..')))
12REPO_ROOT = os.path.realpath(os.path.join(TOOLS_DIR, '..'))
13THIRD_PARTY = os.path.join(REPO_ROOT, 'third_party')
14
15def IsWindows():
16 return sys.platform.startswith('win')
17
18def IsLinux():
19 return sys.platform.startswith('linux')
20
21def IsOsX():
22 return sys.platform.startswith('darwin')