moz.build (797B)
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- 2 # vim: set filetype=python: 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 with Files('**'): 8 BUG_COMPONENT = ("Toolkit", "Application Update") 9 10 EXPORTS += [ 11 'src/xz.h', 12 ] 13 14 UNIFIED_SOURCES += [ 15 'src/xz_crc32.c', 16 'src/xz_crc64.c', 17 'src/xz_dec_bcj.c', 18 'src/xz_dec_lzma2.c', 19 'src/xz_dec_stream.c', 20 ] 21 22 AllowCompilerWarnings() 23 24 # Accept arm, armv7, etc. 25 DEFINES['XZ_DEC_ARM'] = 1 26 # Accept x86, x86_64, i386, i686, etc. 27 DEFINES['XZ_DEC_X86'] = 1 28 29 DEFINES['XZ_USE_CRC64'] = 1 30 31 if CONFIG['OS_ARCH'] == 'WINNT': 32 USE_STATIC_MSVCRT = True 33 34 Library('xz-embedded')