Bug 1045247 - move install rules in toolkit/devtools/*/Makefile.in to moz.build; r=mshal

This commit is contained in:
Nathan Froyd 2014-07-28 17:23:44 -04:00
parent 163669fca7
commit eacda44565
10 changed files with 211 additions and 74 deletions

View File

@ -1,9 +0,0 @@
# 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/.
include $(topsrcdir)/config/rules.mk
libs::
$(NSINSTALL) $(IFLAGS1) $(srcdir)/*.jsm $(FINAL_TARGET)/modules/devtools
$(NSINSTALL) $(IFLAGS1) $(srcdir)/*.js $(FINAL_TARGET)/modules/devtools

View File

@ -1,9 +0,0 @@
# 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/.
include $(topsrcdir)/config/rules.mk
libs::
$(INSTALL) $(IFLAGS1) $(srcdir)/*.jsm $(FINAL_TARGET)/modules/devtools
$(INSTALL) $(IFLAGS1) $(srcdir)/*.js $(FINAL_TARGET)/modules/devtools/client

View File

@ -4,4 +4,10 @@
# 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/.
EXTRA_JS_MODULES.devtools += [
'dbg-client.jsm',
]
EXTRA_JS_MODULES.devtools.client += [
'connection-manager.js',
]

View File

@ -1,35 +0,0 @@
# 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/.
gcli_commands_internal_FILES = $(wildcard $(srcdir)/commands/*)
gcli_commands_internal_DEST = $(FINAL_TARGET)/modules/devtools/gcli/commands
INSTALL_TARGETS += gcli_commands_internal
subdirs = \
commands \
connectors \
converters \
fields \
languages \
mozui \
types \
ui \
util \
$(NULL)
define subdir_files
gcli_$1_FILES = $$(wildcard $$(srcdir)/source/lib/gcli/$1/*)
gcli_$1_DEST = $$(FINAL_TARGET)/modules/devtools/gcli/$1
INSTALL_TARGETS += gcli_$1
endef
$(foreach subdir,$(subdirs),$(eval $(call subdir_files,$(subdir))))
gcli_root_FILES = $(filter-out $(addprefix $(srcdir)/source/lib/gcli/,$(subdirs)),$(wildcard $(srcdir)/source/lib/gcli/*))
gcli_root_DEST = $(FINAL_TARGET)/modules/devtools/gcli
INSTALL_TARGETS += gcli_root
gcli_jsm_FILES = $(wildcard $(srcdir)/*.jsm)
gcli_jsm_DEST = $(FINAL_TARGET)/modules/devtools
INSTALL_TARGETS += gcli_jsm

View File

@ -1,5 +1,132 @@
# -*- 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 http://mozilla.org/MPL/2.0/.
EXTRA_JS_MODULES.devtools.gcli.commands += [
'commands/addon.js',
'commands/appcache.js',
'commands/calllog.js',
'commands/cmd.js',
'commands/cookie.js',
'commands/csscoverage.js',
'commands/folder.js',
'commands/highlight.js',
'commands/inject.js',
'commands/jsb.js',
'commands/listen.js',
'commands/media.js',
'commands/pagemod.js',
'commands/paintflashing.js',
'commands/restart.js',
'commands/screenshot.js',
'commands/tools.js',
]
EXTRA_JS_MODULES.devtools.gcli.commands += [
'source/lib/gcli/commands/clear.js',
'source/lib/gcli/commands/commands.js',
'source/lib/gcli/commands/connect.js',
'source/lib/gcli/commands/context.js',
'source/lib/gcli/commands/exec.js',
'source/lib/gcli/commands/global.js',
'source/lib/gcli/commands/help.js',
'source/lib/gcli/commands/intro.js',
'source/lib/gcli/commands/lang.js',
'source/lib/gcli/commands/mocks.js',
'source/lib/gcli/commands/pref.js',
'source/lib/gcli/commands/preflist.js',
'source/lib/gcli/commands/test.js',
]
EXTRA_JS_MODULES.devtools.gcli.connectors += [
'source/lib/gcli/connectors/connectors.js',
'source/lib/gcli/connectors/index.js',
'source/lib/gcli/connectors/protocol.js',
'source/lib/gcli/connectors/rdp.js',
'source/lib/gcli/connectors/remoted.js',
]
EXTRA_JS_MODULES.devtools.gcli.converters += [
'source/lib/gcli/converters/basic.js',
'source/lib/gcli/converters/converters.js',
'source/lib/gcli/converters/html.js',
'source/lib/gcli/converters/terminal.js',
]
EXTRA_JS_MODULES.devtools.gcli.fields += [
'source/lib/gcli/fields/delegate.js',
'source/lib/gcli/fields/fields.js',
'source/lib/gcli/fields/selection.js',
]
EXTRA_JS_MODULES.devtools.gcli.languages += [
'source/lib/gcli/languages/command.html',
'source/lib/gcli/languages/command.js',
'source/lib/gcli/languages/javascript.js',
'source/lib/gcli/languages/languages.js',
]
EXTRA_JS_MODULES.devtools.gcli.mozui += [
'source/lib/gcli/mozui/completer.js',
'source/lib/gcli/mozui/ffdisplay.js',
'source/lib/gcli/mozui/inputter.js',
'source/lib/gcli/mozui/tooltip.js',
]
EXTRA_JS_MODULES.devtools.gcli.types += [
'source/lib/gcli/types/array.js',
'source/lib/gcli/types/boolean.js',
'source/lib/gcli/types/command.js',
'source/lib/gcli/types/date.js',
'source/lib/gcli/types/delegate.js',
'source/lib/gcli/types/file.js',
'source/lib/gcli/types/fileparser.js',
'source/lib/gcli/types/javascript.js',
'source/lib/gcli/types/node.js',
'source/lib/gcli/types/number.js',
'source/lib/gcli/types/resource.js',
'source/lib/gcli/types/selection.js',
'source/lib/gcli/types/setting.js',
'source/lib/gcli/types/string.js',
'source/lib/gcli/types/types.js',
'source/lib/gcli/types/union.js',
'source/lib/gcli/types/url.js',
]
EXTRA_JS_MODULES.devtools.gcli.ui += [
'source/lib/gcli/ui/focus.js',
'source/lib/gcli/ui/history.js',
'source/lib/gcli/ui/intro.js',
'source/lib/gcli/ui/menu.css',
'source/lib/gcli/ui/menu.html',
'source/lib/gcli/ui/menu.js',
'source/lib/gcli/ui/view.js',
]
EXTRA_JS_MODULES.devtools.gcli.util += [
'source/lib/gcli/util/domtemplate.js',
'source/lib/gcli/util/fileparser.js',
'source/lib/gcli/util/filesystem.js',
'source/lib/gcli/util/host.js',
'source/lib/gcli/util/l10n.js',
'source/lib/gcli/util/legacy.js',
'source/lib/gcli/util/prism.js',
'source/lib/gcli/util/promise.js',
'source/lib/gcli/util/spell.js',
'source/lib/gcli/util/util.js',
]
EXTRA_JS_MODULES.devtools.gcli += [
'source/lib/gcli/api.js',
'source/lib/gcli/cli.js',
'source/lib/gcli/index.js',
'source/lib/gcli/l10n.js',
'source/lib/gcli/settings.js',
]
EXTRA_JS_MODULES.devtools += [
'gcli.jsm',
'Templater.jsm',
]

View File

@ -23,3 +23,23 @@ DIRS += [
MOCHITEST_CHROME_MANIFESTS += ['tests/mochitest/chrome.ini']
XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
EXTRA_JS_MODULES.devtools += [
'async-utils.js',
'content-observer.js',
'css-color.js',
'deprecated-sync-thenables.js',
'DevToolsUtils.js',
'event-emitter.js',
'output-parser.js',
'touch-events.js',
'worker-loader.js',
]
EXTRA_JS_MODULES.devtools += [
'Console.jsm',
'DevToolsUtils.jsm',
'LayoutHelpers.jsm',
'Loader.jsm',
'Require.jsm',
]

View File

@ -1,11 +0,0 @@
# 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/.
include $(topsrcdir)/config/rules.mk
libs::
$(INSTALL) $(IFLAGS1) $(srcdir)/*.jsm $(FINAL_TARGET)/modules/devtools
$(INSTALL) $(IFLAGS1) $(srcdir)/*.js $(FINAL_TARGET)/modules/devtools/server
$(INSTALL) $(IFLAGS1) $(srcdir)/actors/*.js $(FINAL_TARGET)/modules/devtools/server/actors
$(INSTALL) $(IFLAGS1) $(srcdir)/actors/utils/*.js $(FINAL_TARGET)/modules/devtools/server/actors/utils

View File

@ -19,3 +19,53 @@ SOURCES += [
]
FINAL_LIBRARY = 'xul'
EXTRA_JS_MODULES.devtools += [
'dbg-server.jsm',
]
EXTRA_JS_MODULES.devtools.server += [
'child.js',
'content-globals.js',
'main.js',
'protocol.js',
]
EXTRA_JS_MODULES.devtools.server.actors += [
'actors/call-watcher.js',
'actors/canvas.js',
'actors/childtab.js',
'actors/common.js',
'actors/csscoverage.js',
'actors/device.js',
'actors/eventlooplag.js',
'actors/framerate.js',
'actors/gcli.js',
'actors/highlighter.js',
'actors/inspector.js',
'actors/layout.js',
'actors/memory.js',
'actors/monitor.js',
'actors/preference.js',
'actors/pretty-print-worker.js',
'actors/profiler.js',
'actors/root.js',
'actors/script.js',
'actors/storage.js',
'actors/string.js',
'actors/styleeditor.js',
'actors/styles.js',
'actors/stylesheets.js',
'actors/tracer.js',
'actors/webapps.js',
'actors/webaudio.js',
'actors/webbrowser.js',
'actors/webconsole.js',
'actors/webgl.js',
]
EXTRA_JS_MODULES.devtools.server.actors.utils += [
'actors/utils/make-debugger.js',
'actors/utils/map-uri-to-addon-id.js'
]

View File

@ -1,10 +0,0 @@
#
# 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/.
include $(topsrcdir)/config/rules.mk
libs::
$(NSINSTALL) $(srcdir)/*.jsm $(FINAL_TARGET)/modules/devtools
$(NSINSTALL) $(srcdir)/*.js $(FINAL_TARGET)/modules/devtools

View File

@ -5,3 +5,11 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
EXTRA_JS_MODULES.devtools += [
'SourceMap.jsm',
]
EXTRA_JS_MODULES.devtools += [
'source-map.js',
]