build/gn.mozbuild
author Philip Jägenstedt <philip@foolip.org>
Mon, 09 Apr 2018 14:42:02 +0000
changeset 413474 3582e94198299a6c64414d17a79d9b6343fd1849
parent 398663 5b4da712bf1e276dd5df44a1b23e2a715f5c19cb
permissions -rw-r--r--
Bug 1444948 [wpt PR 9977] - Remove the rest of Sauce support for stability runs (including JWT), a=testonly Automatic update from web-platform-testsRemove the rest of Sauce support for stability runs (including JWT) (#9977) Fixes https://github.com/w3c/web-platform-tests/issues/9903. wpt-commits: 18ce941a0840daaa8a17fbe54449c6acc092b442 wpt-pr: 9977 wpt-commits: 18ce941a0840daaa8a17fbe54449c6acc092b442 wpt-pr: 9977

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

gn_vars = {}

if CONFIG['MOZ_DEBUG']:
   gn_vars['is_debug'] = True
else:
   gn_vars['is_debug'] = False

os = CONFIG['OS_TARGET']

flavors = {
    'WINNT': 'win',
    'Android': 'android',
    'Linux': 'linux',
    'Darwin': 'mac' if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa' else 'ios',
    'SunOS': 'solaris',
    'GNU/kFreeBSD': 'freebsd',
    'DragonFly': 'dragonfly',
    'FreeBSD': 'freebsd',
    'NetBSD': 'netbsd',
    'OpenBSD': 'openbsd',
}
gn_vars['target_os'] = flavors.get(os)

arches = {
    'x86_64': 'x64',
    'aarch64': 'arm64',
}

gn_vars['host_cpu'] = arches.get(CONFIG['HOST_CPU_ARCH'], CONFIG['HOST_CPU_ARCH'])
gn_vars['target_cpu'] = arches.get(CONFIG['CPU_ARCH'], CONFIG['CPU_ARCH'])