baseconfig.mk 790 B

1234567891011121314151617
  1. # This file is normally included by autoconf.mk, but it is also used
  2. # directly in python/mozbuild/mozbuild/base.py for gmake validation.
  3. # We thus use INCLUDED_AUTOCONF_MK to enable/disable some parts depending
  4. # whether a normal build is happening or whether the check is running.
  5. # When mach wants to know if we're to use mozmake, it runs:
  6. # make -f topsrcdir/config/baseconfig.mk
  7. # The first word of MAKEFILE_LIST is the main file we're running. Grabbing the
  8. # parent of that directory therefore gets us the topsrcdir of comm-central,
  9. # whence we get the mozilla directory to run the "real" baseconfig.mk logic.
  10. ifndef INCLUDED_AUTOCONF_MK
  11. topsrcdir := $(dir $(firstword $(MAKEFILE_LIST)))..
  12. endif
  13. MOZILLA_SRCDIR = $(topsrcdir)/platform
  14. include $(MOZILLA_SRCDIR)/config/baseconfig.mk