Mobile/Fennec/Android/AdvancedTopics: Difference between revisions

→‎Multilocale builds: Link to new multilocale page
(Update PR logging for the change MOZ_LOG.)
(→‎Multilocale builds: Link to new multilocale page)
Line 58: Line 58:


=== Multilocale builds ===
=== Multilocale builds ===
Currently, multilocale only works with a full build. Due to some issues, multilocale artifact build is not supported and you will encounter make target build error when attempting to do so.
* [[Mobile/Fennec/Android/Multilocale_Builds]] contains the latest multilocale build recipe
 
Assumptions
* $AB_CD is the locale you want to repack with
* objdir-frontend is the directory you specified in your mozconfig, replace this with the object directory you are using
 
 
Before starting, make sure you are in the parent directory of mozilla-central repo
mkdir -p l10n  # this should be a sibling directory to mozilla-central
cd l10n
hg clone https://hg.mozilla.org/l10n-central/$AB_CD
cd ../mozilla-central
 
Edit your mozconfig to include the following options and input the values you want
# Edit to include only locales you want to build. Exception is 'en-US' must always be included!
mk_add_options 'export MOZ_CHROME_MULTILOCALE=en-US fr'
# Use absolute paths to the directory that houses your locale repos
mk_add_options 'export L10NBASEDIR=/absolute/path/to/l10n'
ac_add_options --with-l10n-base=/absolute/path/to/l10n
 
 
Build, merge, chrome, package, install for each locale you want with the following steps:
mach configure
mach build
make -C objdir-frontend/mobile/android/locales chrome-$AB_CD LOCALE_MERGEDIR=/absolute/path/to/repo/objdir-frontend/merge-$AB_CD
mach package
mach install
 
Rebuild with another locale
 
In mozconfig, edit MOZ_CHROME_MULTILOCALE option to the locale you want
 
mach configure
mach build mobile/android
make -C objdir-frontend/mobile/android/locales chrome-$AB_CD LOCALE_MERGEDIR=/absolute/path/to/repo/objdir-frontend/merge-$AB_CD
mach package
mach install


=== Single-locale language repacks ===
=== Single-locale language repacks ===
46

edits