moz.build 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
  2. # This Source Code Form is subject to the terms of the Mozilla Public
  3. # License, v. 2.0. If a copy of the MPL was not distributed with this
  4. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. with Files('**/Makefile.in'):
  6. BUG_COMPONENT = ('Core', 'Build Config')
  7. FINAL = True
  8. FILES_PER_UNIFIED_FILE = 1
  9. CONFIGURE_SUBST_FILES += [
  10. 'config/autoconf.mk',
  11. 'config/emptyvars.mk',
  12. ]
  13. if CONFIG['ENABLE_CLANG_PLUGIN']:
  14. DIRS += ['build/clang-plugin']
  15. DIRS += [
  16. 'config',
  17. 'python',
  18. 'taskcluster',
  19. ]
  20. if not CONFIG['MOZ_DISABLE_PLATFORM']:
  21. if not CONFIG['JS_STANDALONE']:
  22. CONFIGURE_SUBST_FILES += [
  23. 'tools/update-packaging/Makefile',
  24. ]
  25. CONFIGURE_DEFINE_FILES += [
  26. 'mozilla-config.h',
  27. ]
  28. EXPORTS += [
  29. '!buildid.h',
  30. '!mozilla-config.h',
  31. '!source-repo.h',
  32. ]
  33. GENERATED_FILES += [
  34. 'buildid.h',
  35. 'source-repo.h',
  36. ]
  37. GENERATED_FILES['buildid.h'].script = 'build/variables.py:buildid_header'
  38. GENERATED_FILES['source-repo.h'].script = 'build/variables.py:source_repo_header'
  39. DIRS += [
  40. 'build',
  41. 'probes',
  42. ]
  43. DIRS += [
  44. 'config/external/fdlibm',
  45. 'config/external/nspr',
  46. 'config/external/zlib',
  47. 'memory',
  48. 'mfbt',
  49. 'mozglue',
  50. ]
  51. if not CONFIG['JS_STANDALONE']:
  52. DIRS += ['xpcom/xpidl']
  53. if CONFIG['USE_ICU']:
  54. DIRS += ['config/external/icu']
  55. if CONFIG['COMPILE_ENVIRONMENT']:
  56. if not CONFIG['JS_STANDALONE']:
  57. # Hopefully build sqlite before nss
  58. DIRS += ['db/sqlite3/src']
  59. DIRS += [
  60. 'config/external',
  61. 'config/external/nss',
  62. ]
  63. if CONFIG['BUILD_CTYPES']:
  64. DIRS += ['config/external/ffi']
  65. DIRS += ['js/src']
  66. else:
  67. TEST_DIRS += ['js/src/tests']
  68. if not CONFIG['JS_STANDALONE'] and CONFIG['MOZ_BUILD_APP']:
  69. # Bring in the configuration for the configured application.
  70. include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
  71. include('build/templates.mozbuild')