diff --git a/devtools/moz.build b/devtools/moz.build index 6c8759f7e..34ce6f2ec 100644 --- a/devtools/moz.build +++ b/devtools/moz.build @@ -13,7 +13,10 @@ if CONFIG['MOZ_DEVTOOLS_SERVER']: 'shared', ] else: - DIRS += ['shared/heapsnapshot/'] + DIRS += [ + 'shared/heapsnapshot', + 'shared/jsinspector', + ] # /browser uses DIST_SUBDIR. We opt-in to this treatment when building # DevTools for the browser to keep the root omni.ja slim for use by external XUL @@ -22,23 +25,23 @@ if CONFIG['MOZ_PHOENIX']: DIST_SUBDIR = 'browser' export('DIST_SUBDIR') -with Files('**'): - BUG_COMPONENT = ('Firefox', 'Developer Tools') - -with Files('docs/**'): - BUG_COMPONENT = ('Firefox', 'Developer Tools') - -with Files('docs/memory-panel.md'): - BUG_COMPONENT = ('Firefox', 'Developer Tools: Memory') - -with Files('docs/debugger-panel.md'): - BUG_COMPONENT = ('Firefox', 'Developer Tools: Debugger') - -with Files('docs/debugger-api.md'): - BUG_COMPONENT = ('Firefox', 'Developer Tools: Debugger') - -with Files('docs/http-inspector.md'): - BUG_COMPONENT = ('Firefox', 'Developer Tools: Console') - -with Files('docs/inspector-panel.md'): - BUG_COMPONENT = ('Firefox', 'Developer Tools: Inspector') +with Files('**'): + BUG_COMPONENT = ('Firefox', 'Developer Tools') + +with Files('docs/**'): + BUG_COMPONENT = ('Firefox', 'Developer Tools') + +with Files('docs/memory-panel.md'): + BUG_COMPONENT = ('Firefox', 'Developer Tools: Memory') + +with Files('docs/debugger-panel.md'): + BUG_COMPONENT = ('Firefox', 'Developer Tools: Debugger') + +with Files('docs/debugger-api.md'): + BUG_COMPONENT = ('Firefox', 'Developer Tools: Debugger') + +with Files('docs/http-inspector.md'): + BUG_COMPONENT = ('Firefox', 'Developer Tools: Console') + +with Files('docs/inspector-panel.md'): + BUG_COMPONENT = ('Firefox', 'Developer Tools: Inspector') diff --git a/devtools/server/moz.build b/devtools/server/moz.build index 356f32051..746318daa 100644 --- a/devtools/server/moz.build +++ b/devtools/server/moz.build @@ -16,18 +16,6 @@ BROWSER_CHROME_MANIFESTS += ['tests/browser/browser.ini'] MOCHITEST_CHROME_MANIFESTS += ['tests/mochitest/chrome.ini'] XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini'] -XPIDL_SOURCES += [ - 'nsIJSInspector.idl', -] - -XPIDL_MODULE = 'jsinspector' - -SOURCES += [ - 'nsJSInspector.cpp', -] - -FINAL_LIBRARY = 'xul' - DevToolsModules( 'child.js', 'content-globals.js', diff --git a/devtools/shared/jsinspector/moz.build b/devtools/shared/jsinspector/moz.build new file mode 100644 index 000000000..fc81f7e1e --- /dev/null +++ b/devtools/shared/jsinspector/moz.build @@ -0,0 +1,17 @@ +# -*- 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/. + +XPIDL_SOURCES += [ + 'nsIJSInspector.idl', +] + +XPIDL_MODULE = 'jsinspector' + +SOURCES += [ + 'nsJSInspector.cpp', +] + +FINAL_LIBRARY = 'xul' diff --git a/devtools/server/nsIJSInspector.idl b/devtools/shared/jsinspector/nsIJSInspector.idl similarity index 100% rename from devtools/server/nsIJSInspector.idl rename to devtools/shared/jsinspector/nsIJSInspector.idl diff --git a/devtools/server/nsJSInspector.cpp b/devtools/shared/jsinspector/nsJSInspector.cpp similarity index 100% rename from devtools/server/nsJSInspector.cpp rename to devtools/shared/jsinspector/nsJSInspector.cpp diff --git a/devtools/server/nsJSInspector.h b/devtools/shared/jsinspector/nsJSInspector.h similarity index 100% rename from devtools/server/nsJSInspector.h rename to devtools/shared/jsinspector/nsJSInspector.h diff --git a/devtools/shared/moz.build b/devtools/shared/moz.build index b9c38c17b..78503a10d 100644 --- a/devtools/shared/moz.build +++ b/devtools/shared/moz.build @@ -17,6 +17,7 @@ DIRS += [ 'heapsnapshot', 'inspector', 'jsbeautify', + 'jsinspector', 'layout', 'locales', 'node-properties',