mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1203159 - Add resource:// mapping in all DevTools directories. r=glandium,ochameau
Add resource mapping jar.mn for DevTools. The DevToolsModules template method is modified to install the files in their new flattened add-on location.
This commit is contained in:
parent
4ca92d7e54
commit
fb886b5b5c
10
devtools/shared/jar.mn
Normal file
10
devtools/shared/jar.mn
Normal file
@ -0,0 +1,10 @@
|
||||
# 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/.
|
||||
|
||||
devtools.jar:
|
||||
% resource devtools %modules/devtools/
|
||||
# The typical approach would be to list all the resource files in this manifest
|
||||
# for installation. Instead of doing this, use the DevToolsModules syntax via
|
||||
# moz.build files to do the installation so that we can enforce correct paths
|
||||
# based on source tree location.
|
@ -32,6 +32,8 @@ BROWSER_CHROME_MANIFESTS += ['tests/browser/browser.ini']
|
||||
MOCHITEST_CHROME_MANIFESTS += ['tests/mochitest/chrome.ini']
|
||||
XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
|
||||
|
||||
JAR_MANIFESTS += ['jar.mn']
|
||||
|
||||
DevToolsModules(
|
||||
'async-storage.js',
|
||||
'async-utils.js',
|
||||
|
@ -25,7 +25,11 @@ def DevToolsModules(*modules):
|
||||
error('DevToolsModules must be used from the same directory as ' +
|
||||
'the files to be installed.')
|
||||
|
||||
base = EXTRA_JS_MODULES
|
||||
# jar.mn manifest files are typically used to install files to chrome
|
||||
# locations. Instead of doing this, use this DevToolsModules syntax via
|
||||
# moz.build files to do the installation so that we can enforce correct
|
||||
# paths based on source tree location.
|
||||
base = FINAL_TARGET_FILES.chrome.devtools.modules
|
||||
for dir in RELATIVEDIR.split('/'):
|
||||
base = base[dir]
|
||||
base += [m for m in modules]
|
||||
|
Loading…
Reference in New Issue
Block a user