summaryrefslogtreecommitdiffstats
path: root/third_party/lzma_sdk
diff options
context:
space:
mode:
authorbradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-21 01:03:43 +0000
committerbradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-21 01:03:43 +0000
commit104a608acbf0fe57728f95d21c59ed25f61b0482 (patch)
treef62f6ce78a3379b043e0ff71cfccef0baa46d98f /third_party/lzma_sdk
parentc840d52c54743d3353e90136fe17b8c697083d25 (diff)
downloadchromium_src-104a608acbf0fe57728f95d21c59ed25f61b0482.zip
chromium_src-104a608acbf0fe57728f95d21c59ed25f61b0482.tar.gz
chromium_src-104a608acbf0fe57728f95d21c59ed25f61b0482.tar.bz2
Also build a 64-bit exe version of the 32-bit courgette
utility + library to support larger input sizes. BUG=63793 TEST=None Review URL: http://codereview.chromium.org/5096007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69779 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/lzma_sdk')
-rw-r--r--third_party/lzma_sdk/lzma_sdk.gyp92
1 files changed, 63 insertions, 29 deletions
diff --git a/third_party/lzma_sdk/lzma_sdk.gyp b/third_party/lzma_sdk/lzma_sdk.gyp
index 703c285..518a257 100644
--- a/third_party/lzma_sdk/lzma_sdk.gyp
+++ b/third_party/lzma_sdk/lzma_sdk.gyp
@@ -3,6 +3,37 @@
# 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',
@@ -18,35 +49,7 @@
# necessary and delete if not.
# '/wd4800',
'msvs_guid': 'B84553C8-5676-427B-B3E4-23DDDC4DBC7B',
- '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',
- ],
+ 'sources': ['<@(lzma_sdk_sources)'],
'direct_dependent_settings': {
'defines': [
'_LZMA_IN_CB',
@@ -57,6 +60,37 @@
},
},
],
+ 'conditions': [
+ ['OS=="win"', {
+ 'targets': [
+ {
+ 'target_name': 'lzma_sdk64',
+ 'type': '<(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: