2 # package and install PyEfiCompressor extension
\r
4 # Copyright (c) 2008, Intel Corporation
\r
6 # All rights reserved. This program and the accompanying materials
\r
7 # are licensed and made available under the terms and conditions of the BSD License
\r
8 # which accompanies this distribution. The full text of the license may be found at
\r
9 # http://opensource.org/licenses/bsd-license.php
\r
11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
\r
12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
\r
18 from distutils.core import setup, Extension
\r
21 if 'BASE_TOOLS_PATH' not in os.environ:
\r
22 raise "Please define BASE_TOOLS_PATH to the root of base tools tree"
\r
24 BaseToolsDir = os.environ['BASE_TOOLS_PATH']
\r
26 name="EfiCompressor",
\r
35 os.path.join(BaseToolsDir, 'Source', 'C', 'Include'),
\r
36 os.path.join(BaseToolsDir, 'Source', 'C', 'Common')
\r
39 os.path.join(os.environ['BASE_TOOLS_PATH'], 'Lib', 'Win32')
\r