build/gyp_base.mozbuild
author Ted Mielczarek <ted@mielczarek.org>
Fri, 08 Dec 2017 13:50:17 -0500
changeset 450058 b6656f7bbc861f5879a3d61d007e599c2fbd6190
parent 404279 cd9ef901306228b25a79b6e4f2d0d1046e829cbc
permissions -rw-r--r--
bug 1424323 - remove MOZ_AUTOMATION_UPLOAD_SYMBOLS from in-tree mozconfigs. r=rillian With all of our builds in Taskcluster now, we should never be uploading symbols from build tasks. Unfortunately Windows builds were still doing so. This patch removes MOZ_AUTOMATION_UPLOAD_SYMBOLS from all the in-tree mozconfigs and a few other places so that it should always default off (per moz-automation.mk). The rest of the uploadsymbols bits will be removed once Thunderbird fixes their automation. This patch was mostly autogenerated by running: rg --files-with-matches UPLOAD_SYMBOLS browser/config/mozconfigs/ mobile/android/config/mozconfigs/ | xargs sed -ri '/.*UPLOAD_SYMBOLS.*/d' sed -ri '/.*UPLOAD_SYMBOLS.*/d' build/unix/mozconfig.linux build/mozconfig.win-common build/macosx/local-mozconfig.common build/mozconfig.automation Then mobile/android/config/mozconfigs/common and taskcluster/scripts/builder/build-linux.sh were hand-edited. MozReview-Commit-ID: Cy8kSEodSg4

# -*- 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/.

gyp_vars = {}

os = CONFIG['OS_TARGET']

if os == 'WINNT':
    gyp_vars.update(
        MSVS_VERSION=CONFIG['_MSVS_VERSION'],
        MSVS_OS_BITS=64 if CONFIG['HAVE_64BIT_BUILD'] else 32,
    )

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',
}
gyp_vars['OS'] = flavors.get(os)

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

gyp_vars['host_arch'] = arches.get(CONFIG['HOST_CPU_ARCH'], CONFIG['HOST_CPU_ARCH'])
gyp_vars['target_arch'] = arches.get(CONFIG['CPU_ARCH'], CONFIG['CPU_ARCH'])