1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 os = CONFIG['OS_TARGET']
13 MSVS_VERSION=CONFIG['_MSVS_VERSION'],
14 MSVS_OS_BITS=64 if CONFIG['HAVE_64BIT_BUILD'] else 32,
21 'Darwin': 'mac' if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa' else 'ios',
23 'GNU/kFreeBSD': 'freebsd',
24 'DragonFly': 'dragonfly',
29 gyp_vars['OS'] = flavors.get(os)
35 'ppc64': 'ppc64le' if CONFIG['TARGET_ENDIANNESS'] == 'little' else 'ppc64',
38 gyp_vars['host_arch'] = arches.get(CONFIG['HOST_CPU_ARCH'], CONFIG['HOST_CPU_ARCH'])
39 gyp_vars['target_arch'] = arches.get(CONFIG['CPU_ARCH'], CONFIG['CPU_ARCH'])