-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig_build.py
63 lines (47 loc) · 2.04 KB
/
config_build.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env python
"""AVIM build configuration"""
from os import path
from datetime import date
from build import BuildConfig
# Type of build to produce.
CONFIG = BuildConfig.RELEASE
# Incremented version number.
# See <https://developer.mozilla.org/en-US/docs/Toolkit_version_format>.
VERSION = (5, 8, 2)
# Build date.
DATE = None
# Name to use in the build's directories.
PACKAGE_NAME = "avim"
# Paths to directories that consitute the chrome JAR file.
CHROME_PROVIDERS = ["content", "locale", "skin"]
# Paths to miscellaneous files that should be included in the build's root
# directory. install.rdf and chrome.manifest are automatically included.
ROOT_FILES = ["LICENSE"]
# Paths to directories that should be included, uncompressed, in the build's
# root directory.
ROOT_DIRS = ["components", "defaults"]
# Paths to files to be preprocessed. These files contain placeholders that
# should be interpreted as variables.
VAR_FILES = ["install.rdf", "chrome.manifest", "LICENSE",
path.join("content", "options.xul")]
# File extensions of files to be preprocessed.
VAR_EXTS = ["js"]
# Names of files to be preprocessed.
VAR_NAMES = ["options.dtd"]
# Paths to directories that should be omitted from a release build.
DEBUG_DIRS = [path.join("originals"),
path.join("tests"),
path.join("content", "test"),
path.join("content", "skin", "test"), path.join("skin", "test"),
# Unmaintained localizations
path.join("locale", "fr"), path.join("locale", "zh-TW")]
# Names of localization files that should be omitted from a release build.
L10N_FILES = ["amo.dtd", "install.dtd"]
# Dictionary mapping subdirectories of locale/ to BabelZilla-compatible locale
# codes. Locale names that are already compatible can be omitted.
LOCALE_DIRS = {"en": "en-US", "es": "es-ES"}
# Name of the fallback locale that is guaranteed to contain translations for all
# the extension's strings and that contains documentation for each string.
MAIN_LOCALE = "en-US"
# Paths to the final XPI files.
XPI_FILES = ["%(package)s.xpi", "%(package)s-%(version)s.xpi"]