mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 18:55:30 +00:00
68c9610957
This is based on the SharedStringMap that's currently used for shared memory string bundles. When the parent process is ready to launch its first content process, it creates a snapshot of the current state of the preference database, maps that as read-only, and shares it with each content process. Look-ups in the snapshotted map are done entirely using data in the shared memory region. It doesn't require any additional per-process state data. MozReview-Commit-ID: BdTUhak7dmS --HG-- extra : rebase_source : e7cb96dd52380f2ed2fbd79b4e157e4efab65cb0 extra : absorb_source : ed95ed85388875353458eb65e41727e606ebf097
53 lines
1.2 KiB
Python
53 lines
1.2 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',
|
|
'Preferences.h',
|
|
'StaticPrefs.h',
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
'Preferences.cpp',
|
|
'SharedPrefMap.cpp',
|
|
]
|
|
|
|
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_ENABLE_WEBRENDER']:
|
|
DEFINES['MOZ_ENABLE_WEBRENDER'] = True
|
|
|
|
if CONFIG['NIGHTLY_BUILD']:
|
|
DEFINES['ENABLE_WASM_GC'] = True
|
|
|
|
FINAL_TARGET_PP_FILES += [
|
|
'greprefs.js',
|
|
]
|