You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.3 KiB

# -*- Mode: python; c-basic-offset: 4; 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
# Templates apperently ARE allowed to use set_config and set_define and can use loops
# so take advantage of that to apply the old axion_cmake defines without the need of
# or
def ConfVars(mode='moz.configure'):
confvars = {
'INSPECTOR_NAME': 'DOM Inspector',
'INSPECTOR_AUTHOR': 'Binary Outcast',
'INSPECTOR_SHORT_DESC': 'DOM Inspector is a tool that can be used to inspect and edit the live DOM of any web document or XUL application.',
if mode == 'moz.configure':
for key, value in confvars.iteritems():
set_config(key, value)
set_define(key, value)
elif mode == '':
for key, value in confvars.iteritems():
DEFINES[key] = value
elif mode == 'id':
return confvars['INSPECTOR_ID']