moz.build 1019 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. SOURCES += [
  6. 'BaseElf.cpp',
  7. 'CustomElf.cpp',
  8. 'ElfLoader.cpp',
  9. 'Mappable.cpp',
  10. 'SeekableZStream.cpp',
  11. 'XZStream.cpp',
  12. 'Zip.cpp',
  13. ]
  14. Library('linker')
  15. HOST_SOURCES += [
  16. 'SeekableZStream.cpp',
  17. 'szip.cpp',
  18. ]
  19. HostProgram('szip')
  20. FINAL_LIBRARY = 'mozglue'
  21. DEFINES['IMPL_MFBT'] = True
  22. DISABLE_STL_WRAPPING = True
  23. TEST_DIRS += ['tests']
  24. HOST_OS_LIBS += [
  25. 'z',
  26. ]
  27. if CONFIG['TARGET_CPU'] == 'arm':
  28. if CONFIG['MOZ_THUMB2']:
  29. HOST_DEFINES['TARGET_THUMB'] = True
  30. else:
  31. HOST_DEFINES['TARGET_ARM'] = True
  32. if CONFIG['CPU_ARCH'] == 'x86':
  33. HOST_DEFINES['TARGET_X86'] = True
  34. if CONFIG['GNU_CXX']:
  35. CXXFLAGS += ['-Wno-error=shadow']
  36. DEFINES['XZ_USE_CRC64'] = 1
  37. USE_LIBS += [
  38. 'xz-embedded',
  39. ]