blob: 7ca6b1f3d3da9b443b89e352c7629e0fc2f556ad [file] [log] [blame]
# Copyright 2016 The Fuchsia 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.path
import platform
FUCHSIA_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
ZIRCON_ROOT = os.path.join(FUCHSIA_ROOT, "zircon")
BUILDTOOLS_ROOT = os.path.join(FUCHSIA_ROOT, "buildtools")
FLUTTER_ROOT = os.path.join(FUCHSIA_ROOT, "lib", "flutter")
# This variable is set by fx, so it is only set if we are running this script
# within fx.
if "ZIRCON_TOOLS_DIR" in os.environ:
ZIRCON_TOOLS_ROOT = os.path.dirname(os.environ['ZIRCON_TOOLS_DIR'])
"Linux": "linux-x64",
"Darwin": "mac-x64",
"Windows": "win-x64"
DART_ROOT = os.path.join(FUCHSIA_ROOT, "topaz", "tools", "prebuilt-dart-sdk",