| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 Import('env') | |
| 6 | |
| 7 env = env.Clone() | |
| 8 | |
| 9 if env.WantSystemLib('lzma_sdk'): | |
| 10 Return() | |
| 11 | |
| 12 env.Prepend( | |
| 13 CPPPATH = [ | |
| 14 '.', | |
| 15 '$CHROME_SRC_DIR', | |
| 16 ] | |
| 17 ) | |
| 18 | |
| 19 env.Append( | |
| 20 CPPDEFINES = [ | |
| 21 '_LZMA_PROB32', | |
| 22 '_LZMA_IN_CB', | |
| 23 ], | |
| 24 ) | |
| 25 | |
| 26 if env.Bit('windows'): | |
| 27 env.Append( | |
| 28 CCFLAGS = [ | |
| 29 '/TC', | |
| 30 '/wd4800', | |
| 31 ], | |
| 32 ) | |
| 33 | |
| 34 input_files = ChromeFileList([ | |
| 35 # TODO(sgk): violate standard indentation so we don't have to | |
| 36 # reindent too much when we remove the explicit MSVSFilter() calls | |
| 37 # in favor of generating the hierarchy to reflect the file system. | |
| 38 MSVSFilter('LZMA', [ | |
| 39 'Compress/Lzma/LzmaDecode.c', | |
| 40 'Compress/Lzma/LzmaDecode.h', | |
| 41 'Compress/Lzma/LzmaTypes.h', | |
| 42 ]), | |
| 43 MSVSFilter('Common', [ | |
| 44 '7zCrc.c', | |
| 45 '7zCrc.h', | |
| 46 'Types.h', | |
| 47 ]), | |
| 48 MSVSFilter('Branch', [ | |
| 49 'Compress/Branch/BranchTypes.h', | |
| 50 'Compress/Branch/BranchX86.c', | |
| 51 'Compress/Branch/BranchX86.h', | |
| 52 'Compress/Branch/BranchX86_2.c', | |
| 53 'Compress/Branch/BranchX86_2.h', | |
| 54 ]), | |
| 55 MSVSFilter('7z', [ | |
| 56 'Archive/7z/7zAlloc.c', | |
| 57 'Archive/7z/7zAlloc.h', | |
| 58 'Archive/7z/7zBuffer.c', | |
| 59 'Archive/7z/7zBuffer.h', | |
| 60 'Archive/7z/7zDecode.c', | |
| 61 'Archive/7z/7zDecode.h', | |
| 62 'Archive/7z/7zExtract.c', | |
| 63 'Archive/7z/7zExtract.h', | |
| 64 'Archive/7z/7zHeader.c', | |
| 65 'Archive/7z/7zHeader.h', | |
| 66 'Archive/7z/7zIn.c', | |
| 67 'Archive/7z/7zIn.h', | |
| 68 'Archive/7z/7zItem.c', | |
| 69 'Archive/7z/7zItem.h', | |
| 70 'Archive/7z/7zMethodID.c', | |
| 71 'Archive/7z/7zMethodID.h', | |
| 72 ]), | |
| 73 ]) | |
| 74 | |
| 75 env.ChromeLibrary('lzma_sdk', input_files) | |
| 76 | |
| 77 p = env.ChromeMSVSProject('7z_C.vcproj', | |
| 78 dest=('$CHROME_SRC_DIR/third_party/' + | |
| 79 'lzma_sdk/7z_C.vcproj'), | |
| 80 name='lzma_sdk', | |
| 81 guid='{B84553C8-5676-427B-B3E4-23DDDC4DBC7B}', | |
| 82 keyword='Win32Proj', | |
| 83 # TODO(sgk): when we can intuit the hierarchy | |
| 84 # from the built targets. | |
| 85 #buildtargets=TODO, | |
| 86 files=input_files, | |
| 87 ConfigurationType='4') | |
| 88 | |
| 89 p.AddConfig('Debug|Win32', | |
| 90 InheritedPropertySheets=[ | |
| 91 '$(SolutionDir)../build/common.vsprops', | |
| 92 '$(SolutionDir)../build/debug.vsprops', | |
| 93 '$(SolutionDir)../build/external_code.vsprops', | |
| 94 '$(SolutionDir)../third_party/lzma_sdk/using_lzma_sdk.vsprops', | |
| 95 ], | |
| 96 tools=[ | |
| 97 MSVSTool('VCCLCompilerTool', | |
| 98 PreprocessorDefinitions=[ | |
| 99 '_DEBUG', | |
| 100 'WIN32', | |
| 101 '_CONSOLE', | |
| 102 '_LZMA_PROB32' | |
| 103 ]), | |
| 104 'VCLibrarianTool', | |
| 105 ]) | |
| 106 | |
| 107 p.AddConfig('Release|Win32', | |
| 108 InheritedPropertySheets=[ | |
| 109 '$(SolutionDir)../build/common.vsprops', | |
| 110 '$(SolutionDir)../build/release.vsprops', | |
| 111 '$(SolutionDir)../build/external_code.vsprops', | |
| 112 '$(SolutionDir)../third_party/lzma_sdk/using_lzma_sdk.vsprops', | |
| 113 ], | |
| 114 tools=[ | |
| 115 MSVSTool('VCCLCompilerTool', | |
| 116 PreprocessorDefinitions=[ | |
| 117 'NDEBUG', | |
| 118 'WIN32', | |
| 119 '_CONSOLE', | |
| 120 '_LZMA_PROB32' | |
| 121 ]), | |
| 122 'VCLibrarianTool', | |
| 123 ]) | |
| OLD | NEW |