Bug 1898183 - Move MOZ_SOURCE_REPO and MOZ_SOURCE_CHANGESET from old-configure to moz.configure r=glandium

Differential Revision: https://phabricator.services.mozilla.com/D212362
This commit is contained in:
serge-sans-paille 2024-06-12 05:20:24 +00:00
Родитель 8386175a59
Коммит d848f7c2d5
2 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -776,10 +776,6 @@ if test "$MOZILLA_OFFICIAL"; then
MOZ_INCLUDE_SOURCE_INFO=1
fi
# External builds (specifically Ubuntu) may drop the hg repo information, so we allow to
# explicitly set the repository and changeset information in.
AC_SUBST(MOZ_SOURCE_REPO)
AC_SUBST(MOZ_SOURCE_CHANGESET)
AC_SUBST(MOZ_INCLUDE_SOURCE_INFO)
dnl Echo the CFLAGS to remove extra whitespace.

Просмотреть файл

@ -29,6 +29,13 @@ set_define(
"BROWSER_CHROME_URL_QUOTED", depends_if("BROWSER_CHROME_URL")(lambda v: f'"{v[0]}"')
)
# External builds (specifically Ubuntu) may drop the hg repo information, so we allow to
# explicitly set the repository and changeset information in.
option(env="MOZ_SOURCE_REPO", nargs=1, help="project source repository")
set_config("MOZ_SOURCE_REPO", depends_if("MOZ_SOURCE_REPO")(lambda src: src[0]))
option(env="MOZ_SOURCE_CHANGESET", nargs=1, help="source changeset")
set_config("MOZ_SOURCE_CHANGESET", depends_if("MOZ_SOURCE_CHANGESET")(lambda v: v[0]))
# Set the MOZ_CONFIGURE_OPTIONS variable with all the options that
# were passed somehow (environment, command line, mozconfig)