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)
37 gyp_vars['host_arch'] = arches.get(CONFIG['HOST_CPU_ARCH'], CONFIG['HOST_CPU_ARCH'])
38 gyp_vars['target_arch'] = arches.get(CONFIG['CPU_ARCH'], CONFIG['CPU_ARCH'])