Home | History | Annotate | Download | only in lzma_sdk
      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
      3 # found in the LICENSE file.
      4 
      5 {
      6   'variables': {
      7     'lzma_sdk_sources': [
      8       '7z.h',
      9       '7zAlloc.c',
     10       '7zAlloc.h',
     11       '7zBuf.c',
     12       '7zBuf.h',
     13       '7zCrc.c',
     14       '7zCrc.h',
     15       '7zCrcOpt.c',
     16       '7zDec.c',
     17       '7zFile.c',
     18       '7zFile.h',
     19       '7zIn.c',
     20       '7zStream.c',
     21       'Alloc.c',
     22       'Alloc.h',
     23       'Bcj2.c',
     24       'Bcj2.h',
     25       'Bra.c',
     26       'Bra.h',
     27       'Bra86.c',
     28       'CpuArch.c',
     29       'CpuArch.h',
     30       'LzFind.c',
     31       'LzFind.h',
     32       'LzHash.h',
     33       'Lzma2Dec.c',
     34       'Lzma2Dec.h',
     35       'LzmaEnc.c',
     36       'LzmaEnc.h',
     37       'LzmaDec.c',
     38       'LzmaDec.h',
     39       'LzmaLib.c',
     40       'LzmaLib.h',
     41       'Types.h',
     42     ],
     43   },
     44   'targets': [
     45     {
     46       'target_name': 'lzma_sdk',
     47       'type': 'static_library',
     48       'defines': [
     49         '_7ZIP_ST',
     50         '_LZMA_PROB32',
     51       ],
     52       'sources': [
     53         '<@(lzma_sdk_sources)',
     54       ],
     55       'include_dirs': [
     56         '.',
     57       ],
     58       'direct_dependent_settings': {
     59         'include_dirs': [
     60           '.',
     61         ],
     62       },
     63     },
     64   ],
     65   'conditions': [
     66     ['OS=="win"', {
     67       'targets': [
     68         {
     69           'target_name': 'lzma_sdk64',
     70           'type': 'static_library',
     71           'defines': [
     72             '_7ZIP_ST',
     73             '_LZMA_PROB32',
     74           ],
     75           'include_dirs': [
     76             '.',
     77           ],
     78           'sources': [
     79             '<@(lzma_sdk_sources)',
     80           ],
     81           'configurations': {
     82             'Common_Base': {
     83               'msvs_target_platform': 'x64',
     84             },
     85           },
     86           'direct_dependent_settings': {
     87             'include_dirs': [
     88               '.',
     89             ],
     90           },
     91         },
     92       ],
     93     }],
     94   ],
     95 }
     96