blob: 895d69c1c732543c23f0282da40c4fe545fc0007 [file] [log] [blame]
# Copyright (c) 2009 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': {
'lzma_sdk_sources': [
'7zCrc.c',
'7zCrc.h',
'Archive/7z/7zAlloc.c',
'Archive/7z/7zAlloc.h',
'Archive/7z/7zBuffer.c',
'Archive/7z/7zBuffer.h',
'Archive/7z/7zDecode.c',
'Archive/7z/7zDecode.h',
'Archive/7z/7zExtract.c',
'Archive/7z/7zExtract.h',
'Archive/7z/7zHeader.c',
'Archive/7z/7zHeader.h',
'Archive/7z/7zIn.c',
'Archive/7z/7zIn.h',
'Archive/7z/7zItem.c',
'Archive/7z/7zItem.h',
'Archive/7z/7zMethodID.c',
'Archive/7z/7zMethodID.h',
'Compress/Branch/BranchTypes.h',
'Compress/Branch/BranchX86.c',
'Compress/Branch/BranchX86.h',
'Compress/Branch/BranchX86_2.c',
'Compress/Branch/BranchX86_2.h',
'Compress/Lzma/LzmaDecode.c',
'Compress/Lzma/LzmaDecode.h',
'Compress/Lzma/LzmaTypes.h',
'Types.h',
],
},
'targets': [
{
'target_name': 'lzma_sdk',
'type': 'static_library',
'defines': [
'_LZMA_PROB32',
'_LZMA_IN_CB',
],
'include_dirs': [
'.',
],
# TODO: original configuration had /wd4800, add if
# necessary and delete if not.
# '/wd4800',
'sources': ['<@(lzma_sdk_sources)'],
'direct_dependent_settings': {
'defines': [
'_LZMA_IN_CB',
],
'include_dirs': [
'.',
],
},
},
],
'conditions': [
['OS=="win"', {
'targets': [
{
'target_name': 'lzma_sdk64',
'type': 'static_library',
'defines': [
'_LZMA_PROB32',
'_LZMA_IN_CB',
],
'include_dirs': [
'.',
],
'sources': ['<@(lzma_sdk_sources)'],
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
'direct_dependent_settings': {
'defines': [
'_LZMA_IN_CB',
],
'include_dirs': [
'.',
],
},
},
],
}],
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2: