debuggers.hg

view tools/python/setup.py @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children dec845b4d9c3
line source
2 from distutils.core import setup, Extension
3 import os
5 XEN_ROOT = "../.."
7 extra_compile_args = [ "-fno-strict-aliasing", "-Werror" ]
9 include_dirs = [ XEN_ROOT + "/tools/libxc",
10 XEN_ROOT + "/tools/xenstore",
11 XEN_ROOT + "/tools/include",
12 ]
14 library_dirs = [ XEN_ROOT + "/tools/libxc",
15 XEN_ROOT + "/tools/xenstore",
16 ]
18 libraries = [ "xenctrl", "xenguest", "xenstore" ]
20 xc = Extension("xc",
21 extra_compile_args = extra_compile_args,
22 include_dirs = include_dirs + [ "xen/lowlevel/xc" ],
23 library_dirs = library_dirs,
24 libraries = libraries,
25 sources = [ "xen/lowlevel/xc/xc.c" ])
27 xs = Extension("xs",
28 extra_compile_args = extra_compile_args,
29 include_dirs = include_dirs + [ "xen/lowlevel/xs" ],
30 library_dirs = library_dirs,
31 libraries = libraries,
32 sources = [ "xen/lowlevel/xs/xs.c" ])
34 scf = Extension("scf",
35 extra_compile_args = extra_compile_args,
36 include_dirs = include_dirs + [ "xen/lowlevel/scf" ],
37 library_dirs = library_dirs,
38 libraries = libraries,
39 sources = [ "xen/lowlevel/scf/scf.c" ])
41 acm = Extension("acm",
42 extra_compile_args = extra_compile_args,
43 include_dirs = include_dirs + [ "xen/lowlevel/acm" ],
44 library_dirs = library_dirs,
45 libraries = libraries,
46 sources = [ "xen/lowlevel/acm/acm.c" ])
48 flask = Extension("flask",
49 extra_compile_args = extra_compile_args,
50 include_dirs = include_dirs + [ "xen/lowlevel/flask" ] +
51 [ "../flask/libflask/include" ],
52 library_dirs = library_dirs + [ "../flask/libflask" ],
53 libraries = libraries + [ "flask" ],
54 sources = [ "xen/lowlevel/flask/flask.c" ])
56 ptsname = Extension("ptsname",
57 extra_compile_args = extra_compile_args,
58 include_dirs = include_dirs + [ "ptsname" ],
59 library_dirs = library_dirs,
60 libraries = libraries,
61 sources = [ "ptsname/ptsname.c" ])
63 modules = [ xc, xs, ptsname, acm, flask ]
64 if os.uname()[0] == 'SunOS':
65 modules.append(scf)
67 setup(name = 'xen',
68 version = '3.0',
69 description = 'Xen',
70 packages = ['xen',
71 'xen.lowlevel',
72 'xen.util',
73 'xen.util.xsm',
74 'xen.util.xsm.dummy',
75 'xen.util.xsm.flask',
76 'xen.util.xsm.acm',
77 'xen.xend',
78 'xen.xend.server',
79 'xen.xend.xenstore',
80 'xen.xm',
81 'xen.web',
82 'xen.sv',
83 'xen.xsview',
85 'xen.xend.tests',
86 'xen.xend.server.tests',
87 'xen.xend.xenstore.tests',
88 'xen.xm.tests'
89 ],
90 ext_package = "xen.lowlevel",
91 ext_modules = modules
92 )
94 os.chdir('logging')
95 execfile('setup.py')