# We have a conf and classes directory, append to BBPATH
BBPATH .= ":${LAYERDIR}"

# We have a recipes directory, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend"

# this is only temporary to allow building firefox on hosts without any python2
# were it would fail like this:
# ERROR: firefox-68.9.0esr-r0 do_configure: Execution of '/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/firefox/68.9.0esr-r0/temp/run.do_configure.2697230' failed with exit code 127:
# ./mach: 9: exec: python: not found
# this should be removed when firefox is upgraded to 78 ESR or newer which contains:
# https://bugzilla.mozilla.org/show_bug.cgi?id=1473498
HOSTTOOLS += "python python2.7"

SIGGEN_EXCLUDERECIPES_ABISAFE += " \
   firefox-addon-webconverger \
   firefox-l10n-ach \
   firefox-l10n-af \
   firefox-l10n-an \
   firefox-l10n-ar \
   firefox-l10n-as \
   firefox-l10n-ast \
   firefox-l10n-az \
   firefox-l10n-bg \
   firefox-l10n-bn-bd \
   firefox-l10n-bn-in \
   firefox-l10n-br \
   firefox-l10n-bs \
   firefox-l10n-ca \
   firefox-l10n-cak \
   firefox-l10n-cs \
   firefox-l10n-cy \
   firefox-l10n-da \
   firefox-l10n-de \
   firefox-l10n-dsb \
   firefox-l10n-el \
   firefox-l10n-en-gb \
   firefox-l10n-en-us \
   firefox-l10n-en-za \
   firefox-l10n-eo \
   firefox-l10n-es-ar \
   firefox-l10n-es-cl \
   firefox-l10n-es-es \
   firefox-l10n-es-mx \
   firefox-l10n-et \
   firefox-l10n-eu \
   firefox-l10n-fa \
   firefox-l10n-ff \
   firefox-l10n-fi \
   firefox-l10n-fr \
   firefox-l10n-fy-nl \
   firefox-l10n-ga-ie \
   firefox-l10n-gd \
   firefox-l10n-gl \
   firefox-l10n-gn \
   firefox-l10n-gu-in \
   firefox-l10n-he \
   firefox-l10n-hi-in \
   firefox-l10n-hr \
   firefox-l10n-hsb \
   firefox-l10n-hu \
   firefox-l10n-hy-am \
   firefox-l10n-id \
   firefox-l10n-is \
   firefox-l10n-it \
   firefox-l10n-ja \
   firefox-l10n-ka \
   firefox-l10n-kab \
   firefox-l10n-kk \
   firefox-l10n-km \
   firefox-l10n-kn \
   firefox-l10n-ko \
   firefox-l10n-lij \
   firefox-l10n-lt \
   firefox-l10n-lv \
   firefox-l10n-mai \
   firefox-l10n-mk \
   firefox-l10n-ml \
   firefox-l10n-mr \
   firefox-l10n-ms \
   firefox-l10n-nb-no \
   firefox-l10n-nl \
   firefox-l10n-nn-no \
   firefox-l10n-or \
   firefox-l10n-pa-in \
   firefox-l10n-pl \
   firefox-l10n-pt-br \
   firefox-l10n-pt-pt \
   firefox-l10n-rm \
   firefox-l10n-ro \
   firefox-l10n-ru \
   firefox-l10n-si \
   firefox-l10n-sk \
   firefox-l10n-sl \
   firefox-l10n-son \
   firefox-l10n-sq \
   firefox-l10n-sr \
   firefox-l10n-sv-se \
   firefox-l10n-ta \
   firefox-l10n-te \
   firefox-l10n-th \
   firefox-l10n-tr \
   firefox-l10n-uk \
   firefox-l10n-uz \
   firefox-l10n-vi \
   firefox-l10n-xh \
   firefox-l10n-zh-cn \
   firefox-l10n-zh-tw \
 "

BBFILE_COLLECTIONS += "firefox-browser-layer"
BBFILE_PATTERN_firefox-browser-layer := "^${LAYERDIR}/"
BBFILE_PRIORITY_firefox-browser-layer = "7"

LAYERVERSION_firefox-browser-layer = "1"
LAYERSERIES_COMPAT_firefox-browser-layer = "dunfell gatesgarth hardknott honister kirkstone mickledore nanbield scarthgap"

LAYERDEPENDS_firefox-browser-layer = "clang-layer core openembedded-layer"
