Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: abb-build/adblockbrowser-cfg.py

Issue 29552627: Issue 4105 - [build] Make it possible to build arbitrary ABB revisions (Closed)
Patch Set: Created Sept. 22, 2017, 11:55 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « abb-build/README.md ('k') | abb-build/build.py » ('j') | abb-build/build.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: abb-build/adblockbrowser-cfg.py
===================================================================
new file mode 100644
--- /dev/null
+++ b/abb-build/adblockbrowser-cfg.py
@@ -0,0 +1,48 @@
+import os
+# The name of the directory we'll pull our source into.
+BUILD_DIR = os.path.abspath("..")
René Jeschke 2017/09/22 11:57:40 This had to be changed.
+# This is everything that comes after https://hg.mozilla.org/
+# e.g. "releases/mozilla-aurora"
+REPO_PATH = "mozilla-central"
+# This is where the l10n repos are (everything after https://hg.mozilla.org/)
+# for mozilla-central, that's "l10n-central".
+# For mozilla-aurora, that's "releases/l10n/mozilla-aurora"
+L10N_REPO_PATH = "releases/l10n/mozilla-release"
+# Currently this is assumed to be a subdirectory of your build dir
+if not "OBJDIR" in os.environ:
+ raise "No objdir specified - please set OBJDIR"
+OBJDIR = os.environ.get("OBJDIR")
+# Set this to mobile/xul for XUL Fennec
+ANDROID_DIR = "mobile/android"
+# Absolute path to your mozconfig.
+# By default it looks at "./mozconfig"
+if not "MOZCONFIG" in os.environ:
+ raise "No mozconfig specified - please set MOZCONFIG"
+MOZCONFIG = os.environ.get("MOZCONFIG")
+LOCALES_JSON_BASE_URL = "https://product-details.mozilla.org/1.0/l10n/%s.json"
+
+config = {
+ "work_dir": ".",
+ "log_name": "multilocale",
+ "objdir": OBJDIR,
+ "locales_json_url": LOCALES_JSON_BASE_URL % "Fennec-53.0.2-build1",
+ "locales_dir": "%s/locales" % ANDROID_DIR,
+ "ignore_locales": ["en-US", "multi"],
+ "l10n_repos": [{
+ "repo": "https://hg.mozilla.org/build/compare-locales",
+ "tag": "RELEASE_AUTOMATION"
+ }],
+ "hg_l10n_base": "https://hg.mozilla.org/%s" % L10N_REPO_PATH,
+ "l10n_dir": "l10n",
+ "merge_locales": True,
+ "mozilla_dir": BUILD_DIR,
+ "mozconfig": MOZCONFIG,
+ "default_actions": [
+ "pull-locale-source",
+ "build",
+ "add-locales",
+ "abb-transform-locales",
+ "package-multi",
+ "summary",
+ ],
+}
« no previous file with comments | « abb-build/README.md ('k') | abb-build/build.py » ('j') | abb-build/build.py » ('J')

Powered by Google App Engine
This is Rietveld