]>
Commit | Line | Data |
---|---|---|
30fdf114 LG |
1 | ## @file\r |
2 | # package and install PyEfiCompressor extension\r | |
3 | #\r | |
40d841f6 | 4 | # Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r |
30fdf114 | 5 | #\r |
40d841f6 | 6 | # This program and the accompanying materials\r |
30fdf114 LG |
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 | |
10 | #\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 | |
13 | #\r | |
14 | \r | |
15 | ##\r | |
16 | # Import Modules\r | |
17 | #\r | |
18 | from distutils.core import setup, Extension\r | |
19 | import os\r | |
20 | \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 | |
23 | \r | |
24 | BaseToolsDir = os.environ['BASE_TOOLS_PATH']\r | |
25 | setup(\r | |
26 | name="EfiCompressor",\r | |
27 | version="0.01",\r | |
28 | ext_modules=[\r | |
29 | Extension(\r | |
30 | 'EfiCompressor',\r | |
31 | sources=[\r | |
32 | os.path.join(BaseToolsDir, 'Source', 'C', 'Common', 'Decompress.c'),\r | |
33 | 'EfiCompressor.c'\r | |
34 | ],\r | |
35 | include_dirs=[\r | |
36 | os.path.join(BaseToolsDir, 'Source', 'C', 'Include'),\r | |
37 | os.path.join(BaseToolsDir, 'Source', 'C', 'Include', 'Ia32'),\r | |
38 | os.path.join(BaseToolsDir, 'Source', 'C', 'Common')\r | |
39 | ],\r | |
40 | )\r | |
41 | ],\r | |
42 | )\r | |
43 | \r |