mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
abf15f999d
This implements the machinery for the splitting of static prefs headers, and uses it for a single header. #includes are used in such a way that the amount of boilerplate for each static prefs header file is minimal. Future patches will split the remaining prefs into more header files. Differential Revision: https://phabricator.services.mozilla.com/D36154 --HG-- rename : modules/libpref/StaticPrefs.h => modules/libpref/StaticPrefsBase.h rename : modules/libpref/StaticPrefs.h => modules/libpref/init/StaticPrefListBegin.h extra : moz-landing-system : lando
70 lines
1.7 KiB
Python
70 lines
1.7 KiB
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/.
|
|
|
|
with Files('**'):
|
|
BUG_COMPONENT = ('Core', 'Preferences: Backend')
|
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
DIRS += ['test/gtest']
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += [
|
|
'test/unit/xpcshell.ini',
|
|
'test/unit_ipc/xpcshell.ini',
|
|
]
|
|
|
|
XPIDL_SOURCES += [
|
|
'nsIPrefBranch.idl',
|
|
'nsIPrefLocalizedString.idl',
|
|
'nsIPrefService.idl',
|
|
'nsIRelativeFilePref.idl',
|
|
]
|
|
|
|
XPIDL_MODULE = 'pref'
|
|
|
|
EXPORTS.mozilla += [
|
|
'init/StaticPrefList.h',
|
|
'init/StaticPrefList_accessibility.h',
|
|
'init/StaticPrefListAll.h',
|
|
'init/StaticPrefListBegin.h',
|
|
'init/StaticPrefListEnd.h',
|
|
'nsRelativeFilePref.h',
|
|
'Preferences.h',
|
|
'StaticPrefs.h',
|
|
'StaticPrefs_accessibility.h',
|
|
'StaticPrefsBase.h',
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
'Preferences.cpp',
|
|
'SharedPrefMap.cpp',
|
|
]
|
|
|
|
XPCOM_MANIFESTS += [
|
|
'components.conf',
|
|
]
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
DEFINES['OS_ARCH'] = CONFIG['OS_ARCH']
|
|
DEFINES['MOZ_WIDGET_TOOLKIT'] = CONFIG['MOZ_WIDGET_TOOLKIT']
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
if not CONFIG['MOZ_ANDROID_FAT_AAR_ARCHITECTURES']:
|
|
FINAL_TARGET_PP_FILES[CONFIG['ANDROID_CPU_ARCH']] += [
|
|
'greprefs.js',
|
|
]
|
|
else:
|
|
for arch in CONFIG['MOZ_ANDROID_FAT_AAR_ARCHITECTURES']:
|
|
FINAL_TARGET_FILES[arch] += [
|
|
'!/dist/fat-aar/output/{arch}/greprefs.js'.format(arch=arch),
|
|
]
|
|
else:
|
|
FINAL_TARGET_PP_FILES += [
|
|
'greprefs.js',
|
|
]
|