mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
6adca5400a
Backed out changeset 7d374c8be17d (bug 1393119) Backed out changeset 98e1989b1f48 (bug 1393119) Backed out changeset 8fa5de0eb6ea (bug 1393119) Backed out changeset c5c2d30ed6da (bug 1393119) Backed out changeset 17d7a6d5e889 (bug 1393119)
37 lines
996 B
Python
37 lines
996 B
Python
# -*- 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'])
|