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 if CONFIG['MOZ_DEBUG']:
10 gn_vars['is_debug'] = True
12 gn_vars['is_debug'] = False
14 os = CONFIG['OS_TARGET']
17 gn_vars['use_x11'] = True
19 # Only set use_x11 explicitly to false on Linux for no-x11 variants
20 gn_vars['use_x11'] = False
26 'Darwin': 'mac' if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa' else 'ios',
28 'GNU/kFreeBSD': 'freebsd',
29 'DragonFly': 'dragonfly',
34 gn_vars['target_os'] = flavors.get(os)
41 gn_vars['host_cpu'] = arches.get(CONFIG['HOST_CPU_ARCH'], CONFIG['HOST_CPU_ARCH'])
42 gn_vars['target_cpu'] = arches.get(CONFIG['CPU_ARCH'], CONFIG['CPU_ARCH'])