| OLD | NEW |
| 1 import os | 1 import os |
| 2 # The name of the directory we'll pull our source into. | 2 # The name of the directory we'll pull our source into. |
| 3 BUILD_DIR = "adblockbrowser" | 3 BUILD_DIR = "adblockbrowser" |
| 4 # This is everything that comes after https://hg.mozilla.org/ | 4 # This is everything that comes after https://hg.mozilla.org/ |
| 5 # e.g. "releases/mozilla-aurora" | 5 # e.g. "releases/mozilla-aurora" |
| 6 REPO_PATH = "mozilla-central" | 6 REPO_PATH = "mozilla-central" |
| 7 # This is where the l10n repos are (everything after https://hg.mozilla.org/) | 7 # This is where the l10n repos are (everything after https://hg.mozilla.org/) |
| 8 # for mozilla-central, that's "l10n-central". | 8 # for mozilla-central, that's "l10n-central". |
| 9 # For mozilla-aurora, that's "releases/l10n/mozilla-aurora" | 9 # For mozilla-aurora, that's "releases/l10n/mozilla-aurora" |
| 10 L10N_REPO_PATH = "releases/l10n/mozilla-release" | 10 L10N_REPO_PATH = "releases/l10n/mozilla-release" |
| 11 # Currently this is assumed to be a subdirectory of your build dir | 11 # Currently this is assumed to be a subdirectory of your build dir |
| 12 OBJDIR = "obj-arm-linux-androideabi" | 12 if not "OBJDIR" in os.environ: |
| 13 raise "No objdir specified - please set OBJDIR" |
| 14 OBJDIR = os.environ.get("OBJDIR") |
| 13 # Set this to mobile/xul for XUL Fennec | 15 # Set this to mobile/xul for XUL Fennec |
| 14 ANDROID_DIR = "mobile/android" | 16 ANDROID_DIR = "mobile/android" |
| 15 # Absolute path to your mozconfig. | 17 # Absolute path to your mozconfig. |
| 16 # By default it looks at "./mozconfig" | 18 # By default it looks at "./mozconfig" |
| 17 if not "MOZCONFIG" in os.environ: | 19 if not "MOZCONFIG" in os.environ: |
| 18 raise "No mozconfig specified - please set MOZCONFIG" | 20 raise "No mozconfig specified - please set MOZCONFIG" |
| 19 MOZCONFIG = os.environ.get("MOZCONFIG") | 21 MOZCONFIG = os.environ.get("MOZCONFIG") |
| 20 | 22 |
| 21 config = { | 23 config = { |
| 22 "work_dir": ".", | 24 "work_dir": ".", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 37 "mozconfig": MOZCONFIG, | 39 "mozconfig": MOZCONFIG, |
| 38 "default_actions": [ | 40 "default_actions": [ |
| 39 "pull-locale-source", | 41 "pull-locale-source", |
| 40 "build", | 42 "build", |
| 41 "add-locales", | 43 "add-locales", |
| 42 "abb-transform-locales", | 44 "abb-transform-locales", |
| 43 "package-multi", | 45 "package-multi", |
| 44 "summary", | 46 "summary", |
| 45 ], | 47 ], |
| 46 } | 48 } |
| OLD | NEW |