moz.build (1903B)
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- 2 # vim: set filetype=python: 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 addons = { 8 "browsing-data": [ 9 "background.js", 10 "manifest.json", 11 ], 12 "tabs-activate-remove": [ 13 "background.js", 14 "manifest.json", 15 ], 16 "tabs-activate-remove-2": [ 17 "background.js", 18 "manifest.json", 19 ], 20 "update-1": [ 21 "borderify.js", 22 "manifest.json", 23 ], 24 "update-2": [ 25 "borderify.js", 26 "manifest.json", 27 ], 28 "update-postpone-1": [ 29 "background.js", 30 "borderify.js", 31 "manifest.json", 32 ], 33 "update-postpone-2": [ 34 "borderify.js", 35 "manifest.json", 36 ], 37 "update-with-perms-1": [ 38 "borderify.js", 39 "manifest.json", 40 ], 41 "update-with-perms-2": [ 42 "borderify.js", 43 "manifest.json", 44 ], 45 "page-history": [ 46 "page.html", 47 "manifest.json", 48 ], 49 "download-flags-true": [ 50 "download.js", 51 "manifest.json", 52 ], 53 "download-flags-false": [ 54 "download.js", 55 "manifest.json", 56 ], 57 "download-onChanged": [ 58 "download.js", 59 "manifest.json", 60 ], 61 "permission-request": [ 62 "clickToRequestPermission.html", 63 "request-permission.js", 64 "manifest.json", 65 ], 66 } 67 68 for addon, files in addons.items(): 69 indir = "web_extensions/%s" % addon 70 xpi = "%s.xpi" % indir 71 inputs = [indir] 72 for file in files: 73 inputs.append("%s/%s" % (indir, file)) 74 GeneratedFile( 75 xpi, script="/toolkit/mozapps/extensions/test/create_xpi.py", inputs=inputs 76 ) 77 78 TEST_HARNESS_FILES.testing.mochitest.tests.junit += ["!%s" % xpi]