diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-22 20:33:50 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-22 20:33:50 +0000 |
commit | 82f869be7e46d94d8f1abe34ae540f90608235fe (patch) | |
tree | 33604b7b7b32e18c634a52c280002b00a9d9251e /chrome/installer | |
parent | b8f61dc7f14f6682d7895fa40222510907b144fe (diff) | |
download | chromium_src-82f869be7e46d94d8f1abe34ae540f90608235fe.zip chromium_src-82f869be7e46d94d8f1abe34ae540f90608235fe.tar.gz chromium_src-82f869be7e46d94d8f1abe34ae540f90608235fe.tar.bz2 |
Add chrome/installer/mac/third_party/xz, and update DEPS to add r50504 on Mac
OS X:
Add an unpatched version of xz, XZ Utils, to /trunk/deps/third_party.
BUG=47199
TEST=none
Review URL: http://codereview.chromium.org/2846025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50514 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer')
-rw-r--r-- | chrome/installer/mac/third_party/xz/README.chromium | 45 | ||||
-rw-r--r-- | chrome/installer/mac/third_party/xz/config/mac/config.h | 421 | ||||
-rw-r--r-- | chrome/installer/mac/third_party/xz/xz.gyp | 374 |
3 files changed, 840 insertions, 0 deletions
diff --git a/chrome/installer/mac/third_party/xz/README.chromium b/chrome/installer/mac/third_party/xz/README.chromium new file mode 100644 index 0000000..fd9481f --- /dev/null +++ b/chrome/installer/mac/third_party/xz/README.chromium @@ -0,0 +1,45 @@ +Name: XZ Utils +URL: http://tukaani.org/xz/ +Source URL: git://ctrl.tukaani.org/xz.git +Version: git commit c15c42abb3c8c6e77c778ef06c97a4a10b8b5d00 + (2010-06-15 14:06:29 +0300), newer than 4.999.9beta +License: Public domain/license grant, LGPL 2.1, GPL 2, GPL 3 +License File: COPYING + +Description: +XZ Utils is general-purpose data compression software implementing the +modified Lempel-Ziv-Markov chain algorithm (LZMA2). + +Local Modifications: + - None. + +The upstream source is present in the xz directory. Other entries in this +directory are present for build integration: + - README.chromium. + - xz.gyp. + - config/mac/config.h, the ouptut of a "configure" run. Various macros are + undefined, because feature selection is handled by xz.gyp. These macros + are affected: + - HAVE_CHECK_CRC32 + - HAVE_CHECK_CRC64 + - HAVE_CHECK_SHA256 + - HAVE_DECODER + - HAVE_DECODER_ARM + - HAVE_DECODER_ARMTHUMB + - HAVE_DECODER_DELTA + - HAVE_DECODER_IA64 + - HAVE_DECODER_LZMA1 + - HAVE_DECODER_LZMA2 + - HAVE_DECODER_POWERPC + - HAVE_DECODER_SPARC + - HAVE_DECODER_X86 + - HAVE_ENCODER + - HAVE_ENCODER_ARM + - HAVE_ENCODER_ARMTHUMB + - HAVE_ENCODER_DELTA + - HAVE_ENCODER_IA64 + - HAVE_ENCODER_LZMA1 + - HAVE_ENCODER_LZMA2 + - HAVE_ENCODER_POWERPC + - HAVE_ENCODER_SPARC + - HAVE_ENCODER_X86 diff --git a/chrome/installer/mac/third_party/xz/config/mac/config.h b/chrome/installer/mac/third_party/xz/config/mac/config.h new file mode 100644 index 0000000..3c81cdf --- /dev/null +++ b/chrome/installer/mac/third_party/xz/config/mac/config.h @@ -0,0 +1,421 @@ +/* config.h. Generated from config.h.in by configure. */ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define if building universal (internal helper macro) */ +/* #undef AC_APPLE_UNIVERSAL_BUILD */ + +/* How many MiB of RAM to assume if the real amount cannot be determined. */ +#define ASSUME_RAM 128 + +/* Define to 1 if translation of program messages to the user's native + language is requested. */ +/* #undef ENABLE_NLS */ + +/* Define to 1 if bswap_16 is available. */ +/* #undef HAVE_BSWAP_16 */ + +/* Define to 1 if bswap_32 is available. */ +/* #undef HAVE_BSWAP_32 */ + +/* Define to 1 if bswap_64 is available. */ +/* #undef HAVE_BSWAP_64 */ + +/* Define to 1 if you have the <byteswap.h> header file. */ +/* #undef HAVE_BYTESWAP_H */ + +/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the + CoreFoundation framework. */ +#define HAVE_CFLOCALECOPYCURRENT 1 + +/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in + the CoreFoundation framework. */ +#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 + +/* Define to 1 if crc32 integrity check is enabled. */ +/* #undef HAVE_CHECK_CRC32 */ + +/* Define to 1 if crc64 integrity check is enabled. */ +/* #undef HAVE_CHECK_CRC64 */ + +/* Define to 1 if sha256 integrity check is enabled. */ +/* #undef HAVE_CHECK_SHA256 */ + +/* Define if the GNU dcgettext() function is already present or preinstalled. + */ +/* #undef HAVE_DCGETTEXT */ + +/* Define to 1 if you have the declaration of `program_invocation_name', and + to 0 if you don't. */ +#define HAVE_DECL_PROGRAM_INVOCATION_NAME 0 + +/* Define to 1 if decoder components are enabled. */ +/* #undef HAVE_DECODER */ + +/* Define to 1 if arm decoder is enabled. */ +/* #undef HAVE_DECODER_ARM */ + +/* Define to 1 if armthumb decoder is enabled. */ +/* #undef HAVE_DECODER_ARMTHUMB */ + +/* Define to 1 if delta decoder is enabled. */ +/* #undef HAVE_DECODER_DELTA */ + +/* Define to 1 if ia64 decoder is enabled. */ +/* #undef HAVE_DECODER_IA64 */ + +/* Define to 1 if lzma1 decoder is enabled. */ +/* #undef HAVE_DECODER_LZMA1 */ + +/* Define to 1 if lzma2 decoder is enabled. */ +/* #undef HAVE_DECODER_LZMA2 */ + +/* Define to 1 if powerpc decoder is enabled. */ +/* #undef HAVE_DECODER_POWERPC */ + +/* Define to 1 if sparc decoder is enabled. */ +/* #undef HAVE_DECODER_SPARC */ + +/* Define to 1 if x86 decoder is enabled. */ +/* #undef HAVE_DECODER_X86 */ + +/* Define to 1 if you have the <dlfcn.h> header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if encoder components are enabled. */ +/* #undef HAVE_ENCODER */ + +/* Define to 1 if arm encoder is enabled. */ +/* #undef HAVE_ENCODER_ARM */ + +/* Define to 1 if armthumb encoder is enabled. */ +/* #undef HAVE_ENCODER_ARMTHUMB */ + +/* Define to 1 if delta encoder is enabled. */ +/* #undef HAVE_ENCODER_DELTA */ + +/* Define to 1 if ia64 encoder is enabled. */ +/* #undef HAVE_ENCODER_IA64 */ + +/* Define to 1 if lzma1 encoder is enabled. */ +/* #undef HAVE_ENCODER_LZMA1 */ + +/* Define to 1 if lzma2 encoder is enabled. */ +/* #undef HAVE_ENCODER_LZMA2 */ + +/* Define to 1 if powerpc encoder is enabled. */ +/* #undef HAVE_ENCODER_POWERPC */ + +/* Define to 1 if sparc encoder is enabled. */ +/* #undef HAVE_ENCODER_SPARC */ + +/* Define to 1 if x86 encoder is enabled. */ +/* #undef HAVE_ENCODER_X86 */ + +/* Define to 1 if you have the <fcntl.h> header file. */ +#define HAVE_FCNTL_H 1 + +/* Define to 1 if you have the `futimens' function. */ +/* #undef HAVE_FUTIMENS */ + +/* Define to 1 if you have the `futimes' function. */ +#define HAVE_FUTIMES 1 + +/* Define to 1 if you have the `futimesat' function. */ +/* #undef HAVE_FUTIMESAT */ + +/* Define to 1 if you have the <getopt.h> header file. */ +#define HAVE_GETOPT_H 1 + +/* Define to 1 if you have the `getopt_long' function. */ +#define HAVE_GETOPT_LONG 1 + +/* Define if the GNU gettext() function is already present or preinstalled. */ +/* #undef HAVE_GETTEXT */ + +/* Define if you have the iconv() function. */ +#define HAVE_ICONV 1 + +/* Define to 1 if you have the <inttypes.h> header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the <limits.h> header file. */ +#define HAVE_LIMITS_H 1 + +/* Define to 1 if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 to enable bt2 match finder. */ +#define HAVE_MF_BT2 1 + +/* Define to 1 to enable bt3 match finder. */ +#define HAVE_MF_BT3 1 + +/* Define to 1 to enable bt4 match finder. */ +#define HAVE_MF_BT4 1 + +/* Define to 1 to enable hc3 match finder. */ +#define HAVE_MF_HC3 1 + +/* Define to 1 to enable hc4 match finder. */ +#define HAVE_MF_HC4 1 + +/* Define to 1 if getopt.h declares extern int optreset. */ +#define HAVE_OPTRESET 1 + +/* Define if you have POSIX threads libraries and header files. */ +#define HAVE_PTHREAD 1 + +/* Define to 1 if optimizing for size. */ +/* #undef HAVE_SMALL */ + +/* Define to 1 if stdbool.h conforms to C99. */ +#define HAVE_STDBOOL_H 1 + +/* Define to 1 if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if `st_atimensec' is a member of `struct stat'. */ +/* #undef HAVE_STRUCT_STAT_ST_ATIMENSEC */ + +/* Define to 1 if `st_atimespec.tv_nsec' is a member of `struct stat'. */ +#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 + +/* Define to 1 if `st_atim.st__tim.tv_nsec' is a member of `struct stat'. */ +/* #undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC */ + +/* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */ +/* #undef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC */ + +/* Define to 1 if `st_uatime' is a member of `struct stat'. */ +/* #undef HAVE_STRUCT_STAT_ST_UATIME */ + +/* Define to 1 if you have the <sys/byteorder.h> header file. */ +/* #undef HAVE_SYS_BYTEORDER_H */ + +/* Define to 1 if you have the <sys/endian.h> header file. */ +/* #undef HAVE_SYS_ENDIAN_H */ + +/* Define to 1 if you have the <sys/param.h> header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the <sys/time.h> header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the <sys/types.h> header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if the system has the type `uintptr_t'. */ +#define HAVE_UINTPTR_T 1 + +/* Define to 1 if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the `utime' function. */ +/* #undef HAVE_UTIME */ + +/* Define to 1 if you have the `utimes' function. */ +/* #undef HAVE_UTIMES */ + +/* Define to 1 or 0, depending whether the compiler supports simple visibility + declarations. */ +#define HAVE_VISIBILITY 1 + +/* Define to 1 if the system has the type `_Bool'. */ +#define HAVE__BOOL 1 + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LT_OBJDIR ".libs/" + +/* Define to 1 to disable debugging code. */ +#define NDEBUG 1 + +/* Define to 1 if your C compiler doesn't accept -c and -o together. */ +/* #undef NO_MINUS_C_MINUS_O */ + +/* Name of package */ +#define PACKAGE "xz" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "lasse.collin@tukaani.org" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "XZ Utils" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "XZ Utils 4.999.9beta" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "xz" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "http://tukaani.org/xz/" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "4.999.9beta" + +/* Define to necessary symbol if this constant uses a non-standard name on + your system. */ +/* #undef PTHREAD_CREATE_JOINABLE */ + +/* The size of `size_t', as computed by sizeof. */ +#define SIZEOF_SIZE_T 8 + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define to 1 if the number of available CPU cores can be detected with + pstat_getdynamic(). */ +/* #undef TUKLIB_CPUCORES_PSTAT_GETDYNAMIC */ + +/* Define to 1 if the number of available CPU cores can be detected with + sysconf(_SC_NPROCESSORS_ONLN) or sysconf(_SC_NPROC_ONLN). */ +/* #undef TUKLIB_CPUCORES_SYSCONF */ + +/* Define to 1 if the number of available CPU cores can be detected with + sysctl(). */ +#define TUKLIB_CPUCORES_SYSCTL 1 + +/* Define to 1 if the system supports fast unaligned access to 16-bit and + 32-bit integers. */ +#define TUKLIB_FAST_UNALIGNED_ACCESS 1 + +/* Define to 1 if the amount of physical memory can be detected with + _system_configuration.physmem. */ +/* #undef TUKLIB_PHYSMEM_AIX */ + +/* Define to 1 if the amount of physical memory can be detected with + getinvent_r(). */ +/* #undef TUKLIB_PHYSMEM_GETINVENT_R */ + +/* Define to 1 if the amount of physical memory can be detected with + getsysinfo(). */ +/* #undef TUKLIB_PHYSMEM_GETSYSINFO */ + +/* Define to 1 if the amount of physical memory can be detected with + pstat_getstatic(). */ +/* #undef TUKLIB_PHYSMEM_PSTAT_GETSTATIC */ + +/* Define to 1 if the amount of physical memory can be detected with + sysconf(_SC_PAGESIZE) and sysconf(_SC_PHYS_PAGES). */ +/* #undef TUKLIB_PHYSMEM_SYSCONF */ + +/* Define to 1 if the amount of physical memory can be detected with sysctl(). + */ +#define TUKLIB_PHYSMEM_SYSCTL 1 + +/* Define to 1 if the amount of physical memory can be detected with Linux + sysinfo(). */ +/* #undef TUKLIB_PHYSMEM_SYSINFO */ + +/* Enable extensions on AIX 3, Interix. */ +#ifndef _ALL_SOURCE +# define _ALL_SOURCE 1 +#endif +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif +/* Enable threading extensions on Solaris. */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +#endif +/* Enable extensions on HP NonStop. */ +#ifndef _TANDEM_SOURCE +# define _TANDEM_SOURCE 1 +#endif +/* Enable general extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +#endif + + +/* Version number of package */ +#define VERSION "4.999.9beta" + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +/* # undef WORDS_BIGENDIAN */ +# endif +#endif + +/* Number of bits in a file offset, on hosts where this is settable. */ +/* #undef _FILE_OFFSET_BITS */ + +/* Define for large files, on AIX-style hosts. */ +/* #undef _LARGE_FILES */ + +/* Define to 1 if on MINIX. */ +/* #undef _MINIX */ + +/* Define to 2 if the system does not provide POSIX.1 features except with + this defined. */ +/* #undef _POSIX_1_SOURCE */ + +/* Define to 1 if you need to in order for `stat' and other things to work. */ +/* #undef _POSIX_SOURCE */ + +/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>, + <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the + #define below would cause a syntax error. */ +/* #undef _UINT32_T */ + +/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>, + <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the + #define below would cause a syntax error. */ +/* #undef _UINT64_T */ + +/* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>, + <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the + #define below would cause a syntax error. */ +/* #undef _UINT8_T */ + +/* Define to rpl_ if the getopt replacement functions and variables should be + used. */ +/* #undef __GETOPT_PREFIX */ + +/* Define to the type of a signed integer type of width exactly 32 bits if + such a type exists and the standard includes do not define it. */ +/* #undef int32_t */ + +/* Define to the type of a signed integer type of width exactly 64 bits if + such a type exists and the standard includes do not define it. */ +/* #undef int64_t */ + +/* Define to the type of an unsigned integer type of width exactly 16 bits if + such a type exists and the standard includes do not define it. */ +/* #undef uint16_t */ + +/* Define to the type of an unsigned integer type of width exactly 32 bits if + such a type exists and the standard includes do not define it. */ +/* #undef uint32_t */ + +/* Define to the type of an unsigned integer type of width exactly 64 bits if + such a type exists and the standard includes do not define it. */ +/* #undef uint64_t */ + +/* Define to the type of an unsigned integer type of width exactly 8 bits if + such a type exists and the standard includes do not define it. */ +/* #undef uint8_t */ + +/* Define to the type of an unsigned integer type wide enough to hold a + pointer, if such a type exists, and if the system does not define it. */ +/* #undef uintptr_t */ diff --git a/chrome/installer/mac/third_party/xz/xz.gyp b/chrome/installer/mac/third_party/xz/xz.gyp new file mode 100644 index 0000000..f630969 --- /dev/null +++ b/chrome/installer/mac/third_party/xz/xz.gyp @@ -0,0 +1,374 @@ +# Copyright (c) 2010 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ + 'variables': { + # Configuration. Ordinarily, all of these features are enabled. For + # Chromium's purposes, disable nearly everything to save about 15kB in + # the lzma_decompress library, which will be distributed with updates. + # This also translates to a 15kB savings in the compressed disk image + # that will contain the update. + 'check_crc32': 1, + 'check_crc64': 0, + 'check_sha256': 0, + 'coder_lzma1': 1, + 'coder_lzma2': 1, + 'coder_delta': 0, + 'coder_bcj_arm': 0, + 'coder_bcj_armthumb': 0, + 'coder_bcj_ia64': 0, + 'coder_bcj_powerpc': 0, + 'coder_bcj_sparc': 0, + 'coder_bcj_x86': 1, + + 'lzma_common_defines': [ + 'HAVE_CONFIG_H', + ], + 'lzma_decompress_defines': [ + 'HAVE_DECODER=1', + ], + 'lzma_compress_defines': [ + 'HAVE_ENCODER=1', + ], + + 'lzma_include_dirs': [ + 'config/<(OS)', + 'xz/src/common', + 'xz/src/liblzma/api', + 'xz/src/liblzma/check', + 'xz/src/liblzma/common', + 'xz/src/liblzma/delta', + 'xz/src/liblzma/lz', + 'xz/src/liblzma/lzma', + 'xz/src/liblzma/rangecoder', + 'xz/src/liblzma/simple', + ], + + 'lzma_common_source_files': [ + # CRC-32 must be compiled for header integrity checks, even if it is not + # enabled for payload integrity checks. The x86-native CRC-32 + # implementation is used, the "fast" and "small" variants are not. The + # "small" variant compiles to something about 12kB smaller than "x86", + # but when bzip2-compressed, the difference is only 2.5kB. + # 'xz/src/liblzma/check/crc32_fast.c', + # 'xz/src/liblzma/check/crc32_small.c', + 'xz/src/liblzma/check/crc32_table.c', + 'xz/src/liblzma/check/crc32_x86.S', + + 'xz/src/common/tuklib_physmem.c', + 'xz/src/liblzma/check/check.c', + 'xz/src/liblzma/common/block_util.c', + 'xz/src/liblzma/common/common.c', + 'xz/src/liblzma/common/easy_preset.c', + 'xz/src/liblzma/common/filter_common.c', + 'xz/src/liblzma/common/hardware_physmem.c', + 'xz/src/liblzma/common/index.c', + 'xz/src/liblzma/common/stream_flags_common.c', + 'xz/src/liblzma/common/vli_size.c', + 'xz/src/liblzma/lzma/lzma_encoder_presets.c', + 'xz/src/liblzma/rangecoder/price_table.c', + ], + 'lzma_decompress_source_files': [ + 'xz/src/liblzma/common/alone_decoder.c', + 'xz/src/liblzma/common/auto_decoder.c', + 'xz/src/liblzma/common/block_buffer_decoder.c', + 'xz/src/liblzma/common/block_decoder.c', + 'xz/src/liblzma/common/block_header_decoder.c', + 'xz/src/liblzma/common/easy_decoder_memusage.c', + 'xz/src/liblzma/common/filter_buffer_decoder.c', + 'xz/src/liblzma/common/filter_decoder.c', + 'xz/src/liblzma/common/filter_flags_decoder.c', + 'xz/src/liblzma/common/index_decoder.c', + 'xz/src/liblzma/common/index_hash.c', + 'xz/src/liblzma/common/stream_buffer_decoder.c', + 'xz/src/liblzma/common/stream_decoder.c', + 'xz/src/liblzma/common/stream_flags_decoder.c', + 'xz/src/liblzma/common/vli_decoder.c', + 'xz/src/liblzma/lz/lz_decoder.c', + 'xz/src/liblzma/lzma/lzma_decoder.c', + ], + 'lzma_compress_source_files': [ + 'xz/src/liblzma/common/alone_encoder.c', + 'xz/src/liblzma/common/block_buffer_encoder.c', + 'xz/src/liblzma/common/block_encoder.c', + 'xz/src/liblzma/common/block_header_encoder.c', + 'xz/src/liblzma/common/easy_buffer_encoder.c', + 'xz/src/liblzma/common/easy_encoder.c', + 'xz/src/liblzma/common/easy_encoder_memusage.c', + 'xz/src/liblzma/common/filter_buffer_encoder.c', + 'xz/src/liblzma/common/filter_encoder.c', + 'xz/src/liblzma/common/filter_flags_encoder.c', + 'xz/src/liblzma/common/index_encoder.c', + 'xz/src/liblzma/common/stream_buffer_encoder.c', + 'xz/src/liblzma/common/stream_encoder.c', + 'xz/src/liblzma/common/stream_flags_encoder.c', + 'xz/src/liblzma/common/vli_encoder.c', + 'xz/src/liblzma/lz/lz_encoder.c', + 'xz/src/liblzma/lz/lz_encoder_mf.c', + 'xz/src/liblzma/lzma/fastpos_table.c', + 'xz/src/liblzma/lzma/lzma_encoder.c', + 'xz/src/liblzma/lzma/lzma_encoder_optimum_fast.c', + 'xz/src/liblzma/lzma/lzma_encoder_optimum_normal.c', + ], + + 'conditions': [ + ['check_crc32 != 0', { + 'lzma_common_defines': [ + 'HAVE_CHECK_CRC32=1', + ], + }], + ['check_crc64 != 0', { + 'lzma_common_defines': [ + 'HAVE_CHECK_CRC64=1', + ], + 'lzma_common_source_files': [ + # The "fast" CRC-64 implementation is used, the "small" variant is + # not. + 'xz/src/liblzma/check/crc64_fast.c', + # 'xz/src/liblzma/check/crc64_small.c', + 'xz/src/liblzma/check/crc64_table.c', + ], + }], + ['check_sha256 != 0', { + 'lzma_common_defines': [ + 'HAVE_CHECK_SHA256=1', + ], + 'lzma_common_source_files': [ + 'xz/src/liblzma/check/sha256.c', + ], + }], + ['coder_lzma1 != 0', { + 'lzma_decompress_defines': [ + 'HAVE_DECODER_LZMA1=1', + ], + 'lzma_compress_defines': [ + 'HAVE_ENCODER_LZMA1=1', + ], + }], + ['coder_lzma2 != 0', { + 'lzma_decompress_defines': [ + 'HAVE_DECODER_LZMA2=1', + ], + 'lzma_compress_defines': [ + 'HAVE_ENCODER_LZMA2=1', + ], + 'lzma_decompress_source_files': [ + 'xz/src/liblzma/lzma/lzma2_decoder.c', + ], + 'lzma_compress_source_files': [ + 'xz/src/liblzma/lzma/lzma2_encoder.c', + ], + }], + ['coder_delta != 0', { + 'lzma_decompress_defines': [ + 'HAVE_DECODER_DELTA=1', + ], + 'lzma_compress_defines': [ + 'HAVE_ENCODER_DELTA=1', + ], + 'lzma_common_source_files': [ + 'xz/src/liblzma/delta/delta_common.c', + ], + 'lzma_decompress_source_files': [ + 'xz/src/liblzma/delta/delta_decoder.c', + ], + 'lzma_compress_source_files': [ + 'xz/src/liblzma/delta/delta_encoder.c', + ], + }], + ['coder_bcj_arm != 0', { + 'lzma_decompress_defines': [ + 'HAVE_DECODER_ARM=1', + ], + 'lzma_compress_defines': [ + 'HAVE_ENCODER_ARM=1', + ], + 'lzma_common_source_files': [ + 'xz/src/liblzma/simple/arm.c', + ], + }], + ['coder_bcj_armthumb != 0', { + 'lzma_decompress_defines': [ + 'HAVE_DECODER_ARMTHUMB=1', + ], + 'lzma_compress_defines': [ + 'HAVE_ENCODER_ARMTHUMB=1', + ], + 'lzma_common_source_files': [ + 'xz/src/liblzma/simple/armthumb.c', + ], + }], + ['coder_bcj_ia64 != 0', { + 'lzma_decompress_defines': [ + 'HAVE_DECODER_IA64=1', + ], + 'lzma_compress_defines': [ + 'HAVE_ENCODER_IA64=1', + ], + 'lzma_common_source_files': [ + 'xz/src/liblzma/simple/ia64.c', + ], + }], + ['coder_bcj_powerpc != 0', { + 'lzma_decompress_defines': [ + 'HAVE_DECODER_POWERPC=1', + ], + 'lzma_compress_defines': [ + 'HAVE_ENCODER_POWERPC=1', + ], + 'lzma_common_source_files': [ + 'xz/src/liblzma/simple/powerpc.c', + ], + }], + ['coder_bcj_sparc != 0', { + 'lzma_decompress_defines': [ + 'HAVE_DECODER_SPARC=1', + ], + 'lzma_compress_defines': [ + 'HAVE_ENCODER_SPARC=1', + ], + 'lzma_common_source_files': [ + 'xz/src/liblzma/simple/sparc.c', + ], + }], + ['coder_bcj_x86 != 0', { + 'lzma_decompress_defines': [ + 'HAVE_DECODER_X86=1', + ], + 'lzma_compress_defines': [ + 'HAVE_ENCODER_X86=1', + ], + 'lzma_common_source_files': [ + 'xz/src/liblzma/simple/x86.c', + ], + }], + ['coder_bcj_arm != 0 or coder_bcj_armthumb != 0 or coder_bcj_ia64 != 0 or coder_bcj_powerpc != 0 or coder_bcj_sparc != 0 or coder_bcj_x86 != 0', { + 'lzma_common_source_files': [ + 'xz/src/liblzma/simple/simple_coder.c', + ], + 'lzma_decompress_source_files': [ + 'xz/src/liblzma/simple/simple_decoder.c', + ], + 'lzma_compress_source_files': [ + 'xz/src/liblzma/simple/simple_encoder.c', + ], + }], + ], # conditions + }, # variables + + 'targets': [ + { + 'target_name': 'lzma', + 'type': '<(library)', + 'defines': [ + '<@(lzma_common_defines)', + '<@(lzma_decompress_defines)', + '<@(lzma_compress_defines)', + ], + 'include_dirs': [ + '<@(lzma_include_dirs)', + ], + 'sources': [ + '<@(lzma_common_source_files)', + '<@(lzma_decompress_source_files)', + '<@(lzma_compress_source_files)', + ], + 'direct_dependent_settings': { + 'include_dirs': [ + 'xz/src/liblzma/api', + ], + }, + }, + + { + 'target_name': 'lzma_decompress', + + # Always build as a shared library to promote code sharing. This library + # is distributed in Google Chrome update disk images and is used by more + # than one tool. + 'type': 'shared_library', + 'xcode_settings': { + 'DYLIB_INSTALL_NAME_BASE': '@loader_path', + }, + + 'defines': [ + '<@(lzma_common_defines)', + '<@(lzma_decompress_defines)', + ], + 'include_dirs': [ + '<@(lzma_include_dirs)', + ], + 'sources': [ + '<@(lzma_common_source_files)', + '<@(lzma_decompress_source_files)', + ], + 'direct_dependent_settings': { + 'include_dirs': [ + 'xz/src/liblzma/api', + ], + }, + }, + + { + 'target_name': 'xz', + 'type': 'executable', + 'dependencies': [ + 'lzma', + ], + 'defines': [ + '<@(lzma_common_defines)', + '<@(lzma_decompress_defines)', + '<@(lzma_compress_defines)', + ], + 'include_dirs': [ + 'config/<(OS)', + 'xz/src/common', + ], + 'sources': [ + 'xz/src/common/tuklib_cpucores.c', + 'xz/src/common/tuklib_exit.c', + 'xz/src/common/tuklib_open_stdxxx.c', + 'xz/src/common/tuklib_progname.c', + 'xz/src/xz/args.c', + 'xz/src/xz/coder.c', + 'xz/src/xz/file_io.c', + 'xz/src/xz/hardware.c', + 'xz/src/xz/list.c', + 'xz/src/xz/main.c', + 'xz/src/xz/message.c', + 'xz/src/xz/options.c', + 'xz/src/xz/signals.c', + 'xz/src/xz/suffix.c', + 'xz/src/xz/util.c', + ], + }, + + { + 'target_name': 'xzdec', + 'type': 'executable', + 'dependencies': [ + 'lzma_decompress', + ], + 'defines': [ + '<@(lzma_common_defines)', + '<@(lzma_decompress_defines)', + ], + 'include_dirs': [ + 'config/<(OS)', + 'xz/src/common', + ], + 'sources': [ + 'xz/src/common/tuklib_exit.c', + 'xz/src/common/tuklib_progname.c', + 'xz/src/xzdec/xzdec.c', + ], + }, + ], +} + +# Local Variables: +# tab-width:2 +# indent-tabs-mode:nil +# End: +# vim: set expandtab tabstop=2 shiftwidth=2: |