moz.build (1828B)
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 with Files("**"): 8 BUG_COMPONENT = ("Firefox", "New Tab Page") 9 10 XPI_NAME = "newtab" 11 XPI_PKGNAME = "newtab@mozilla.org" 12 13 DIST_SUBDIR = "" 14 15 # NOTE: Please keep the files listed in here in sync with the ones listed in 16 # ../addon-jar.mn, as this ensures that the XPI generated at build time 17 # shares the same structure as the built-in instance. (bug 1955994) 18 # 19 # The exception is the "locales" folder, which is only included in the XPI. 20 21 FINAL_TARGET_FILES += [ 22 "../manifest.json", 23 ] 24 FINAL_TARGET_FILES["webext-glue"] += [ 25 "background.js", 26 "metrics/**", 27 ] 28 FINAL_TARGET_FILES.lib += [ 29 "../lib/**", 30 ] 31 FINAL_TARGET_FILES.common += [ 32 "../common/**", 33 ] 34 FINAL_TARGET_PP_FILES.data.content.abouthomecache += [ 35 "../data/content/abouthomecache/page.html.template", 36 "../data/content/abouthomecache/script.js.template", 37 ] 38 FINAL_TARGET_FILES.data.data += [ 39 "../data/content/assets/**", 40 ] 41 FINAL_TARGET_FILES.data.content += [ 42 "../data/content/activity-stream.bundle.js", 43 "../data/content/newtab-render.js", 44 ] 45 FINAL_TARGET_FILES.data.css += [ 46 "../css/activity-stream.css", 47 ] 48 FINAL_TARGET_FILES.prerendered += [ 49 "../prerendered/activity-stream-noscripts.html", 50 "../prerendered/activity-stream.html", 51 ] 52 53 # This doesn't need to be in sync with the addon-jar.mn file, as the locales 54 # are only included when we build newtab as an XPI. 55 FINAL_TARGET_FILES += ["locales/**"] 56 57 if not CONFIG["RELEASE_OR_BETA"]: 58 FINAL_TARGET_FILES.prerendered += [ 59 "../prerendered/activity-stream-debug.html", 60 ]