| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'lzma_sdk_sources': [ | 7 'lzma_sdk_sources': [ |
| 8 '7z.h', |
| 9 '7zAlloc.c', |
| 10 '7zAlloc.h', |
| 11 '7zBuf.c', |
| 12 '7zBuf.h', |
| 8 '7zCrc.c', | 13 '7zCrc.c', |
| 9 '7zCrc.h', | 14 '7zCrc.h', |
| 10 'Archive/7z/7zAlloc.c', | 15 '7zCrcOpt.c', |
| 11 'Archive/7z/7zAlloc.h', | 16 '7zDec.c', |
| 12 'Archive/7z/7zBuffer.c', | 17 '7zFile.c', |
| 13 'Archive/7z/7zBuffer.h', | 18 '7zFile.h', |
| 14 'Archive/7z/7zDecode.c', | 19 '7zIn.c', |
| 15 'Archive/7z/7zDecode.h', | 20 '7zStream.c', |
| 16 'Archive/7z/7zExtract.c', | 21 'Alloc.c', |
| 17 'Archive/7z/7zExtract.h', | 22 'Alloc.h', |
| 18 'Archive/7z/7zHeader.c', | 23 'Bcj2.c', |
| 19 'Archive/7z/7zHeader.h', | 24 'Bcj2.h', |
| 20 'Archive/7z/7zIn.c', | 25 'Bra.c', |
| 21 'Archive/7z/7zIn.h', | 26 'Bra.h', |
| 22 'Archive/7z/7zItem.c', | 27 'Bra86.c', |
| 23 'Archive/7z/7zItem.h', | 28 'CpuArch.c', |
| 24 'Archive/7z/7zMethodID.c', | 29 'CpuArch.h', |
| 25 'Archive/7z/7zMethodID.h', | 30 'LzFind.c', |
| 26 'Compress/Branch/BranchTypes.h', | 31 'LzFind.h', |
| 27 'Compress/Branch/BranchX86.c', | 32 'LzHash.h', |
| 28 'Compress/Branch/BranchX86.h', | 33 'Lzma2Dec.c', |
| 29 'Compress/Branch/BranchX86_2.c', | 34 'Lzma2Dec.h', |
| 30 'Compress/Branch/BranchX86_2.h', | 35 'LzmaEnc.c', |
| 31 'Compress/Lzma/LzmaDecode.c', | 36 'LzmaEnc.h', |
| 32 'Compress/Lzma/LzmaDecode.h', | 37 'LzmaDec.c', |
| 33 'Compress/Lzma/LzmaTypes.h', | 38 'LzmaDec.h', |
| 39 'LzmaLib.c', |
| 40 'LzmaLib.h', |
| 34 'Types.h', | 41 'Types.h', |
| 35 ], | 42 ], |
| 36 }, | 43 }, |
| 37 'targets': [ | 44 'targets': [ |
| 38 { | 45 { |
| 39 'target_name': 'lzma_sdk', | 46 'target_name': 'lzma_sdk', |
| 40 'type': 'static_library', | 47 'type': 'static_library', |
| 41 'defines': [ | 48 'defines': [ |
| 49 '_7ZIP_ST', |
| 42 '_LZMA_PROB32', | 50 '_LZMA_PROB32', |
| 43 '_LZMA_IN_CB', | 51 ], |
| 52 'sources': [ |
| 53 '<@(lzma_sdk_sources)', |
| 44 ], | 54 ], |
| 45 'include_dirs': [ | 55 'include_dirs': [ |
| 46 '.', | 56 '.', |
| 47 ], | 57 ], |
| 48 # TODO: original configuration had /wd4800, add if | |
| 49 # necessary and delete if not. | |
| 50 # '/wd4800', | |
| 51 'sources': ['<@(lzma_sdk_sources)'], | |
| 52 'direct_dependent_settings': { | 58 'direct_dependent_settings': { |
| 53 'defines': [ | |
| 54 '_LZMA_IN_CB', | |
| 55 ], | |
| 56 'include_dirs': [ | 59 'include_dirs': [ |
| 57 '.', | 60 '.', |
| 58 ], | 61 ], |
| 59 }, | 62 }, |
| 60 }, | 63 }, |
| 61 ], | 64 ], |
| 62 'conditions': [ | 65 'conditions': [ |
| 63 ['OS=="win"', { | 66 ['OS=="win"', { |
| 64 'targets': [ | 67 'targets': [ |
| 65 { | 68 { |
| 66 'target_name': 'lzma_sdk64', | 69 'target_name': 'lzma_sdk64', |
| 67 'type': 'static_library', | 70 'type': 'static_library', |
| 68 'defines': [ | 71 'defines': [ |
| 72 '_7ZIP_ST', |
| 69 '_LZMA_PROB32', | 73 '_LZMA_PROB32', |
| 70 '_LZMA_IN_CB', | |
| 71 ], | 74 ], |
| 72 'include_dirs': [ | 75 'include_dirs': [ |
| 73 '.', | 76 '.', |
| 74 ], | 77 ], |
| 75 'sources': ['<@(lzma_sdk_sources)'], | 78 'sources': [ |
| 79 '<@(lzma_sdk_sources)', |
| 80 ], |
| 76 'configurations': { | 81 'configurations': { |
| 77 'Common_Base': { | 82 'Common_Base': { |
| 78 'msvs_target_platform': 'x64', | 83 'msvs_target_platform': 'x64', |
| 79 }, | 84 }, |
| 80 }, | 85 }, |
| 81 'direct_dependent_settings': { | 86 'direct_dependent_settings': { |
| 82 'defines': [ | |
| 83 '_LZMA_IN_CB', | |
| 84 ], | |
| 85 'include_dirs': [ | 87 'include_dirs': [ |
| 86 '.', | 88 '.', |
| 87 ], | 89 ], |
| 88 }, | 90 }, |
| 89 }, | 91 }, |
| 90 ], | 92 ], |
| 91 }], | 93 }], |
| 92 ], | 94 ], |
| 93 } | 95 } |
| OLD | NEW |